/* Pro Event Solutions — site styles
   Brand: charcoal #383838, yellow #FCDB35. Montserrat for everything (Will, 10-11-2026: client-facing text is Montserrat).
   Signature: photography dissolves into the surface through the brand's halftone dot grid. */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pes-charcoal: #383838;
  --pes-yellow: #fcdb35;
  --pes-white: #ffffff;
  --pes-cream: #fef4c2;
  --pes-grey-700: #747474;
  --pes-grey-500: #9b9b9b;
  --pes-grey-300: #cdcdcd;
  --pes-yellow-300: #fde468;
  --pes-yellow-100: #fef6cd;
  --pes-grey-50: #f3f3f3;   /* lightest charcoal tint: the light band (replaces cream, Chris 10-11-2026) */

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --text: var(--pes-charcoal);
  --text-muted: var(--pes-grey-700);
  --bg: var(--pes-white);
  --rule: var(--pes-grey-300);
  --focus: var(--pes-charcoal);

  --container: 1200px;
  --gutter: clamp(2rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --pill: 999px;
  --dot: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
picture { display: contents; } /* the <img> inside keeps its layout role; <picture> only chooses the format */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--pes-yellow); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--pes-yellow); color: var(--pes-charcoal); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 840px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100%;
  background: var(--pes-yellow); color: var(--pes-charcoal);
  font: 700 0.85rem var(--font-display); padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; outline-offset: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text-muted); max-width: 42ch; }
.measure { max-width: 62ch; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem !important; } .mt-2 { margin-top: 1.75rem !important; } .mt-3 { margin-top: 2.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }
.h3-lg { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.label { font: 700 0.8rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Eyebrow: uppercase label preceded by a single brand dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pes-yellow); flex: none; }
.eyebrow--tight { margin-bottom: 0.5rem; }

/* ---------- Surfaces ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.surface-dark {
  --text: var(--pes-white); --text-muted: var(--pes-grey-300); --rule: var(--pes-grey-700); --focus: var(--pes-yellow);
  background: var(--pes-charcoal); color: var(--text);
}
/* Light bands are a pale charcoal tint, not cream (Chris, 10-11-2026). Both class names stay so
   templates need no change. A faint charcoal dot field fades in from one corner: the brand
   supergraphic, kept to the edge so it never sits behind copy. */
.surface-cream, .surface-grey { background: var(--pes-grey-50); --text-muted: var(--pes-charcoal); overflow: hidden; }
.surface-cream::before, .surface-grey::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(252, 219, 53, 0.75) 0 34%, transparent 36%);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 70%);
}
.surface-grey::before {
  -webkit-mask-image: radial-gradient(60% 100% at 0% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 100% at 0% 100%, #000 0%, transparent 70%);
}
.surface-cream > *, .surface-grey > * { position: relative; }
.surface-yellow {
  --text: var(--pes-charcoal); --text-muted: var(--pes-charcoal); --focus: var(--pes-charcoal);
  background: var(--pes-yellow); color: var(--text);
}
.surface-dark .eyebrow { color: var(--pes-yellow); }
.surface-dark .lede { color: var(--pes-grey-300); }

/* Supergraphic: halftone dot field, fading to nothing. Texture only, never behind body copy. */
/* position: relative keeps the dot layer inside the element; without it the footer's dots paint over the first screen of every page */
.has-dots { position: relative; overflow: hidden; }
.has-dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0 34%, transparent 36%);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
}
.has-dots--bottom::before {
  -webkit-mask-image: radial-gradient(60% 80% at 100% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 80% at 100% 100%, #000 0%, transparent 70%);
}
.has-dots > * { position: relative; }

/* On the grey light bands the brand yellow reads well, so dots, rules and steps stay yellow
   (on the old cream they had to switch to charcoal). Decorative shapes only: text stays charcoal. */
.surface-cream .card__body, .surface-grey .card__body { border-top: 4px solid var(--pes-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 700 0.85rem/1.25 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9em 1.7em; border-radius: var(--pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--pes-yellow); color: var(--pes-charcoal); border-color: var(--pes-yellow); }
.btn--primary:hover { background: var(--pes-yellow-300); border-color: var(--pes-yellow-300); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.surface-yellow .btn--ghost:hover, .on-light .btn--ghost:hover { background: rgba(56, 56, 56, 0.08); }
.btn--dark { background: var(--pes-charcoal); color: var(--pes-white); border-color: var(--pes-charcoal); }
.btn--dark:hover { border-color: var(--pes-yellow); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
@media (max-width: 400px) { .page-hero .btn-row .btn { flex: 1 1 100%; } }

/* Text link with a sliding yellow underline */
.link-more {
  display: inline-block; font: 700 0.85rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.35em; position: relative; color: inherit;
}
.link-more::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--pes-yellow); transform: scaleX(0.35); transform-origin: left; transition: transform 0.3s var(--ease);
}
.link-more:hover::after, .link-more:focus-visible::after, .card:hover .link-more::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pes-charcoal); color: var(--pes-white);
  --focus: var(--pes-yellow);
}
.site-header .container { max-width: 1400px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; padding: 0.75rem 0; }
.brand img { height: 30px; width: auto; }
/* on the narrowest phones the logo scales down (in proportion) rather than pushing the menu button off-screen */
@media (max-width: 400px) { .site-header .brand { flex: 0 1 auto; min-width: 0; } .site-header .brand img { width: 100%; height: auto; max-width: 182px; } }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--pes-grey-500); color: var(--pes-white);
  border-radius: var(--pill); padding: 0.55rem 0.9rem; min-height: 48px; font: 700 0.75rem var(--font-display);
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; gap: 0.5em; align-items: center;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle .bars span { display: block; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font: 600 0.9rem var(--font-display); text-decoration: none; color: var(--pes-grey-300);
  padding: 0.5rem 0; position: relative; display: inline-block; white-space: nowrap;
}
.site-nav .btn { flex: none; white-space: nowrap; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pes-yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--pes-white); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Eight links plus the CTA need ~1350px at full spacing. From 1260px (common 1280/1366 laptops) the
   spacing tightens so they still fit; below that the menu collapses behind the toggle */
@media (min-width: 1260px) and (max-width: 1439px) {
  .site-header .container { padding-inline: 2rem; }
  .site-nav, .site-nav ul { gap: 1rem; }
  .site-nav a:not(.btn) { font-size: 0.85rem; }
}
@media (max-width: 1259px) {
  .nav-toggle { display: inline-flex; }
  .site-header .brand, .nav-toggle { position: relative; z-index: 95; } /* keep the header bar above the backdrop */
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 95;
    max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--pes-charcoal); flex-direction: column; align-items: stretch;
    padding: 0.5rem var(--gutter) 1.5rem; gap: 1rem;
    border-top: 1px solid var(--pes-grey-700); box-shadow: 0 20px 40px rgba(56, 56, 56, 0.5);
    z-index: 95; /* above .nav-backdrop (90) so the links can be tapped */
  }
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--pes-grey-700); font-size: 1.05rem; }
  .site-nav ul a:not(.btn)::after { display: none; }
  .site-nav .btn { align-self: flex-start; min-height: 48px; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (min-width: 1260px) { .site-nav[hidden] { display: flex; } }

.nav-backdrop { position: fixed; inset: 0; background: rgba(56, 56, 56, 0.6); z-index: 90; }
.nav-backdrop[hidden] { display: none; }
.page-hero .btn-row { margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 860px); display: flex; align-items: center;
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__copy { max-width: 680px; }
.hero__copy h1 {
  margin-bottom: 1.25rem;
  /* On narrow screens, shrink just enough for the longest rotating ending ("pop the prosecco")
     to stay on one line beside the gutters. */
  font-size: min(clamp(2.5rem, 5.6vw, 4.5rem), calc((100vw - 2 * var(--gutter)) / 9.4));
}
.hero__copy h1 em { font-style: normal; color: var(--pes-yellow); }
/* Rotating headline ending: the endings swap instantly, in line. They all sit in the same grid
   cell, so the heading is sized to the longest and nothing below it moves. */
.rotator { display: inline-grid; vertical-align: top; }
.rotator__item { grid-area: 1 / 1; visibility: hidden; }
.rotator__item.is-active { visibility: visible; }
.hero__copy .lede { color: var(--pes-grey-300); margin-bottom: 2rem; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 75%; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* halftone dissolve: solid charcoal, then a field of charcoal dots that thins out, then the photograph */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, var(--pes-charcoal) 0 41%, transparent 43%);
  background-size: var(--dot) var(--dot);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 8%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.35) 42%, transparent 58%);
          mask-image: linear-gradient(to right, #000 0%, #000 8%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.35) 42%, transparent 58%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to right, var(--pes-charcoal) 0%, rgba(56, 56, 56, 0.9) 12%, rgba(56, 56, 56, 0.6) 32%, rgba(56, 56, 56, 0.3) 47%, transparent 62%),
    linear-gradient(to top, rgba(56, 56, 56, 0.6) 0%, transparent 30%);
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero .container { padding-block: 3.5rem 2.5rem; }
  .hero__media { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .hero__media::before {
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);
  }
  .hero__media::after { background: linear-gradient(to bottom, var(--pes-charcoal) 0%, transparent 35%); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hero__media::after {
    background:
      linear-gradient(to right, var(--pes-charcoal) 0%, var(--pes-charcoal) 44%, rgba(56, 56, 56, 0.9) 52%, rgba(56, 56, 56, 0.45) 66%, transparent 82%),
      linear-gradient(to top, rgba(56, 56, 56, 0.6) 0%, transparent 30%);
  }
}

/* Page hero (inner pages): compact, dark, with dot texture */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 0.5rem; }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Metrics strip ---------- */
.metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 0; }
.metrics li { display: flex; align-items: baseline; gap: 0.6rem; padding-inline: clamp(1rem, 2.5vw, 2.25rem); position: relative; }
.metrics li + li::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--pes-yellow);
}
.metrics strong { white-space: nowrap; font: 700 clamp(1.6rem, 2.6vw, 2.25rem)/1 var(--font-display); letter-spacing: -0.03em; }
.metrics span { font: 600 0.8rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
@media (max-width: 640px) { .metrics li + li::before { display: none; } .metrics { flex-direction: column; align-items: center; } }

/* What we supply: one line under a hero lede */
.supply-line { margin: 1.25rem 0 0; max-width: 60ch; font: 600 0.95rem/1.6 var(--font-display); color: var(--text); }
.supply-line .label { display: block; margin-bottom: 0.25rem; }
.hero__copy .supply-line { margin: -0.75rem 0 2rem; }
.page-hero .supply-line { margin-bottom: 1.75rem; }
.supply-line__not { display: block; margin-top: 0.35rem; font: 400 0.9rem/1.5 var(--font-body); color: var(--text-muted); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 5fr 6fr; }
  .split--media-first > .photo { order: -1; }
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede { margin-top: 0.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; max-width: none; }

.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--pes-charcoal); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1; }
.photo--tall { aspect-ratio: 4 / 5; }
/* halftone edge on a photo: dots of the surface colour eat into one side */
.photo--halftone-left::before, .photo--halftone-bottom::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, var(--halftone, var(--pes-charcoal)) 0 40%, transparent 42%);
  background-size: 14px 14px;
}
.photo--halftone-left::before {
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 30%, transparent 58%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 30%, transparent 58%);
}
.photo--halftone-bottom::before {
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 50%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 50%);
}
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.75rem 1rem 0.75rem; font-size: 0.8rem; color: var(--pes-white); background: linear-gradient(to top, rgba(56, 56, 56, 0.92) 0, rgba(56, 56, 56, 0.92) calc(100% - 1.25rem), transparent); }

.card {
  display: flex; flex-direction: column; background: var(--pes-white); color: var(--pes-charcoal);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  --text-muted: var(--pes-grey-700);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(56, 56, 56, 0.45); }
.card .photo { border-radius: 0; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { color: var(--text-muted); margin: 0; }
.card__body .eyebrow { margin: 0; }
.card__body .link-more { margin-top: auto; padding-top: 0.75rem; }
.surface-cream .card, .surface-grey .card { box-shadow: 0 1px 0 rgba(56, 56, 56, 0.06); }
.section:not(.surface-cream):not(.surface-grey):not(.surface-dark) .card { border: 1px solid rgba(56, 56, 56, 0.1); }

/* Feature list with dot bullets */
.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.dots li { position: relative; padding-left: 1.5rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--pes-yellow); }
.dots--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Attribute grid */
.attributes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.attributes h3 { font-size: 1.1rem; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.6rem; }
.attributes h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pes-yellow); flex: none; }
.attributes p { color: var(--text-muted); margin: 0; }

/* Facts panel (warehouse) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.facts strong { display: block; font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--font-display); letter-spacing: -0.03em; }
.facts span { display: block; margin-top: 0.4rem; font: 600 0.8rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* two-up facts for narrow columns */
.facts--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts a { display: block; color: inherit; text-decoration: none; }
.facts a strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.facts a:hover strong { text-decoration-color: var(--pes-yellow); }
.facts a[href^="mailto:"] strong { font-size: 0.8em; overflow-wrap: anywhere; }

/* Definition list (case study facts) */
.dl { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin: 0; }
.dl div { border-top: 3px solid var(--pes-yellow); padding-top: 0.75rem; }
.dl dt { font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.dl dd { margin: 0.25rem 0 0; font-weight: 500; }

/* Results (case study metrics) */
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.results strong { display: block; font: 700 clamp(2rem, 3.5vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--pes-yellow); }
.results span { font: 600 0.8rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* Chips (events we support) */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  font: 600 0.9rem var(--font-display); padding: 0.6em 1.1em; border-radius: var(--pill);
  border: 1.5px solid var(--rule); background: var(--pes-white);
}
/* linked chips: the whole pill is the target, with a border that reads as a control */
.chips li:has(> a) { padding: 0; border-color: var(--pes-grey-700); }
.chips a { display: block; padding: 0.6em 1.1em; border-radius: inherit; }
.surface-dark .chips li { background: transparent; border-color: var(--pes-grey-700); }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; }
.quote p { font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--font-body); margin: 0; }
.quote p::before { content: "\201C"; display: block; font: 700 3.5rem/0.6 var(--font-display); color: var(--pes-yellow); margin-bottom: 0.6rem; }
.surface-cream .quote p::before, .surface-grey .quote p::before { color: var(--pes-charcoal); }
.quotes { row-gap: 2.5rem; }
.quote figcaption { font: 600 0.85rem var(--font-display); color: var(--text-muted); letter-spacing: 0.02em; }

/* Statement (Built to deliver) */
.statement h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14ch; }
.statement h2 em { font-style: normal; color: var(--pes-yellow); }
.statement p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 52ch; }

/* Alternating service rows */
.service-row { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
main, section[id], div[id], article[id] { scroll-margin-top: 100px; }
.service-row:first-of-type { border-top: 0; }
.service-row h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.service-row .dots { margin-top: 1.5rem; }

/* Numbered? No. Steps with dots (how we work) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { border-top: 3px solid var(--pes-yellow); padding-top: 1rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; line-height: 1.2; }
.steps h3 a { display: inline-block; padding-block: 0.15em; }
.steps p { color: var(--text-muted); margin: 0; }
.steps--five { gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.steps--five li { display: flex; flex-direction: column; align-items: flex-start; }
.steps--five li p { flex-grow: 1; }
/* line up heading, text and link across the row where subgrid is supported */
@supports (grid-template-rows: subgrid) {
  .steps--five { row-gap: 2rem; }
  .steps--five li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-content: start; }
  .steps--five li > a { align-self: start; }
}

/* ---------- Enquiry form (the PES Portal embed) ---------- */
/* The fields inside the frame show their own focus ring, so the frame itself doesn't. */
.enquiry-embed iframe:focus, .enquiry-embed iframe:focus-visible { outline: none; }
.form-note { font-size: 0.9rem; color: var(--text-muted); }

/* Contact aside */
.contact-card { display: grid; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius); }
.contact-card a { text-decoration: none; font: 600 1.05rem var(--font-display); }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.contact-card small { display: block; font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
@media (min-width: 1000px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pes-yellow); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: var(--pes-grey-300); }
.site-footer a:hover { color: var(--pes-white); text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.site-footer .brand img { height: 30px; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--pes-grey-700); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; color: var(--pes-grey-300); font-size: 0.85rem; }
.site-footer .legal__company { max-width: 60ch; margin: 0; }
.site-footer .legal ul { display: flex; gap: 1.5rem; }
.site-footer .legal a, .site-footer .cols a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Cookie notice ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; margin-inline: auto; max-width: 720px;
  background: var(--pes-white); color: var(--pes-charcoal); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(56, 56, 56, 0.6); border-top: 4px solid var(--pes-yellow); border-top-left-radius: 0; border-top-right-radius: 0;
  padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .callout { background: var(--pes-yellow-100); padding: 1.1rem 1.4rem; border-radius: var(--radius); margin: 1.75rem 0; --text-muted: var(--pes-charcoal); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose .table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.prose tbody th { font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; color: inherit; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--pes-grey-300); margin-top: 1rem; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.article-card { border-top: 3px solid var(--pes-yellow); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article-card h2 { margin: 0; }
.article-card h2 a { text-decoration: underline; text-decoration-color: var(--pes-yellow); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.article-card h2 a:hover, .article-card h2 a:focus-visible { text-decoration-color: currentColor; }
.article-card p { color: var(--text-muted); margin: 0; }
.article-card .eyebrow { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 700 0.75rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .btn, .skip-link { display: none !important; }
  .surface-dark { background: none; color: #383838; }
}

.cta-band { margin-bottom: 0; align-items: center; }
.cta-band > div:first-child { flex: 1 1 360px; max-width: 560px; }
.cta-band .btn-row { flex: 1 1 auto; min-width: 0; }
.cta-band .eyebrow { color: var(--pes-charcoal); }
.cta-band .eyebrow::before { background: var(--pes-charcoal); }
.service-row .lede { color: var(--text-muted); }

/* ---------- Utilities used by templates (no inline styles: CSP style-src 'self') ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-1 { margin-bottom: 0.4rem !important; }
.pt-2 { padding-top: 1.5rem; }
.my-list { margin: 1.25rem 0 1.75rem !important; }
.small { font-size: 0.95rem; }
.h2-md { font-size: clamp(2rem, 4vw, 3rem) !important; }
.measure-sm { max-width: 640px; }
.measure-md { max-width: 720px; }
.measure-lg { max-width: 860px; }
.w-20ch { max-width: 20ch !important; }
.w-22ch { max-width: 22ch !important; }
.w-56ch { max-width: 56ch !important; }
.metrics--start { justify-content: flex-start; }
.split--gap-lg { gap: clamp(2rem, 5vw, 5rem); }
.photo--halftone-on-white { --halftone: var(--pes-white); }
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.contact-card__title { font-size: 1.25rem; margin: 0; }
.my-2 { margin: 2rem 0 !important; }
