/* ==========================================================================
   EM3 Energy - careers.css
   Careers page (/about/careers/). Extends brand.css + nav.css (loaded after).
   Structure: fin.ai-inspired spine, EM3 content, deliberate dark + white acts.
   Breakpoints 980 / 640 / 420 (brand). No em dashes anywhere.

   MARKUP CONTRACT
   ---------------
   Static sections (hero, mission, values, quotes, GPTW, final CTA) are emitted by
   Elementor HTML widgets (Phase 5). Interactive sections are emitted by shortcodes
   in inc/careers.php (Phase 4): [em3_team_slider] [em3_office_slider]
   [em3_benefits_accordion] [em3_open_roles] [em3_careers_video].
   Every block's expected markup is documented above its rules.

   Section backgrounds:
     dark  -> <section class="em3-section em3-bg-deep"> ... </section>
     white -> <section class="em3-section em3-bg-snow on-light"> ... </section>
     (pure white variant: add .em3-bg-white instead of .em3-bg-snow)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Light-section system (the client's "white sections", built on brand tokens)
   -------------------------------------------------------------------------- */
.em3-bg-white { background: var(--em3-white); color: var(--em3-ink-navy); }

/* Offset in-page anchor jumps (e.g. "See open roles" -> #open-roles) for the fixed glass nav. */
.em3-cr-hero[id], .em3-section[id] { scroll-margin-top: 96px; }

/* On light surfaces, lock the heading + body ink ladder to navy/charcoal. */
.on-light h1, .on-light h2, .on-light h3, .on-light h4, .on-light h5 { color: var(--em3-ink-navy); }
.on-light p { color: var(--em3-charcoal); }

/* Light ghost button: brand .em3-btn-ghost is translucent-on-dark and would vanish
   on white, so re-skin it inside .on-light (>= 0,2,0 to beat reset.css + Elementor). */
.on-light .em3-btn-ghost {
  background: var(--em3-white);
  border-color: var(--em3-line-onwhite);
  color: var(--em3-ink-navy);
}
.on-light .em3-btn-ghost:visited,
.on-light .em3-btn-ghost:focus,
.on-light .em3-btn-ghost:active { color: var(--em3-ink-navy); }
.on-light .em3-btn-ghost:hover { background: var(--em3-accent); border-color: var(--em3-accent); color: #fff; }

/* --------------------------------------------------------------------------
   1. Shared section header (eyebrow + H2 + intro lede)
   <div class="em3-cr-head [center]">
     <span class="em3-eyebrow tagged">Eyebrow</span>
     <h2>Heading with <span class="accent">accent</span></h2>
     <p class="em3-cr-head__intro">Intro lede.</p>
   </div>
   -------------------------------------------------------------------------- */
.em3-cr-head { max-width: 760px; margin: 0 0 48px; }
.em3-cr-head .em3-eyebrow { margin-bottom: 16px; }
.em3-cr-head h2 { margin: 0 0 16px; }
.em3-cr-head__intro { font-size: 17px; line-height: 1.6; color: var(--em3-ink-muted); margin: 0; }
.on-light .em3-cr-head__intro { color: var(--em3-charcoal); }
.em3-cr-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.em3-cr-head.center .em3-eyebrow { justify-content: center; }
@media (max-width: 640px) { .em3-cr-head { margin-bottom: 36px; } }

/* Section-level CTA row (e.g. under the values grid). */
.em3-cr-section-cta { margin-top: 44px; }

/* --------------------------------------------------------------------------
   2. Hero (DARK, overlay) - full-bleed banner with navy dissolve + overlaid copy
   <section class="em3-cr-hero">
     <div class="em3-cr-hero__bg" style="background-image:url(...)"></div>
     <div class="em3-wrap em3-cr-hero__body">
       <span class="em3-eyebrow series"><span class="em3-dot em3-dot--live"></span>Careers at EM3 . Now hiring</span>
       <h1>Engineering <span class="accent">Change</span></h1>
       <p class="em3-cr-hero__sub">...</p>
       <div class="em3-hero-actions">
         <a class="em3-btn-primary is-lg" href="#open-roles">See 6 open roles</a>
         <a class="em3-btn-ghost" href="/about/">Our story</a>
       </div>
     </div>
   </section>
   -------------------------------------------------------------------------- */
.em3-cr-hero {
  position: relative;
  padding-top: 65px; /* nav clearance: the video starts flush below the fixed glass header */
  background: var(--em3-bg-deep);
  color: var(--em3-ink); /* dark-context: H1 must be white, not the global #333 */
  overflow: hidden;
  isolation: isolate;
}
/* No admin-bar override needed: WP's html{margin-top} already shifts the in-flow hero down by
   the admin-bar height, and nav.css offsets the fixed nav itself - so clearing the nav's own
   65px height keeps the video flush below the header whether logged in or out. */
.em3-cr-hero h1 { color: var(--em3-ink); }
/* Full-bleed looping video; the hero is exactly as tall as the video. */
.em3-cr-hero__video { display: block; width: 100%; height: auto; aspect-ratio: 1366 / 700; background: var(--em3-bg-deep); }
/* Bottom scrim so the overlaid copy stays legible over the footage. */
.em3-cr-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(5,13,51,0.35) 45%, rgba(5,13,51,0.88) 100%);
}
/* Copy overlaid on the lower portion of the video. */
.em3-cr-hero__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-bottom: 56px;
}
.em3-cr-hero__body .em3-eyebrow { margin-bottom: 20px; }
.em3-cr-hero h1 { max-width: none; margin: 0; }
.em3-cr-hero__sub {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--em3-ink-muted);
}
.em3-hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
/* Narrow screens: the video is short, so drop the copy below it (in-flow) on the dark hero
   background instead of overlaying, so it never overlaps. */
@media (max-width: 760px) {
  .em3-cr-hero::after { display: none; }
  .em3-cr-hero__body { position: static; padding: 32px var(--em3-pad-x) 44px; }
}
@media (max-width: 640px) { .em3-cr-hero__sub { font-size: 16px; } }

/* --------------------------------------------------------------------------
   3. Mission / Who we are (WHITE) - unified block: a tall portrait that
      auto-matches the copy height (left) + all copy stacked (right). The image
      is absolutely positioned so it fills whatever height the copy column sets,
      so neither column ever leaves dead whitespace.
   <section class="em3-section em3-bg-snow on-light">
     <div class="em3-wrap em3-cr-mission">
       <div class="em3-cr-mission__media"> portrait img </div>
       <div class="em3-cr-mission__copy">
         <span class="em3-eyebrow tagged">Our mission</span>
         <h2 class="em3-cr-mission__title">Help us spearhead <span class="accent">transformative</span> change</h2>
         <p class="em3-cr-lead">Lead mission paragraph.</p>
         <hr class="em3-cr-mission__rule">
         <h3 class="em3-cr-split__sub">Where will you fit in?</h3>
         <p class="em3-cr-mission__fit">Where-you-fit paragraph.</p>
         <a class="em3-link em3-cr-mission__link" href="#open-roles">Open roles</a>
       </div>
     </div>
   </section>
   -------------------------------------------------------------------------- */
.em3-cr-mission { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: stretch; }
.em3-cr-mission__media { position: relative; overflow: hidden; border-radius: var(--em3-radius-card); box-shadow: 0 30px 60px -30px rgba(10,24,88,0.3); min-height: 420px; }
/* 2-class selector (0,2,0) beats Elementor's .elementor img { height:auto } (0,1,1) so the portrait fills the stretched media. */
.em3-cr-mission__media .em3-cr-mission__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.em3-cr-mission__copy { display: flex; flex-direction: column; }
.em3-cr-mission__copy .em3-eyebrow { margin-bottom: 16px; }
.em3-cr-mission__title { margin: 0 0 22px; }
.em3-cr-lead { font-size: 19px; line-height: 1.6; color: var(--em3-ink-navy); margin: 0; }
.on-light .em3-cr-lead { color: var(--em3-ink-navy); } /* beat .on-light p (0,1,1) so the lede stays navy, not charcoal */
/* 2-class (0,2,0) so the hairline survives Elementor's .elementor hr reset (0,1,1); the ::before paints the accent tick over its first 42px. */
.em3-cr-mission .em3-cr-mission__rule { border: 0; height: 1px; background: var(--em3-line-onwhite); margin: 30px 0 26px; position: relative; }
.em3-cr-mission__rule::before { content: ""; position: absolute; left: 0; top: 0; width: 42px; height: 1px; background: var(--em3-accent); }
.em3-cr-split__sub { font-size: 20px; font-weight: 600; color: var(--em3-ink-navy); margin: 0 0 12px; }
.em3-cr-mission__fit { font-size: 16px; line-height: 1.65; color: var(--em3-charcoal); margin: 0 0 20px; }
.em3-cr-mission__link { align-self: flex-start; }
@media (max-width: 860px) {
  .em3-cr-mission { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .em3-cr-mission__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Benefits - full-width feature band above the accordion (Phase 3 imagery). */
.em3-cr-benefits-media { border-radius: var(--em3-radius-card); overflow: hidden; margin-bottom: 44px; box-shadow: 0 30px 60px -30px rgba(10,24,88,0.3); aspect-ratio: 16 / 6; }
.em3-cr-benefits-media__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 640px) { .em3-cr-benefits-media { aspect-ratio: 16 / 9; margin-bottom: 28px; } }

/* Optional video block [em3_careers_video]
   <div class="em3-cr-video"><img class="em3-cr-video__poster" ...>
     <button class="em3-cr-video__play" aria-label="Play video"></button></div> */
.em3-cr-video { position: relative; margin-top: 48px; border-radius: var(--em3-radius-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--em3-bg-elev); }
.em3-cr-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.em3-cr-video__play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border: none; cursor: pointer;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em3-accent) 0%, var(--em3-accent-mid) 100%);
  box-shadow: 0 14px 32px -10px rgba(46,93,255,0.7);
  transition: transform .2s, box-shadow .2s;
}
.em3-cr-video__play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.em3-cr-video__play:hover, .em3-cr-video__play:focus { background: linear-gradient(135deg, var(--em3-accent-mid) 0%, var(--em3-accent-hot) 100%); transform: scale(1.06); box-shadow: 0 20px 40px -10px rgba(46,93,255,0.8); }
.em3-cr-video__label { position: absolute; left: 24px; bottom: 20px; z-index: 2; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.em3-cr-video__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   4. Values (DARK, 5-card grid) - SHV "courage to care"
   <div class="em3-cr-values">
     <article class="em3-card em3-cr-value">
       <span class="em3-eyebrow tagged em3-cr-value__name">Integrity</span>
       <h3 class="em3-cr-value__title">Courage to stay true to our principles</h3>
       <p class="em3-cr-value__body">...</p>
     </article> x5
   </div>
   -------------------------------------------------------------------------- */
.em3-cr-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.em3-cr-value { padding: 28px 26px; display: flex; flex-direction: column; }
.em3-cr-value__name { margin-bottom: 18px; }
.em3-cr-value__title { font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--em3-white); margin: 0 0 12px; letter-spacing: -0.01em; }
.em3-cr-value__body { font-size: 15px; line-height: 1.6; color: var(--em3-ink-muted); margin: 0; }
/* 6th grid cell: a CTA card so 5 values never leave an orphan slot. */
.em3-cr-value--cta { background: linear-gradient(180deg, rgba(46,93,255,0.16), rgba(46,93,255,0.05)); border-color: rgba(106,138,255,0.40); justify-content: center; }
.em3-cr-value--cta .em3-cr-value__title { color: #fff; }
.em3-cr-value--cta .em3-cr-value__body { margin-bottom: 16px; }
.em3-cr-value--cta:hover { transform: translateY(-4px); border-color: rgba(106,138,255,0.6); }
@media (max-width: 900px) { .em3-cr-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .em3-cr-values { grid-template-columns: 1fr; } }

/* Values - photographic reimagining: backdrop photo + dark scrim + glass cards + energy curves.
   overflow:clip keeps the motif/photo inside; isolate creates a clean stacking context. */
.em3-cr-values-sec { position: relative; overflow: hidden; isolation: isolate; }
.em3-cr-values-bg { position: absolute; inset: 0; z-index: 0; }
.em3-cr-values-bg__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.em3-cr-values-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,13,51,0.82) 0%, rgba(5,13,51,0.78) 35%, rgba(5,13,51,0.9) 78%, rgba(5,13,51,0.97) 100%),
    radial-gradient(circle at 16% 14%, rgba(46,93,255,0.20), transparent 52%);
}
.em3-cr-values-inner { position: relative; z-index: 2; }
.em3-cr-values-sec .em3-cr-head__intro { color: rgba(255,255,255,0.92); }
.em3-cr-values-sec h2 { text-wrap: balance; }
/* Frosted-glass value cards over the photo (legible + premium). */
.em3-cr-values-sec .em3-cr-value {
  background: rgba(7,14,46,0.62);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(255,255,255,0.14);
}
.em3-cr-values-sec .em3-cr-value:hover { border-color: rgba(106,138,255,0.55); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55); }
.em3-cr-values-sec .em3-cr-value--cta {
  background: linear-gradient(180deg, rgba(46,93,255,0.34), rgba(46,93,255,0.12));
  border-color: rgba(106,138,255,0.55);
}
/* No backdrop-filter support: lean on a more opaque card so text stays legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .em3-cr-values-sec .em3-cr-value { background: rgba(7,14,46,0.88); }
}
/* Respect reduced-transparency: drop the glass blur for a solid card. */
@media (prefers-reduced-transparency: reduce) {
  .em3-cr-values-sec .em3-cr-value { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7,14,46,0.92); }
}

/* --------------------------------------------------------------------------
   5. Testimonial band - EDITORIAL card: full-bleed employee photo (left) with the name
      overlaid on a bottom scrim, a serif pull-quote (right) with one italic accent word +
      a faint quote mark, on the light "squares" panel (1px frame + corner crop-marks).
   <section class="em3-section em3-bg-snow on-light em3-cr-quote">
     <div class="em3-wrap">
       <figure class="em3-cr-quote__panel">
         <div class="em3-cr-quote__photo"><img class="em3-cr-quote__photo-img">
           <div class="em3-cr-quote__cap"><span class="em3-cr-quote__name">Name</span>
             <span class="em3-cr-quote__meta">Role<span class="em3-cr-quote__slash">/</span>Base</span></div>
         </div>
         <blockquote class="em3-cr-quote__body"><span class="em3-cr-quote__qmark">"</span>
           <p class="em3-cr-quote__reading">"Quote with <span class="accent">accent</span>."</p></blockquote>
       </figure>
     </div>
   </section>
   -------------------------------------------------------------------------- */
/* Upright Instrument Serif (Regular) - same family as the italic accent face, self-hosted.
   Lets the pull-quote + name use the brand serif roman; the *asterisk* accent word stays italic. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Section bg: a vertical fade from the deep navy of the section above (seamless join at the top)
   down to white at the bottom (joins the light section below). No squares.
   `.em3-section.em3-cr-quote` (0,2,0) beats the `.em3-bg-snow` (0,1,0) class on the element. */
.em3-section.em3-cr-quote { background: var(--em3-bg-deep); }
.em3-cr-quote { position: relative; overflow: hidden; }
.em3-cr-quote > .em3-wrap { position: relative; z-index: 1; }

/* White near-square 1px panel (brand signal) + corner crop-marks. Photo | body, photo full-bleed. */
.em3-cr-quote__panel {
  --photo-col: clamp(240px, 34%, 360px);
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--photo-col) 1fr;
  align-items: stretch;
  background: var(--em3-white);
  border: 1px solid var(--em3-line-onwhite);
  border-radius: var(--em3-radius);
  box-shadow: 0 34px 70px -44px rgba(10,24,88,0.28);
}
/* Engineering crop-marks bracketing the four corners from just OUTSIDE the panel
   (negative inset; the panel must not clip - no overflow:hidden). */
.em3-cr-quote__panel::after {
  content: "";
  position: absolute; inset: -9px; z-index: 3;
  pointer-events: none;
  --cm: var(--em3-accent); /* solid so the marks read on both the navy top and the white bottom */
  background:
    linear-gradient(var(--cm), var(--cm)) left top / 11px 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left top / 1.5px 11px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right top / 11px 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right top / 1.5px 11px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left bottom / 11px 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) left bottom / 1.5px 11px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right bottom / 11px 1.5px no-repeat,
    linear-gradient(var(--cm), var(--cm)) right bottom / 1.5px 11px no-repeat;
}

/* Photo (left, full-bleed, 2:3 portrait) - fills the panel's left column edge to edge.
   At full width the 2:3 height drives the row; the quote (shorter) centres beside it. */
.em3-cr-quote__photo {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--em3-bg-deep);
}
/* 2-class selector beats Elementor's `.elementor img { height:auto }` so the photo fills the box. */
.em3-cr-quote__photo .em3-cr-quote__photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
  display: block;
}
/* Name + role/base BELOW the quote (attribution), navy on the light panel. */
.em3-cr-quote__cap {
  margin-top: clamp(24px, 3vw, 38px);
  font-style: normal;
}
.em3-cr-quote__name {
  display: block;
  font-family: var(--em3-font-sans); font-weight: 700;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--em3-ink-navy);
}
.em3-cr-quote__meta {
  display: block;
  margin-top: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(10,24,88,0.72); /* >= project AA floor */
}
.em3-cr-quote__slash { margin: 0 9px; color: var(--em3-accent); }

/* Body (right): faint quote mark + serif pull-quote with an accent rule. */
.em3-cr-quote__body {
  position: relative;
  margin: 0;
  padding: clamp(34px, 4.2vw, 64px) clamp(28px, 4vw, 60px);
  display: flex; flex-direction: column; justify-content: center;
}
.em3-cr-quote__qmark {
  position: absolute; top: clamp(8px, 1.4vw, 20px); right: clamp(22px, 2.8vw, 44px);
  font-family: var(--em3-font-serif); font-style: normal;
  font-size: clamp(90px, 10vw, 150px); line-height: 1;
  color: rgba(46,93,255,0.12);
  pointer-events: none; user-select: none;
}
.em3-cr-quote__reading {
  position: relative;
  margin: 0;
  /* Brand font (Manrope). No max-width: lines run the full column so they fill out. */
  font-family: var(--em3-font-sans); font-weight: 500;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--em3-ink-navy);
  text-wrap: pretty;
}
.em3-cr-quote__reading::before {
  content: ""; display: block;
  width: 40px; height: 2px; margin-bottom: clamp(18px, 2vw, 26px);
  background: var(--em3-accent-hot);
}
/* Accent word kept uniform with the rest of the quote (client: all testimonial text one font,
   no standout word) - the `*asterisk*` span just inherits everything. */
.em3-cr-quote__reading .accent { font-family: inherit; font-style: inherit; font-weight: inherit; color: inherit; }

@media (max-width: 820px) {
  .em3-cr-quote__panel { grid-template-columns: 1fr; }
  /* Stacked + full-width: a 2:3 portrait would be huge, so use a landscape crop on top. */
  .em3-cr-quote__photo { aspect-ratio: 3 / 2; }
  .em3-cr-quote__body { padding: clamp(26px, 6vw, 40px); }
}

/* --------------------------------------------------------------------------
   6. Benefits accordion (WHITE, fin-style) [em3_benefits_accordion]
   <div class="em3-cr-acc">
     <details class="em3-cr-acc__item">
       <summary class="em3-cr-acc__summary">
         <span class="em3-cr-acc__title">Hybrid Work Model</span>
         <span class="em3-cr-acc__icon" aria-hidden="true"></span>
       </summary>
       <div class="em3-cr-acc__body"><p>Description.</p></div>
     </details> x8
   </div>
   -------------------------------------------------------------------------- */
.em3-cr-acc { border-top: 1px solid var(--em3-line-onwhite); }
.em3-cr-acc__item { border-bottom: 1px solid var(--em3-line-onwhite); }
.em3-cr-acc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 16px;
  cursor: pointer;
  color: var(--em3-ink-navy);
  transition: color .18s;
}
.em3-cr-acc__summary::-webkit-details-marker { display: none; }
.em3-cr-acc__summary:hover { color: var(--em3-accent); }
.em3-cr-acc__title { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.em3-cr-acc__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.em3-cr-acc__icon::before,
.em3-cr-acc__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--em3-accent); transform: translate(-50%,-50%); transition: transform .25s ease, opacity .2s; }
.em3-cr-acc__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.em3-cr-acc__item[open] .em3-cr-acc__icon::after { transform: translate(-50%,-50%) rotate(0deg); opacity: 0; }
.em3-cr-acc__body { padding: 0 4px 26px; max-width: 72ch; }
.em3-cr-acc__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--em3-charcoal); }

/* --------------------------------------------------------------------------
   7. TEAM SLIDER (DARK) - the crown jewel [em3_team_slider]
   <div class="em3-cr-team" data-team-slider>
     <div class="em3-cr-team__stage">
       <div class="em3-cr-team__media">
         <figure class="em3-cr-team__photo is-active" data-index="0"><img ...></figure> ...
         <button class="em3-cr-team__nav em3-cr-team__nav--prev" aria-label="Previous"></button>
         <button class="em3-cr-team__nav em3-cr-team__nav--next" aria-label="Next"></button>
       </div>
       <div class="em3-cr-team__panel">
         <article class="em3-cr-team__card is-active" data-index="0">
           <h3 class="em3-cr-team__name">Cormac Walsh</h3>
           <p class="em3-cr-team__role">Managing Director</p>
           <p class="em3-cr-team__bio">...</p>
           <a class="em3-link" href="...">LinkedIn</a>
         </article> ...
       </div>
     </div>
     <div class="em3-cr-team__rail" role="tablist" aria-label="Team members">
       <button class="em3-cr-team__tab is-active" data-index="0" role="tab" aria-selected="true">
         <span class="em3-cr-team__tab-name">Cormac Walsh</span>
         <span class="em3-cr-team__tab-role">Managing Director</span>
       </button> ...
     </div>
   </div>
   -------------------------------------------------------------------------- */
/* Full-bleed, standalone "Our people" section (fin.ai-style immersion, brand-compliant). */
.em3-cr-team-section { position: relative; overflow: hidden; isolation: isolate; }
.em3-cr-team-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(75% 55% at 78% -5%, rgba(46,93,255,0.20), transparent 60%);
}
.em3-cr-team-section .em3-wrap { position: relative; z-index: 1; } /* keep content above the glow */
.em3-cr-team { --em3-team-autoplay: 6s; } /* autoplay interval per member - tweak here */
.em3-cr-team__stage { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: minmax(600px, auto); gap: 0; border-radius: var(--em3-radius-card); overflow: hidden; border: 1px solid var(--em3-line-soft); box-shadow: 0 50px 90px -50px rgba(0,0,0,0.7); }
.em3-cr-team__media { position: relative; height: 100%; background: var(--em3-bg-elev); }
.em3-cr-team__photo { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.em3-cr-team__photo.is-active { opacity: 1; visibility: visible; }
.em3-cr-team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* bio panel */
.em3-cr-team__panel { position: relative; background: linear-gradient(155deg, rgba(13,27,102,0.72) 0%, var(--em3-bg-deep) 72%); border-left: 1px solid var(--em3-line-soft); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.em3-cr-team__card { display: none; }
.em3-cr-team__card.is-active { display: block; animation: em3-cr-fade .45s ease both; }
.em3-cr-team__name { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: -0.02em; }
.em3-cr-team__quals { font-size: 13.5px; color: var(--em3-ink-dim); margin: 0 0 10px; }
.em3-cr-team__role { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--em3-accent-hot); margin: 0 0 20px; }
.em3-cr-team__bio { font-size: 15.5px; line-height: 1.65; color: var(--em3-ink-muted); margin: 0 0 24px; }
/* LinkedIn button (logo + label + hover) */
.em3-cr-team__li { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border: 1px solid var(--em3-line); border-radius: var(--em3-radius); background: rgba(255,255,255,0.05); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.em3-cr-team__li svg { width: 18px; height: 18px; flex-shrink: 0; }
.em3-cr-team__li:hover { background: var(--em3-accent); border-color: var(--em3-accent); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(46,93,255,0.6); }
.em3-cr-team__li:visited, .em3-cr-team__li:focus, .em3-cr-team__li:active { color: #fff; }
.em3-cr-team__li:hover { color: #fff; }
/* nav arrows */
.em3-cr-team__nav { position: absolute; bottom: 16px; z-index: 3; width: 44px; height: 44px; border: 1px solid var(--em3-line); border-radius: var(--em3-radius); background: rgba(5,13,51,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .2s, border-color .2s; }
.em3-cr-team__nav:hover, .em3-cr-team__nav:focus { background: var(--em3-accent); border-color: var(--em3-accent); }
.em3-cr-team__nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.em3-cr-team__nav--prev { left: 16px; }
.em3-cr-team__nav--prev::before { transform: translate(-40%,-50%) rotate(45deg); }
.em3-cr-team__nav--next { left: 68px; }
.em3-cr-team__nav--next::before { transform: translate(-60%,-50%) rotate(-135deg); }
/* rail */
.em3-cr-team__rail { display: flex; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid var(--em3-line-soft); }
.em3-cr-team__tab { position: relative; flex: 1 0 auto; min-width: 150px; text-align: left; padding: 18px 18px 16px; background: none; border: none; border-top: 2px solid transparent; margin-top: -1px; cursor: pointer; color: var(--em3-ink-dim); transition: background .2s; }
.em3-cr-team__tab:hover, .em3-cr-team__tab:focus { background: rgba(255,255,255,0.03); }
.em3-cr-team__tab.is-active { background: rgba(46,93,255,0.10); }
/* Autoplay progress loader: the stripe above the active member's name fills, then advances. */
.em3-cr-team__tab::after {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--em3-accent-hot);
  transform: scaleX(0);
  transform-origin: left center;
}
.em3-cr-team__tab.is-active::after { animation: em3-team-progress var(--em3-team-autoplay, 6s) linear forwards; }
.em3-cr-team.is-paused .em3-cr-team__tab.is-active::after { animation-play-state: paused; }
@keyframes em3-team-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Reduced motion: no autoplay; the active stripe/pill simply shows full. */
@media (prefers-reduced-motion: reduce) {
  .em3-cr-team__tab.is-active::after,
  .em3-cr-team__dot.is-active::after { animation: none; transform: scaleX(1); }
}
.em3-cr-team__tab-name { display: block; font-size: 14px; font-weight: 600; color: var(--em3-ink-dim); transition: color .2s; }
.em3-cr-team__tab.is-active .em3-cr-team__tab-name { color: #fff; font-weight: 700; }
.em3-cr-team__tab-role { display: block; font-size: 12px; color: var(--em3-ink-dim); margin-top: 3px; }
@keyframes em3-cr-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
/* Compact dots - shown on tablet/mobile instead of the name rail. Active dot is a pill that
   fills left-to-right with the autoplay progress (same loader concept as the desktop rail). */
.em3-cr-team__dots { display: none; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; padding: 8px 0; }
.em3-cr-team__dot { position: relative; width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.28); cursor: pointer; transition: width .3s ease, background .25s, border-radius .3s; }
/* 44px-tall touch target without enlarging the visual dot (WCAG 2.5.8). */
.em3-cr-team__dot::before { content: ""; position: absolute; inset: -18px -10px; }
.em3-cr-team__dot:hover, .em3-cr-team__dot:focus { background: rgba(255,255,255,0.5); }
.em3-cr-team__dot.is-active { width: 34px; border-radius: 5px; background: rgba(255,255,255,0.22); position: relative; overflow: hidden; }
.em3-cr-team__dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--em3-accent-hot); transform: scaleX(0); transform-origin: left center; animation: em3-team-progress var(--em3-team-autoplay, 6s) linear forwards; }
.em3-cr-team.is-paused .em3-cr-team__dot.is-active::after { animation-play-state: paused; }
@media (max-width: 980px) {
  .em3-cr-team__stage { grid-template-columns: 1fr; grid-template-rows: auto; }
  .em3-cr-team__media { height: auto; aspect-ratio: 4 / 3; }
  .em3-cr-team__panel { padding: 32px 28px; overflow: visible; }
  /* Stacked layout: bio flows at full length. */
  .em3-cr-team__card.is-active { display: block; height: auto; }
  .em3-cr-team__bio { overflow: visible; }
  /* Swap the name rail for compact dots. */
  .em3-cr-team__rail { display: none; }
  .em3-cr-team__dots { display: flex; }
}
@media (max-width: 640px) {
  .em3-cr-team__media { aspect-ratio: 1 / 1; }
}

/* --------------------------------------------------------------------------
   8. Offices grid (WHITE) [em3_office_slider] - static grid, all cards shown (not a slider)
   <div class="em3-cr-offices">
     <div class="em3-cr-offices__grid">
       <article class="em3-cr-office">
         <div class="em3-cr-office__media"><img ...></div>
         <div class="em3-cr-office__body">
           <h3 class="em3-cr-office__city">Limerick</h3>
           <p class="em3-cr-office__country">Ireland</p>
           <p class="em3-cr-office__addr">National Technology Park, Limerick, Ireland</p>
           <a class="em3-link" href="#open-roles">See 4 open roles</a>
         </div>
       </article> ...
     </div>
   </div>
   -------------------------------------------------------------------------- */
/* Container tuned for 3 cards: each sits ~20% wider than the old 4-up grid, generous but not overstretched. */
.em3-cr-offices-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
/* Static grid - all offices shown at once, in order (not a slider). */
.em3-cr-offices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.em3-cr-office { background: var(--em3-white); border: 1px solid var(--em3-line-onwhite); border-radius: var(--em3-radius-card); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .2s; }
.em3-cr-office:hover { transform: translateY(-4px); border-color: rgba(46,93,255,0.35); box-shadow: 0 26px 50px -24px rgba(10,24,88,0.30); }
.em3-cr-office__media { aspect-ratio: 16 / 10; overflow: hidden; }
.em3-cr-office__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.em3-cr-office:hover .em3-cr-office__media img { transform: scale(1.04); }
.em3-cr-office__body { padding: 26px 26px 28px; }
.em3-cr-office__city { font-size: 22px; font-weight: 700; color: var(--em3-ink-navy); margin: 0 0 2px; }
.em3-cr-office__country { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--em3-accent); margin: 0 0 12px; }
.em3-cr-office__addr { font-size: 14.5px; line-height: 1.55; color: var(--em3-charcoal); margin: 0 0 16px; min-height: 3em; }
.em3-cr-office__noroles { font-size: 13.5px; font-weight: 600; color: rgba(10,24,88,0.45); }
@media (max-width: 980px) { .em3-cr-offices__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .em3-cr-offices__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   9. Great Place to Work (DARK): culture photo + seals stacked in the left media
      column + copy on the right. The photo flex-fills the media column so the
      photo + badges together match the copy height - no empty void on either side.
   <section class="em3-section em3-bg-deep" id="culture">
     <div class="em3-wrap em3-cr-gptw">
       <div class="em3-cr-gptw__media">
         <div class="em3-cr-gptw__photo"> culture image </div>
         <div class="em3-cr-gptw__seals"> GPTW badge + ISO badge </div>
       </div>
       <div class="em3-cr-gptw__copy"> eyebrow + h2 + paragraphs </div>
     </div>
   </section>
   -------------------------------------------------------------------------- */
.em3-cr-gptw { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: stretch; }
.em3-cr-gptw__media { display: flex; flex-direction: column; gap: 26px; }
.em3-cr-gptw__copy .em3-eyebrow { margin-bottom: 16px; }
.em3-cr-gptw__copy h2 { margin: 0 0 20px; }
.em3-cr-gptw__copy p { font-size: 16px; line-height: 1.7; color: var(--em3-ink-muted); margin: 0 0 16px; max-width: 60ch; }
.em3-cr-gptw__copy p:last-child { margin-bottom: 0; }
/* Culture photo flex-fills the media column to match the copy height (session 7 reflow). */
.em3-cr-gptw__photo { position: relative; flex: 1 1 auto; min-height: 260px; overflow: hidden; border-radius: var(--em3-radius-card); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6); }
.em3-cr-gptw__photo .em3-cr-gptw__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* (0,2,0) beats .elementor img{height:auto} */
/* Real certification seals: Great Place to Work + ISO (Phase 4). */
.em3-cr-gptw__seals { display: flex; align-items: flex-end; gap: 30px; flex: 0 0 auto; flex-wrap: wrap; }
.em3-cr-seal { display: block; height: auto; }
.em3-cr-seal--gptw { width: 112px; }
.em3-cr-seal--iso { width: 92px; }
/* Collapse at <=900 (not 760): at 768 the 2-col layout squeezed the landscape photo
   into a ~292px portrait sliver. Single column keeps the photo at a natural aspect. */
@media (max-width: 900px) {
  .em3-cr-gptw { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .em3-cr-gptw__media { max-width: 560px; }
  .em3-cr-gptw__photo { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
}

/* --------------------------------------------------------------------------
   10. Open roles + filter (WHITE) [em3_open_roles]
   <div class="em3-cr-roles" data-roles>
     <div class="em3-cr-roles__filter" role="group" aria-label="Filter by location">
       <button class="em3-cr-roles__chip is-active" data-region="all" aria-pressed="true">All locations</button>
       <button class="em3-cr-roles__chip" data-region="europe" aria-pressed="false">Europe</button>
       <button class="em3-cr-roles__chip" data-region="north-america" aria-pressed="false">North America</button>
     </div>
     <ul class="em3-cr-roles__list">
       <li class="em3-cr-role" data-region="europe">
         <div class="em3-cr-role__main">
           <h3 class="em3-cr-role__title">Mechanical Project Engineer</h3>
           <p class="em3-cr-role__desc">...</p>
           <div class="em3-cr-role__meta">
             <span class="em3-cr-role__loc">Limerick, Ireland</span>
             <span class="em3-cr-role__chip">Hybrid</span>
           </div>
         </div>
         <a class="em3-btn-ghost em3-cr-role__cta" href="/jobs/...">View job spec</a>
       </li> ...
     </ul>
     <p class="em3-cr-roles__empty" hidden>No roles in this location right now.</p>
   </div>
   -------------------------------------------------------------------------- */
.em3-cr-roles__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
/* Filter pills + an optional right-aligned "view all" CTA (careers widget -> Open Roles page). */
.em3-cr-roles__filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 12px; }
.em3-cr-roles__filterbar .em3-cr-roles__filter { margin-bottom: 0; }
.em3-cr-roles__viewall { flex: none; white-space: nowrap; padding: 11px 22px; font-size: 13.5px; }
@media (max-width: 600px) { .em3-cr-roles__viewall { width: 100%; justify-content: center; text-align: center; } }
.em3-cr-roles__chip {
  font-family: var(--em3-font-sans); font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--em3-radius); cursor: pointer;
  background: var(--em3-white); color: var(--em3-ink-navy);
  border: 1px solid var(--em3-line-onwhite); transition: background .18s, color .18s, border-color .18s;
}
/* Blue hover/focus (not the WP reset.css #cc3366 pink that leaks on buttons with no bg set). */
.em3-cr-roles__chip:hover, .em3-cr-roles__chip:focus { background: var(--em3-accent); border-color: var(--em3-accent); color: #fff; }
.em3-cr-roles__chip.is-active { background: var(--em3-ink-navy); color: #fff; border-color: var(--em3-ink-navy); }
.em3-cr-roles__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--em3-line-onwhite); }
.em3-cr-role { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 4px; border-bottom: 1px solid var(--em3-line-onwhite); }
.em3-cr-role[hidden] { display: none; }
.em3-cr-role__title { font-size: clamp(19px, 2vw, 23px); font-weight: 600; color: var(--em3-ink-navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.em3-cr-role__desc { font-size: 15px; line-height: 1.6; color: var(--em3-charcoal); margin: 0 0 14px; max-width: 70ch; }
.em3-cr-role__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.em3-cr-role__loc { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--em3-ink-navy); }
.em3-cr-role__chip { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--em3-accent); background: rgba(46,93,255,0.10); padding: 4px 10px; border-radius: var(--em3-radius); }
.em3-cr-role__chip--soft { color: var(--em3-charcoal); background: transparent; border: 1px solid var(--em3-line-onwhite); }
.em3-cr-role__cta { flex-shrink: 0; padding: 12px 22px; font-size: 13.5px; }
.em3-cr-roles__empty { padding: 40px 4px; font-size: 16px; color: var(--em3-charcoal); }
@media (max-width: 720px) {
  .em3-cr-role { flex-direction: column; align-items: flex-start; gap: 16px; }
  .em3-cr-role__cta { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   11. Final CTA (DARK) - reuses brand .em3-cta-section / .em3-cta-block / .em3-cta-actions
   Plus a careers-scoped sub line.
   -------------------------------------------------------------------------- */
.em3-cr-finalcta { color: var(--em3-ink); } /* dark-context: H2 must be white, not the global #333 */
.em3-cr-finalcta h2 { color: var(--em3-ink); }
.em3-cr-finalcta .em3-cr-hero__sub,
.em3-cr-finalcta .em3-cta-sub { color: var(--em3-ink-muted); font-size: 18px; line-height: 1.55; max-width: 600px; margin: 18px auto 0; }

/* --------------------------------------------------------------------------
   12. Responsive polish (session 7 multi-device audit)
   -------------------------------------------------------------------------- */
/* Final-CTA buttons: equal height side-by-side (the ghost's border + line-height
   makes it ~57px; floor both at 58 so the primary matches). */
.em3-cr-finalcta .em3-cta-actions .em3-btn-primary,
.em3-cr-finalcta .em3-cta-actions .em3-btn-ghost {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  /* Region filter chips: meet the 44px touch-target minimum on phones/tablets. */
  .em3-cr-roles__chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 360px) {
  /* A touch more breathing room for the hero H1 on the smallest phones. */
  .em3-cr-hero h1 { font-size: clamp(32px, 9vw, 40px); }
}

/* --------------------------------------------------------------------------
   13. Reduced motion (component-level; brand.css already kills global animation)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .em3-cr-team__photo { transition: none; }
  .em3-cr-offices__track { scroll-behavior: auto; }
  .em3-cr-team__card.is-active { animation: none; }
  .em3-report-dialog[open] { animation: none; }
  .em3-report, .em3-report *, .em3-report__close, .em3-report__form .gform_button { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   14. Gender Pay Gap report - gated download (section CTA + modal dialog)
   Markup: theme/inc/careers.php  em3_cr_report_cta_button()  (button, in #culture)
           + em3_cr_report_dialog_render()  (the <dialog>, rendered in wp_footer).
   Behaviour: assets/js/careers.js  initReportModal().
   Gravity Form restyle mirrors the footer newsletter (nav.css) dark pattern.
   -------------------------------------------------------------------------- */

/* ---- Section CTA button (gptw copy column) ---- */
.em3-cr-gptw__report { margin-top: 30px; }
.em3-cr-gptw__report-btn { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; white-space: normal; text-align: left; }
.em3-cr-gptw__report-btn::after { content: none; }            /* drop the default arrow; a download icon leads instead */
.em3-cr-gptw__report-ico { width: 19px; height: 19px; flex-shrink: 0; }
/* The long report label must wrap on narrow phones; its nowrap min-content otherwise forces the
   whole GPTW grid wider than the viewport (page-level horizontal scroll). */
.em3-cr-gptw__report-btn span { white-space: normal; }

/* ---- Scroll lock while the modal is open ---- */
html.em3-report-locked { overflow: hidden; }

/* ---- Dialog shell + backdrop ---- */
.em3-report-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--em3-ink);
  overflow: visible;
}
.em3-report-dialog::backdrop {
  background: rgba(3, 7, 25, 0.66);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.em3-report-dialog[open] { animation: em3-report-in .32s cubic-bezier(.22,.61,.36,1); }
@keyframes em3-report-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---- The card ---- */
.em3-report {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(46,93,255,0.20), transparent 55%),
    linear-gradient(150deg, var(--em3-bg-elev) 0%, var(--em3-bg) 48%, var(--em3-bg-deep) 100%);
  border: 1px solid var(--em3-line-soft);
  border-radius: var(--em3-radius-card);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.72);
}
.em3-report::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--em3-accent), var(--em3-accent-hot), transparent);
}

/* ---- Close ---- */
.em3-report__close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--em3-line-soft); border-radius: var(--em3-radius);
  color: rgba(255,255,255,0.82); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.em3-report__close:hover, .em3-report__close:focus { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--em3-accent-hot); }
.em3-report__close:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 2px; }
.em3-report__close svg { width: 20px; height: 20px; }

/* ---- Media (cover) column ---- */
.em3-report__media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px;
  background:
    radial-gradient(90% 70% at 50% 16%, rgba(46,93,255,0.22), transparent 60%),
    linear-gradient(160deg, rgba(13,27,102,0.55), rgba(5,13,51,0.20));
  border-right: 1px solid var(--em3-line-soft);
}
.em3-report__media-inner { width: 100%; max-width: 420px; }
.em3-report__media .em3-report__cover-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)); }

/* ---- Body column ---- */
.em3-report__body { padding: 46px 44px 40px; }
.em3-report__title { margin: 12px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; letter-spacing: -0.01em; color: var(--em3-ink); }
.em3-report__intro { margin: 14px 0 22px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 46ch; }

/* ---- Gravity Form, restyled to the dark system (mirrors .em3-foot-news2) ---- */
.em3-report__form .gform_wrapper .gform_fields { display: grid; gap: 16px; }
.em3-report__form .gform_wrapper .gfield_label,
.em3-report__form .gform_wrapper legend.gfield_label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--em3-ink-dim); margin-bottom: 7px; }
.em3-report__form .gform_wrapper .gfield_required { display: none; }
.em3-report__form .gform_wrapper input[type=text],
.em3-report__form .gform_wrapper input[type=email] {
  width: 100%; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--em3-line-soft);
  border-radius: var(--em3-radius); padding: 13px 15px; font-size: 14.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.em3-report__form .gform_wrapper input::placeholder { color: rgba(255,255,255,0.55); }
.em3-report__form .gform_wrapper input[type=text]:focus,
.em3-report__form .gform_wrapper input[type=email]:focus { outline: none; background: rgba(255,255,255,0.07); border-color: var(--em3-accent-hot); box-shadow: 0 0 0 3px rgba(46,93,255,0.20); }

/* consent checkbox */
.em3-report__form .gform_wrapper fieldset.gfield { border: none; padding: 0; margin: 0; min-width: 0; }
.em3-report__form .gform_wrapper fieldset.gfield legend.gfield_label { position: absolute; left: -9999px; }
.em3-report__form .gform_wrapper .gchoice { display: flex; align-items: flex-start; gap: 10px; }
.em3-report__form .gform_wrapper .gchoice input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0;
  background: rgba(255,255,255,0.05); border: 1px solid var(--em3-line); border-radius: var(--em3-radius);
  cursor: pointer; position: relative; transition: background .15s, border-color .15s;
}
.em3-report__form .gform_wrapper .gchoice input[type=checkbox]:checked { background: var(--em3-accent); border-color: var(--em3-accent); }
.em3-report__form .gform_wrapper .gchoice input[type=checkbox]:checked::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.em3-report__form .gform_wrapper .gchoice input[type=checkbox]:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 2px; }
.em3-report__form .gform_wrapper .gchoice label { color: rgba(255,255,255,0.8); font-size: 12.5px; line-height: 1.45; cursor: pointer; }

/* submit */
.em3-report__form .gform_wrapper .gform_footer { margin-top: 20px; padding: 0; }
.em3-report__form .gform_wrapper .gform_footer .gform_button {
  width: 100%; background: linear-gradient(135deg, var(--em3-accent), var(--em3-accent-mid)); color: #fff; border: none;
  border-radius: var(--em3-radius); padding: 15px 28px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 14px 32px -12px rgba(46,93,255,0.5); transition: background .25s, transform .2s, box-shadow .25s;
}
.em3-report__form .gform_wrapper .gform_footer .gform_button:hover { background: linear-gradient(135deg, var(--em3-accent-mid), var(--em3-accent-hot)); transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(46,93,255,0.65); }
.em3-report__form .gform_wrapper .gform_footer .gform_button:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 2px; }
.em3-report__form .gform_wrapper .gform_ajax_spinner { margin-left: 12px; }

/* validation (dark) - keep the role=alert summary visible but compact for a11y */
.em3-report__form .gform_wrapper .gfield_error input[type=text],
.em3-report__form .gform_wrapper .gfield_error input[type=email] { border-color: var(--em3-danger); }
.em3-report__form .gform_wrapper .validation_message,
.em3-report__form .gform_wrapper .gfield_validation_message { color: #ffb4b4; font-size: 12px; margin-top: 6px; background: none; border: none; padding: 0; }
.em3-report__form .gform_wrapper .gform_validation_errors {
  background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.40); border-radius: var(--em3-radius);
  padding: 10px 14px; margin-bottom: 16px; box-shadow: none;
}
.em3-report__form .gform_wrapper .gform_validation_errors > h2 { color: #ffb4b4; font-size: 13px; font-weight: 600; margin: 0; }

/* On success, hide the prompt copy and centre the confirmation against the cover. */
.em3-report.is-submitted .em3-report__body { display: flex; flex-direction: column; justify-content: center; }
.em3-report.is-submitted .em3-report__body > .em3-eyebrow,
.em3-report.is-submitted .em3-report__title,
.em3-report.is-submitted .em3-report__intro { display: none; }

/* ---- Success card (the email-gated confirmation) ---- */
.em3-report-success { text-align: center; padding: 8px 0 4px; }
.em3-report-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(46,93,255,0.16); border: 1px solid rgba(106,138,255,0.40); color: var(--em3-accent-hot); margin-bottom: 16px; }
.em3-report-success__icon svg { width: 26px; height: 26px; }
.em3-report-success .em3-eyebrow { justify-content: center; }
.em3-report-success h2 { margin: 8px 0 10px; font-size: 22px; line-height: 1.1; color: #fff; }
.em3-report-success p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.8); max-width: 42ch; margin: 0 auto; }
.em3-report-success p strong { color: #fff; }
.em3-report-success:focus-visible { outline: none; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .em3-report { grid-template-columns: 1fr; }
  .em3-report__media { border-right: none; border-bottom: 1px solid var(--em3-line-soft); padding: 34px 26px 24px; }
  .em3-report__media-inner { max-width: 250px; }
  .em3-report__body { padding: 32px 28px 30px; }
}
@media (max-width: 640px) {
  /* Project rule: 44px minimum touch target on mobile. */
  .em3-report__close { width: 44px; height: 44px; }
}
@media (max-width: 520px) {
  .em3-report-dialog { width: calc(100vw - 18px); }
  .em3-report__body { padding: 26px 20px 28px; }
  .em3-report__title { font-size: clamp(23px, 7vw, 28px); }
}
