/* ============================================================
   EJ McGrath — Website UI kit styles
   Loads on top of colors_and_type.css
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--fg-1); background: var(--surface); }
img { max-width: 100%; display: block; }
/* Photos always crop to fill their container (cover), never stretch/distort.
   The design applied this inline originally; as a global rule it fixes the
   hero/header and card images. */
.photo { object-fit: cover; width: 100%; height: 100%; display: block; }

/* Nav menus come from wp_nav_menu as bare <li> items — strip list bullets so
   the header nav and the mobile drawer read as clean links. */
.hdr-nav ul, .hdr-nav li, .drawer-panel ul, .drawer-panel li { list-style: none; margin: 0; padding: 0; }

/* ---------- Global polish: motion, focus, scroll ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
/* Keyboard focus rings for every interactive element (low specificity so
   component-specific rings, e.g. .btn, still win where defined). */
:where(a, button, [role="button"], [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--ejm-purple);
  outline-offset: 2px;
  border-radius: 3px;
}
/* On dark bands the amber ring reads better than purple. */
.section.projects-purple :where(a, [role="button"]):focus-visible,
.cta :where(a, button, [role="button"]):focus-visible,
.hero :where(a, [role="button"]):focus-visible,
.footer :where(a, [role="button"]):focus-visible { outline-color: var(--ejm-hivis); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 44px 0; }
  .hero-in { padding: 52px 0 56px; max-width: 100%; }
  .phero { min-height: 360px; }
  .phero-in { padding: 36px 0 42px; }
  .pcta { padding: 30px 26px; }
  .pcta h2 { font-size: 26px; }
  .section-head { margin-bottom: 22px; }
}
.eyebrow-row { display: flex; flex-direction: column; gap: 10px; }
.eyebrow-row .rule { height: 4px; width: 38px; background: var(--ejm-hivis); border-radius: 2px; }

/* ---------- Image placeholder ---------- */
.imgph {
  background: linear-gradient(150deg, var(--ejm-purple) 0%, var(--ejm-purple-deep) 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; color: rgba(255,255,255,.8); position: relative; overflow: hidden;
}
.imgph svg { display: none; }
.imgph .imgph-lbl { font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .14em; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.62); }

/* Graceful fallback when a real <Photo> fails to load — branded mark on a
   faint concrete wash, so a missing image reads as intentional, not broken. */
.photo.photo-fallback {
  background: var(--surface-3) url(assets/logo-ej-mark-purple.png) no-repeat center / 44px;
  font-size: 0;
}

/* ---------- Divisions (two equal pillars) ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.division { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: .15s ease; }
.division:hover { box-shadow: var(--shadow-md); }
.division .ph { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.division .ph .tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ejm-purple);
  color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm); }
.division-body { padding: 30px 32px 34px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.division-body h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 28px;
  font-weight: 700; line-height: 1.02; }
.division-body > p { font-size: 15.5px; color: var(--fg-2); margin: 0; }
.division-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 11px; }
.division-list li { display: flex; gap: 11px; align-items: center; font-size: 15px; color: var(--fg-2); }
.division-list svg { width: 18px; height: 18px; color: var(--ejm-purple); flex-shrink: 0; }
.division .more { margin-top: 22px; align-self: flex-start; font-weight: 600; font-size: 15px;
  color: var(--ejm-purple); display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border-bottom: 2px solid var(--ejm-hivis); padding-bottom: 2px; }
.division .more svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.hdr-logo { height: var(--logo-h, 34px); width: auto; cursor: pointer; transition: height .15s ease; }
.hdr-nav { display: flex; align-items: center; gap: 30px; }
.hdr-nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; padding: 4px 0; border-bottom: 2px solid transparent; transition: .15s; }
.hdr-nav a:hover { color: var(--ejm-purple); }
.hdr-nav a.active { color: var(--ejm-purple); border-bottom-color: var(--ejm-hivis); }
.hdr-actions { display: flex; align-items: center; gap: 16px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.hdr-phone svg { width: 16px; height: 16px; color: var(--ejm-purple); }
.hdr-phone { transition: color .15s ease; }
.hdr-phone:hover { color: var(--ejm-purple); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
@media (max-width: 1100px) {
  .hdr-nav, .hdr-phone { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-sans); font-weight: 600; font-size: 15px; border-radius: var(--r-sm);
  padding: 12px 20px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent; transition: .15s ease; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ejm-purple); color: #fff; }
.btn-primary:hover { background: var(--ejm-purple-600); }
.btn-primary:active { background: var(--ejm-purple-deep); transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--ejm-purple); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ejm-purple); background: var(--ejm-purple-050); }
.btn-onpurple { background: #fff; color: var(--ejm-purple); }
.btn-onpurple:hover { background: var(--ejm-purple-050); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn:focus-visible { outline: 2px solid var(--ejm-hivis); outline-offset: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--ejm-purple-deep); color: #fff; overflow: hidden; }
.hero .hero-photo { position: absolute; inset: 0; opacity: .6; }
/* Slideshow */
.hero-slides { position: absolute; inset: 0; opacity: .6; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .photo { width: 100%; height: 100%; }
.hero-dots { position: absolute; right: 48px; bottom: 40px; z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45);
  border: 0; padding: 0; cursor: pointer; transition: .2s ease; }
.hero-dot:hover { background: rgba(255,255,255,.75); }
.hero-dot.active { background: var(--ejm-hivis); width: 28px; border-radius: 5px; }
@media (max-width: 700px) { .hero-dots { right: 24px; bottom: 24px; } }
.hero .hero-photo.imgph { background:
  linear-gradient(0deg, rgba(33,0,75,.2), rgba(33,0,75,.2)),
  repeating-linear-gradient(135deg, #2c2c4f 0 16px, #26264a 16px 32px); }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,0,75,.9) 0%, rgba(33,0,75,.66) 30%, rgba(33,0,75,.24) 64%, rgba(33,0,75,0) 92%); }
.hero-in { position: relative; padding: 96px 0 104px; max-width: 720px; }
.hero h1 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(40px, 8vw, 64px); line-height: .98; letter-spacing: .005em; margin: 18px 0 0; color: #fff; }
.hero .eyebrow { color: var(--ejm-hivis); }
.hero p { font-size: 19px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 22px 0 0; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ============================================================
   SECTION shell
   ============================================================ */
.section { padding: 64px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 5vw, 40px); margin: 12px 0 0; }
.section-head p { font-size: 17px; color: var(--fg-2); margin: 14px 0 0; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; overflow: hidden; isolation: isolate; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; transition: .18s ease; cursor: pointer; text-decoration: none; color: inherit; }
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ejm-purple); }
.svc-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .28s ease; }
.svc-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(33,0,75,.55), rgba(20,0,46,.86)); }
.svc-card:hover .svc-bg { opacity: 1; }
.svc-ico { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--ejm-purple-100); color: var(--ejm-purple);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background .2s ease, color .2s ease; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-card h3 { position: relative; z-index: 1; font-size: 19px; margin-bottom: 8px; transition: color .2s ease; }
.svc-card p { position: relative; z-index: 1; font-size: 14.5px; color: var(--fg-3); margin: 0; transition: color .2s ease; }
.svc-card:hover .svc-ico { background: var(--ejm-hivis); color: var(--ejm-purple-deep); }
.svc-card:hover h3 { color: #fff; }
.svc-card:hover p { color: rgba(255,255,255,.82); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* Vac-Ex — inset rounded charcoal panel (a contained feature, not a full-width banner) */
.vacex-panel { background: #1b1b1a; color: #fff; position: relative; overflow: hidden;
  border-radius: 20px; padding: 52px 56px; box-shadow: var(--shadow-md); }
.vacex-panel .vacex-grid { position: relative; z-index: 1; }
.vacex-panel::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 420px; height: 420px;
  background: url(assets/ej-circle.png) no-repeat center / contain; opacity: .16; pointer-events: none; }
.vacex-panel .eyebrow { color: var(--ejm-hivis); }
.vacex-panel h2 { color: #fff; }
.vacex-panel .vacex-img { border-color: rgba(255,255,255,.14); }
@media (max-width: 700px) { .vacex-panel { padding: 32px 24px; border-radius: 14px; } }

/* In-house plant (Vac-Ex) */
.vacex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Clients & partners banner */
#clients { padding: 40px 0; }
/* Tighten the News → Team gap */
#news { padding-bottom: 40px; }
#team { padding-top: 36px; }
#clients .section-head { margin-bottom: 24px !important; }
.clients-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center;
  max-width: 760px; margin: 0 auto; }
.client { flex: 0 0 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 8px; }
.client img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.client .name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700; font-size: 20px; color: var(--ink-3); line-height: 1.06; transition: color .15s ease; }
.client:hover img { opacity: .82; }
.client:hover .name { color: var(--ejm-purple); }
.client img { max-height: 56px; width: auto; }
@media (max-width: 700px) { .client { flex-basis: 140px; min-height: 80px; } .client .name { font-size: 16px; } }

/* News / blog */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.news-track { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: none; -ms-overflow-style: none; }
.news-track::-webkit-scrollbar { display: none; }
.news-track > .news-card { flex: 0 0 calc((100% - 40px) / 3); }
@media (max-width: 980px) { .news-track > .news-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .news-track > .news-card { flex-basis: 85%; } }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; transition: .15s ease; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .ph { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.news-card .ph .photo, .news-card .ph .imgph { position: absolute; inset: 0; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 11.5px; font-weight: 600; color: var(--ejm-purple); display: flex; gap: 8px; align-items: center; }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.news-card h3 { font-size: 17px; margin: 8px 0 6px; line-height: 1.25; }
.news-card p { font-size: 13.5px; color: var(--fg-3); margin: 0 0 14px; }
.news-more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--ejm-purple);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; border-bottom: 2px solid var(--ejm-hivis); padding-bottom: 2px; }
.news-more svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* Social value — soft, photo-led */
.sv { background: var(--ejm-purple-050); }
.sv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sv-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .15s ease; }
.sv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sv-card .ph { aspect-ratio: 4/3; position: relative; }
.sv-card .ph .imgph, .sv-card .ph .photo { position: absolute; inset: 0; }
.sv-body { padding: 20px 22px 24px; }
.sv-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--ejm-purple-100); color: var(--ejm-purple);
  display: flex; align-items: center; justify-content: center; margin: -42px 0 14px; position: relative;
  border: 3px solid #fff; }
.sv-ico svg { width: 20px; height: 20px; }
.sv-body h4 { font-size: 17px; margin-bottom: 7px; }
.sv-body p { font-size: 14px; color: var(--fg-3); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .sv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sv-grid { grid-template-columns: 1fr; } }

/* Testimonials — concise client quotes */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tst-card > svg, .tst-card > [data-lucide] { width: 30px; height: 30px; color: var(--ejm-hivis); margin-bottom: 14px; }
.tst-card blockquote { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--fg-1);
  text-wrap: pretty; }
.tst-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto;
  padding-top: 18px; border-top: 1px solid var(--line); }
.tst-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .07em;
  font-size: 13px; font-weight: 600; color: var(--ejm-purple); }
.tst-org { font-size: 13.5px; color: var(--fg-3); }
@media (max-width: 860px) { .tst-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Faint ej watermark for white sections (use sparingly) */
.ejwm { position: relative; overflow: hidden; }
.ejwm > .wrap { position: relative; z-index: 1; }
.ejwm::before { content: ""; position: absolute; width: 520px; height: 520px; pointer-events: none;
  background: url(assets/ej-circle-faint.png) no-repeat center / contain; }
.ejwm-tr::before { right: -160px; top: -150px; }
.ejwm-bl::before { left: -170px; bottom: -90px; }

/* Meet the team */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-photo { width: 140px; max-width: 78%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; position: relative; margin: 0 auto 14px; border: 4px solid var(--ejm-purple); box-sizing: border-box; background: #fff; }
.team-photo .photo { transform: scale(1.12); transition: transform .45s ease; }
.team-card:hover .team-photo .photo { transform: scale(1.22); }
.team-photo { transition: border-color .2s ease; }
.team-card:hover .team-photo { border-color: var(--ejm-purple-500); }
.team-photo .imgph, .team-photo .photo { position: absolute; inset: 0; }
.team-role { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; font-weight: 600; color: var(--ejm-hivis); }
.team-card h4 { font-size: 18px; margin: 3px 0 0; }
.team-bio { font-size: 13.5px; color: var(--fg-3); margin-top: 10px; line-height: 1.55; }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.vacex-img { aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); }
.vacex-img .imgph, .vacex-img .photo { position: absolute; inset: 0; }
.vacex-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vacex-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.82); font-weight: 500; }
.vacex-list .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ejm-hivis); color: #1b1b1a;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.vacex-list .tick svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .vacex-grid { grid-template-columns: 1fr; gap: 28px; } .vacex-list { grid-template-columns: 1fr; } }

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sector { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
  display: block; text-decoration: none; color: inherit; }
.sector .imgph, .sector .photo { position: absolute; inset: 0; }
.sector-ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(33,0,75,.85) 8%, rgba(33,0,75,.1) 70%); }
.sector-lbl { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; z-index: 2; }
.sector-lbl .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ejm-hivis); font-weight: 600; }
.sector-lbl .t { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 19px; line-height: 1.08; margin-top: 5px; min-height: 2.16em; display: flex; align-items: flex-end; }
.sector:hover .sector-ov { background: linear-gradient(0deg, rgba(33,0,75,.92) 12%, rgba(33,0,75,.25) 80%); }
@media (max-width: 900px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats band ---------- */
.stats { background: var(--ejm-purple); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 64px 0; }
.stat .rule { height: 4px; width: 32px; background: var(--ejm-hivis); border-radius: 2px; margin-bottom: 14px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: .9; }
.stat .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); margin-top: 10px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Projects ---------- */
/* Deep-purple "anchor" section — one intentional dark band in the page.
   Keep text & controls legible on the deep fill. */
.section.projects-purple { background: var(--ejm-purple-deep); }
.section.projects-purple .eyebrow { color: var(--ejm-hivis); }
#projects.projects-purple .section-head h2 { color: #fff; }
.section.projects-purple .proj-row-title { color: #fff; }
.section.projects-purple .proj-row-title svg { color: var(--ejm-hivis); }
.section.projects-purple .proj-row-title:hover { color: var(--ejm-hivis); }
/* Carousel arrows: translucent-on-dark, fill amber-free on hover */
.section.projects-purple .cnav { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: #fff; }
.section.projects-purple .cnav:hover:not(:disabled) { background: #fff; color: var(--ejm-purple-deep); border-color: #fff; }
/* Cards sit cleanly on the dark band */
.section.projects-purple .proj { border-color: rgba(255,255,255,.10); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.section.projects-purple .proj:hover { box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.section.projects-purple .proj-viewall .btn-primary { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.proj-filter { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
#projects .section-head h2 { color: var(--ejm-purple); }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fff; color: var(--fg-2); cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--ejm-purple); color: var(--ejm-purple); }
.chip.active { background: var(--ejm-purple); color: #fff; border-color: var(--ejm-purple); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery { gap: 18px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; transition: .15s ease; display: block; text-decoration: none; color: inherit; }
.proj:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.proj .imgph { aspect-ratio: 4/3; }
.proj .ph { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.proj .ph .photo, .proj .ph .imgph { position: absolute; inset: 0; }
.gallery .proj .ph .photo { transition: transform .4s ease; }
.gallery .proj:hover .ph .photo { transform: scale(1.05); }
.proj-body { padding: 18px 20px 22px; }
.gallery .proj-body { padding: 13px 15px 15px; }
.proj-body .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; font-weight: 600; color: var(--ejm-purple); }
.proj-body h3 { font-size: 18px; margin: 6px 0 8px; }
.gallery .proj-body h3 { font-size: 15.5px; margin: 5px 0 0; line-height: 1.3; }
.proj-body p { font-size: 14px; color: var(--fg-3); margin: 0; }
.proj-meta { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--fg-3); }
.gallery .proj-meta { margin-top: 8px; font-size: 12px; }
.proj-meta span { display: inline-flex; align-items: center; gap: 5px; }
.proj-meta svg { width: 14px; height: 14px; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* ---------- Projects carousel ---------- */
.proj-rows { display: flex; flex-direction: column; gap: 40px; }
.proj-row-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.proj-row-head h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 21px; color: var(--ink); margin: 0; }
.proj-row-title { display: inline-flex; align-items: center; gap: 9px; margin: 0; text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 21px;
  color: var(--ink); transition: color .15s ease; }
.proj-row-title svg { width: 18px; height: 18px; color: var(--ejm-purple); opacity: 0;
  transform: translateX(-5px); transition: opacity .15s ease, transform .15s ease; }
.proj-row-title:hover { color: var(--ejm-purple); }
.proj-row-title:hover svg { opacity: 1; transform: none; }
.proj-viewall { margin-top: 40px; }
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.cnav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ejm-purple); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s ease; }
.cnav:hover:not(:disabled) { background: var(--ejm-purple); color: #fff; border-color: var(--ejm-purple); transform: translateY(-1px); }
.cnav:disabled { opacity: .3; cursor: default; }
.cnav svg { width: 19px; height: 19px; }
.proj-track { display: flex; gap: 18px; overflow-x: auto;
  padding: 4px 2px 8px; scrollbar-width: none; -ms-overflow-style: none; }
.proj-track::-webkit-scrollbar { display: none; }
.proj-track > .proj { flex: 0 0 calc((100% - 36px) / 3); }
@media (max-width: 980px) { .proj-track > .proj { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 560px) { .proj-track > .proj { flex-basis: 85%; } }

/* ---------- Projects page: sector filter nav ---------- */
.proj-tabs { position: sticky; top: 76px; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proj-tabs-in { max-width: 1180px; margin: 0 auto; display: flex; gap: 10px;
  padding: 13px 40px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.proj-tabs-in::-webkit-scrollbar { display: none; }
.proj-tabs .chip { white-space: nowrap; flex-shrink: 0; }
.proj-cat-group + .proj-cat-group { margin-top: 52px; }
.proj-cat-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 22px; margin: 0 0 20px; color: var(--ejm-purple); }
.proj-count { font-family: var(--font-mono, monospace); font-size: 13px; color: var(--fg-3); font-weight: 500;
  text-transform: none; letter-spacing: 0; margin-left: 10px; }
@media (max-width: 600px) { .proj-tabs { top: 76px; } .proj-tabs-in { padding: 11px 20px; } }

/* ---------- Accreditations ---------- */
.accred { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.accred-logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.accred-logo { background: transparent; border: 0; padding: 0; height: auto; display: flex; align-items: center; justify-content: center; }
.accred-logo img { max-height: 84px; max-width: 230px; width: auto; object-fit: contain; }
@media (max-width: 700px) { .accred-logo { height: 100px; padding: 16px 22px; } .accred-logo img { max-height: 60px; max-width: 170px; } }
.accred-badge { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 22px; background: #fff; min-width: 180px; }
.accred-badge svg { width: 26px; height: 26px; color: var(--ejm-purple); flex-shrink: 0; }
.accred-badge .a-t { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.accred-badge .a-s { font-size: 12px; color: var(--fg-3); }

/* ---------- Enquiry / CTA ---------- */
.cta { background: var(--ejm-purple-deep); color: #fff; border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; }
.cta-left { padding: 56px 52px; }
.cta-left h2 { font-size: 40px; color: #fff; }
.cta-left p { color: rgba(255,255,255,.8); font-size: 16px; margin-top: 14px; }
.cta-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: rgba(255,255,255,.92); }
.cta-points svg { width: 18px; height: 18px; color: var(--ejm-hivis); }
.cta-form { background: #fff; padding: 40px; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 15px;
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ejm-purple); box-shadow: 0 0 0 3px rgba(242,183,1,.45); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px;
  font-size: 12.5px; line-height: 1.45; color: var(--fg-3); cursor: pointer; }
.field-consent input { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--ejm-purple); }
.field-consent:hover { color: var(--fg-2); }
.form-done { text-align: center; padding: 30px 10px; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-done .tick svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ftr { background: #1b1b1a; color: rgba(255,255,255,.7); padding: 60px 0 30px; position: relative; overflow: hidden; }
/* Office-location map, set into the footer background and themed dark to sit
   behind the content. Decorative (pointer-events disabled) so the footer stays usable. */
.ftr-map { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ftr-map iframe { width: 142%; height: 165%; position: absolute; left: 0; top: -3%; border: 0; display: block;
  filter: grayscale(.45) invert(.9) hue-rotate(185deg) brightness(1) contrast(.92); opacity: .82; }
.ftr-map-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,20,19,.82) 0%, rgba(24,22,30,.5) 42%, rgba(27,18,48,.52) 100%); }
.ftr .wrap { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.ftr::after { content: ""; position: absolute; right: -110px; top: -130px; width: 440px; height: 440px;
  background: url(assets/ej-circle.png) no-repeat center / contain; opacity: .05; pointer-events: none; }
.ftr-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.ftr-logo { height: 30px; width: auto; margin-bottom: 18px; }
.ftr-col h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: #fff; margin-bottom: 14px; }
.ftr-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; padding: 4px 0; cursor: pointer; }
.ftr-col a:hover { color: #fff; }
.ftr a[aria-label] { transition: color .15s ease; }
.ftr a[aria-label]:hover { color: #fff !important; }
.ftr-about { font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,.62); }
/* Footer accreditations strip */
.ftr-accred { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ftr-accred-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); }
.ftr-accred-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.ftr-accred-chip { background: #fff; border-radius: 6px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: center; }
.ftr-accred-chip img { max-height: 36px; max-width: 130px; width: auto; object-fit: contain; display: block; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.ftr-legal { margin-top: 30px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.42);
  max-width: 760px; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(22,24,29,.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 290px; background: #fff; padding: 24px; box-shadow: var(--shadow-lg); }
.drawer-panel a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.breadcrumb { display: flex; gap: 9px; align-items: center; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.breadcrumb a { color: inherit; text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* Breadcrumb bar — light nav strip directly under the main banner on sub-pages */
.crumbbar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.crumbbar .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  list-style: none; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; }
.crumbbar .crumb { display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .09em;
  font-size: 12px; font-weight: 600; line-height: 1; }
.crumbbar .crumb a { color: var(--ink-3); text-decoration: none; cursor: pointer; transition: color .15s ease; }
.crumbbar .crumb a:hover { color: var(--ejm-purple); }
.crumbbar .crumb a:focus-visible { outline: 2px solid var(--ejm-purple); outline-offset: 3px; border-radius: 2px; }
.crumbbar .crumb span[aria-current="page"] { color: var(--ejm-purple); }
.crumbbar .crumb [data-lucide], .crumbbar .crumb svg { width: 13px; height: 13px; color: var(--ink-4); flex-shrink: 0; }

.phero { position: relative; min-height: 480px; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ejm-purple-deep); }
.phero .photo { position: absolute; inset: 0; opacity: .55; transition: opacity .55s ease; }
.phero-ov { position: absolute; inset: 0; transition: opacity .55s ease;
  background: linear-gradient(0deg, rgba(33,0,75,.94) 4%, rgba(33,0,75,.3) 55%, rgba(33,0,75,.6) 100%); }
.phero:hover .photo { opacity: 1; }
.phero:hover .phero-ov { opacity: .18; }
.phero-in { position: relative; padding: 46px 0 54px; width: 100%; }
.phero .cat { display: inline-block; background: var(--ejm-purple); color: #fff; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: var(--r-sm); margin: 20px 0 0; }
.phero h1 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  font-size: clamp(34px, 7vw, 58px); line-height: .98; margin: 16px 0 0; color: #fff; }
.phero .lead { font-size: 18px; color: rgba(255,255,255,.86); margin: 14px 0 0; max-width: 640px; }
.phero h1, .phero .lead, .phero .breadcrumb { text-shadow: 0 1px 18px rgba(16,0,38,.55); }

.pbody { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.prose p { font-size: 16.5px; color: var(--fg-2); margin: 0 0 1.1em; }
.prose h2 { font-size: 34px; margin-bottom: 18px; }
.scope-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.scope-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg-2); }
.scope-list svg { width: 18px; height: 18px; color: var(--ejm-purple); flex-shrink: 0; margin-top: 1px; }
.facts { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; position: sticky;
  top: 96px; background: #fff; box-shadow: var(--shadow-sm); }
.facts h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 16px; letter-spacing: .06em; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.fact .fl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.fact .fv { font-size: 15.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .pbody { grid-template-columns: 1fr; } .facts { position: static; } }

.pgallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 14px; }
.pgallery .cell { border-radius: var(--r-md); overflow: hidden; position: relative; border: 1px solid var(--line); }
.pgallery .cell.wide { grid-column: span 2; }
.pgallery .cell.tall { grid-row: span 2; }
.pgallery .cell .photo, .pgallery .cell .imgph { position: absolute; inset: 0; }
@media (max-width: 900px) { .pgallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .pgallery .cell.wide { grid-column: span 2; } .pgallery .cell.tall { grid-row: span 1; } }

/* Project gallery lightbox */
.pgallery .cell.clickable { cursor: pointer; }
.pgallery .cell .photo { transition: transform .4s ease; }
.pgallery .cell.clickable:hover .photo { transform: scale(1.06); }
.cell-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(22,24,29,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease; }
.cell-zoom svg { width: 17px; height: 17px; }
.pgallery .cell.clickable:hover .cell-zoom { opacity: 1; }
.pglightbox { position: fixed; inset: 0; z-index: 200; background: rgba(22,24,29,.93);
  display: flex; align-items: center; justify-content: center; animation: pglfade .2s ease; }
@keyframes pglfade { from { opacity: 0; } to { opacity: 1; } }
.pgl-img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-lg); }
.pgl-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.pgl-btn:hover { background: var(--ejm-purple); }
.pgl-btn svg { width: 24px; height: 24px; }
.pgl-close { top: 24px; right: 28px; }
.pgl-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.pgl-next { right: 28px; top: 50%; transform: translateY(-50%); }
.pgl-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85);
  font-family: var(--font-display); letter-spacing: .12em; font-size: 13px; }
@media (max-width: 700px) { .pgl-prev { left: 10px; } .pgl-next { right: 10px; } .pgl-btn { width: 44px; height: 44px; } }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.highlight .rule { height: 4px; width: 32px; background: var(--ejm-hivis); border-radius: 2px; margin-bottom: 14px; }
.highlight h4 { font-size: 18px; margin-bottom: 6px; }
.highlight p { font-size: 14.5px; color: var(--fg-3); margin: 0; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }

.pcta { background: var(--ejm-purple); color: #fff; border-radius: var(--r-lg); padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pcta h2 { color: #fff; font-size: 32px; }
.pcta p { color: rgba(255,255,255,.84); margin: 8px 0 0; max-width: 460px; }

/* ============================================================
   LEGAL / POLICY PAGES
   ============================================================ */
.legal-hero { background: var(--ejm-purple-deep); color: #fff; padding: 52px 0 44px; }
.legal-hero .eyebrow { color: var(--ejm-hivis); }
.legal-hero h1 { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; color: #fff;
  font-size: clamp(30px, 5vw, 46px); line-height: var(--lh-tight); margin: 14px 0 0; }
.legal-updated { color: rgba(255,255,255,.6); font-size: 14px; margin: 14px 0 0; }
.legal-body { padding-top: 48px; }
.legal-wrap { max-width: 760px; }
.legal-lead { font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 0 0 8px;
  text-wrap: pretty; }
.legal-sec { margin-top: 40px; }
.legal-sec h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: 19px; color: var(--ejm-purple); margin: 0 0 12px; }
.legal-sec p { font-size: 16px; line-height: 1.65; color: var(--fg-2); margin: 0 0 12px; text-wrap: pretty; }
.legal-sec ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-sec li { font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.legal-sec a, .legal-lead a { color: var(--ejm-purple); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal-sec a:hover, .legal-lead a:hover { color: var(--ejm-purple-deep); }
.legal-sec :where(p, li) strong { color: var(--fg-1); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: #1b1b1a; color: rgba(255,255,255,.82); border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(14px); transition: opacity .26s ease, transform .26s ease; }
.cookie-bar[data-in] { opacity: 1; transform: none; }
.cookie-bar[data-leaving] { opacity: 0; transform: translateY(14px); }
.cookie-bar-in { display: flex; align-items: center; gap: 26px; max-width: 1100px; margin: 0 auto;
  padding: 18px 22px; flex-wrap: wrap; }
.cookie-copy { font-size: 13.5px; line-height: 1.55; margin: 0; flex: 1 1 320px; color: rgba(255,255,255,.82); }
.cookie-copy a { color: var(--ejm-hivis); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-bar .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.32); background: transparent; }
.cookie-bar .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 600px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; justify-content: center; } }

/* News article quote column */
.news-quotes { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.news-quotes-h { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; color: var(--fg-3); font-weight: 600; margin: 0 0 2px; }
.news-quotes blockquote { margin: 0; background: var(--surface-2, #f6f4fb); border-left: 4px solid var(--ejm-hivis);
  border-radius: var(--r-sm); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.news-quotes blockquote p { font-size: 15.5px; line-height: 1.55; color: var(--ink); font-style: normal; margin: 0 0 10px; }
.news-quotes blockquote p:last-child { margin-bottom: 0; }
.news-quotes blockquote cite { display: block; margin-top: 6px; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600;
  color: var(--ejm-purple); font-style: normal; }
@media (max-width: 900px) { .news-quotes { position: static; } }


/* ---------- Accreditations / credentials grid ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 18px 22px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); }
.cred-logo { height: 66px; display: flex; align-items: center; justify-content: center; }
.cred-logo img { max-height: 66px; max-width: 150px; width: auto; object-fit: contain; }
.cred-logo-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ejm-purple-100); color: var(--ejm-purple); }
.cred-logo-icon svg { width: 28px; height: 28px; }
.cred-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  font-size: 15px; color: var(--ink); margin-top: 4px; line-height: 1.15; }
.cred-status { font-size: 13px; color: var(--fg-3); line-height: 1.3; }
.cred-cert { font-size: 12.5px; font-weight: 600; color: var(--ejm-purple); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; }
.cred-cert svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .cred-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Company information panel ---------- */
.company-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.company-info > div { background: #fff; padding: 18px 22px; }
.company-info dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; color: var(--ejm-purple); font-weight: 600; margin-bottom: 5px; }
.company-info dd { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 700px) { .company-info { grid-template-columns: 1fr; } }

/* ---------- Project page: client logo, video, metric, body lists ---------- */
.fact-logo { display: flex; align-items: center; justify-content: center; min-height: 54px;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fact-logo img { max-height: 54px; max-width: 180px; width: auto; object-fit: contain; }
.fact-video { margin-top: 18px; }
.fact-video iframe, .fact-video video, .fact-video .wp-video, .fact-video .wp-video-shortcode,
.fact-video .mejs-container { width: 100% !important; height: auto !important; max-width: 100% !important; }
.fact-video iframe, .fact-video video { aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); display: block; }
.proj-metric { display: flex; flex-direction: column; gap: 2px; background: var(--ejm-purple-050, #f4f0fb);
  border-left: 4px solid var(--ejm-hivis); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 24px; }
.proj-metric .pm-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ejm-purple); }
.proj-metric .pm-lbl { font-size: 14px; color: var(--fg-2); }
.pbody .prose h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: 15px; color: var(--ink); margin: 26px 0 10px; }
.pbody .prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pbody .prose ul li { position: relative; padding-left: 22px; font-size: 16px; color: var(--fg-2); line-height: 1.5; }
.pbody .prose ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--ejm-hivis); }
.proj-result { margin: 8px 0 0; padding: 14px 18px; background: var(--surface-2, #f6f4fb);
  border-radius: var(--r-sm); font-size: 15.5px; color: var(--ink); line-height: 1.5; }

/* ---------- News <-> project cross-links ---------- */
.related-project { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-decoration: none;
  color: inherit; transition: .15s ease; max-width: 520px; }
.related-project:hover { box-shadow: var(--shadow-md); border-color: var(--ejm-purple); }
.related-project .rp-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.related-project .rp-body { display: flex; flex-direction: column; gap: 3px; }
.related-project .rp-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 11px; font-weight: 600; color: var(--fg-3); }
.related-project .rp-title { font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.25; }
.related-project .rp-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--ejm-purple); margin-top: 4px; }
.related-project .rp-cta svg { width: 15px; height: 15px; }
.related-news .rn-list { display: flex; flex-direction: column; gap: 0; margin-top: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; max-width: 720px; }
.related-news .rn-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); transition: background .12s ease; }
.related-news .rn-item:last-child { border-bottom: 0; }
.related-news .rn-item:hover { background: var(--ejm-purple-050, #f4f0fb); }
.related-news .rn-date { font-family: var(--font-mono, monospace); font-size: 12.5px; color: var(--fg-3); flex-shrink: 0; min-width: 96px; }
.related-news .rn-title { font-weight: 600; font-size: 15px; color: var(--ink); flex: 1; }
.related-news .rn-item svg { width: 16px; height: 16px; color: var(--ejm-purple); flex-shrink: 0; }
@media (max-width: 560px) { .related-project { flex-direction: column; align-items: flex-start; }
  .related-project .rp-thumb { width: 100%; height: 160px; } .related-news .rn-date { min-width: 0; } }

/* Per-post banner focal points (object-position) — keep faces/subject in frame. */
body.postid-477 .phero .photo { object-position: center 18%; } /* Princess Anne — show faces */
body.postid-308 .phero .photo { object-position: center top; } /* Meet the Royles - show faces */
body.postid-849 .phero .photo { object-position: center 28%; } /* Victorian Sea Wall - show faces */
body.postid-594 .phero .photo { object-position: center 32%; } /* Award win - show faces */
body.postid-305 .phero .photo { object-position: center 30%; } /* LABC finalists - show faces */

/* ===== Mobile responsive fixes 2026-06-17 ===== */
@media (max-width:768px){
.cta{grid-template-columns:1fr !important;}
.cta-left,.cta-form,.cta .wpcf7,.cta .wpcf7-form{width:100% !important;max-width:100% !important;}
.field-row{grid-template-columns:1fr !important;}
.field input,.field select,.field textarea,.wpcf7-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),.wpcf7-form select,.wpcf7-form textarea{width:100% !important;max-width:100% !important;box-sizing:border-box !important;}
.news-body{grid-template-columns:1fr !important;}
img,video,iframe{max-width:100%;}
}
@media (max-width:768px){.tst-grid{grid-template-columns:1fr !important;}}
@media (max-width:768px){.team-grid{grid-template-columns:1fr 1fr !important;}}
@media (max-width:480px){.team-grid{grid-template-columns:1fr !important;}}
