/* Retail Marketing Group - site styles
   Built on RIG Design System v4.0, RMG theme
   Structure: Midnight Plum #3E2C53 · Accent and identity: Deep Violet #6E37B7 */

@font-face { font-family: 'Archivo Black'; src: url('../fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --space-black: #0A0B0E;
  --midnight-plum: #3E2C53;
  --deep-violet: #6E37B7;
  --deep-violet-dark: #5E2EA0;
  --lilac-purple: #D4A8DF;
  --soft-pink: #E382AC;
  --slate-blue: #2E4A7A;
  --mountain-blue: #5B6BBF;
  --space-25: #3D4355;
  --space-50: #717B9A;
  --space-90: #E3E5EB;
  --white: #FFFFFF;

  --bg: radial-gradient(120% 120% at 0% 0%, var(--space-90) 0%, var(--white) 60%);
  --grad-violet: linear-gradient(135deg, var(--deep-violet) 50%, var(--slate-blue) 100%);
  --grad-mountain: linear-gradient(135deg, var(--slate-blue) 50%, var(--mountain-blue) 100%);

  --font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.10);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --r-sm: 7px; --r-md: 10px; --r-lg: 14px;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--space-black);
  background: var(--white);
}
img, video { max-width: 100%; display: block; }
a { color: var(--mountain-blue); text-underline-offset: 3px; }
a:visited { color: var(--slate-blue); }
:focus-visible { outline: 3px solid var(--mountain-blue); outline-offset: 3px; }

h1, h2, h3, .h-display {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h1, .h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1em; }

.subhead {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  color: var(--midnight-plum);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-violet);
  margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--lilac-purple); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--space-black); padding: 12px 16px; }
.skip-link:focus { left: 16px; top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--bg { background: var(--bg); }
.section--plum { background: var(--midnight-plum); color: var(--white); }
.section--violet { background: var(--grad-violet); color: var(--white); }
.section--tint { background: var(--space-90); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border-radius: var(--r-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.btn, .btn:visited { color: var(--white); background: var(--deep-violet); }
.btn:hover { background: var(--deep-violet-dark); }
.btn--light, .btn--light:visited { background: var(--white); color: var(--midnight-plum); }
.btn--light:hover { background: var(--space-90); }
.btn--ghost, .btn--ghost:visited { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn svg { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--deep-violet); }
.link-arrow:visited { color: var(--deep-violet); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 180ms ease-out; }
a:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo { display: block; flex: 0 0 auto; }
.site-logo img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  font: 700 0.92rem var(--font-body); color: var(--midnight-plum); text-decoration: none;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav__link:visited { color: var(--midnight-plum); }
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { color: var(--deep-violet); background: rgba(110,55,183,0.06); }
.nav__toggle svg { width: 16px; height: 16px; transition: transform 180ms ease-out; }
.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(10,11,14,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms;
}
.nav__item--drop.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item--drop.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__drop a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 700; color: var(--midnight-plum); text-decoration: none; }
.nav__drop a:hover { background: var(--space-90); color: var(--deep-violet); }
.nav__cta { margin-left: 12px; }
.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; background: none; color: var(--midnight-plum); cursor: pointer; border-radius: var(--r-sm); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 24px var(--gutter) 40px; background: var(--white); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; font-size: 1.1rem; min-height: 52px; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .nav__item--drop.is-open .nav__drop { display: block; }
  .nav__cta { margin: 8px 0 0; }
  body.menu-open { overflow: hidden; }
}

/* Hero */
/* Hero: solid Midnight Plum text panel beside a clean, full-colour photo. No overlays on photography. */
.hero {
  /* The text column is the page's left margin plus a text block of 380-560px;
     the video fills everything to the right edge of the screen. */
  --hero-text: clamp(380px, 32vw, 560px);
  --hero-gap: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, calc(var(--hero-text) + var(--hero-gap))) minmax(0, 1fr);
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  color: var(--white); background: var(--midnight-plum);
}
.hero__text { display: flex; align-items: center; justify-content: flex-start; padding-block: clamp(56px, 8vw, 112px); padding-right: var(--hero-gap); }
.hero__content { width: 100%; max-width: 560px; }
.hero__media { min-height: clamp(560px, 30vw, 85vh); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; background: var(--midnight-plum); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .hero__media { order: -1; min-height: 0; }
  .hero__media img, .hero__media video { aspect-ratio: 4 / 3; height: auto; }
  .hero__text { justify-content: flex-start; padding-inline: var(--gutter); }
}
.hero h1 { color: var(--white); }
.hero .lede { margin-bottom: 2rem; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero (split) for inner pages */
.page-hero { background: var(--bg); padding-block: clamp(48px, 7vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { color: var(--space-black); }
.page-hero h1 .accent { color: var(--deep-violet); }
.page-hero__media { position: relative; }
.page-hero__media img, .page-hero__media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.page-hero__media::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 42%; height: 42%; z-index: -1; border-radius: var(--r-lg); background: var(--deep-violet); }
.page-hero__media { isolation: isolate; }
.page-hero--plain .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--plain { padding-bottom: clamp(24px, 3vw, 40px); }
.page-hero--plain .page-hero__grid > div { max-width: 860px; }
/* The section after a text-only hero carries straight on from it: no second
   background band, and a moderate gap rather than a full section gap. */
.page-hero--plain + .section, .page-hero--case + .section { padding-top: clamp(8px, 2vw, 24px); }
.page-hero--plain + .section--bg { background: transparent; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Statement band */
.statement { background: var(--midnight-plum); color: var(--white); }
.statement p.subhead { color: var(--white); max-width: 980px; margin: 0; }
.statement .body { color: rgba(255,255,255,0.85); max-width: 760px; margin-top: 1.25rem; }

/* Services grid / cards */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .subhead { max-width: 820px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) and (min-width: 601px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.card:visited { color: inherit; }
.card:hover { border-color: rgba(110,55,183,0.35); box-shadow: 0 8px 24px rgba(62,44,83,0.12); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--space-90); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity 200ms ease-out; }
.card:hover .card__img img { opacity: 0.9; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card__body h3 { color: var(--space-black); margin: 0; }
.card__body p { margin: 0; color: var(--space-25); flex: 1; }
.card__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--deep-violet); background: rgba(110,55,183,0.08); padding: 4px 10px; border-radius: 999px; }

/* Partners and testimonials */
/* Partner logo slider */
.logo-slider { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.logo-slider__viewport {
  flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.logo-slider__viewport::-webkit-scrollbar { display: none; }
.logo-slider__track { display: flex; gap: 16px; list-style: none; margin: 0; padding: 8px 48px; width: max-content; }
.logo-slide__btn {
  width: 232px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}
.logo-slide__btn:hover { border-color: rgba(110,55,183,0.45); }
.logo-slide__btn.is-active { border: 2px solid var(--deep-violet); box-shadow: 0 8px 24px rgba(110,55,183,0.16); }
.logo-slide__btn img { max-width: 100%; object-fit: contain; }
.logo-slider__nav {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(62,44,83,0.25);
  background: var(--white); color: var(--midnight-plum); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.logo-slider__nav:hover { border-color: var(--deep-violet); color: var(--deep-violet); }
.logo-slider__nav svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .logo-slider__nav { display: none; } .logo-slide__btn { width: 180px; height: 100px; } .logo-slider__track { padding-inline: 24px; } }
/* All brand panels share one grid cell, so the block is always as tall as the
   tallest panel at the current screen width and the page below never moves. */
.partner-panels { display: grid; }
.partner-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 220ms ease-out, visibility 0s linear 220ms; }
.partner-panel.is-active { opacity: 1; visibility: visible; transition: opacity 220ms ease-out, visibility 0s; }
.testimonial__link { margin: 16px 0 0; }
.testimonial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.testimonial[hidden] { display: none; }
.testimonial__about { color: var(--space-25); }
.testimonial__quote { margin: 0; padding-left: 24px; border-left: 4px solid var(--deep-violet); }
.testimonial__quote p { font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--midnight-plum); }
.testimonial__cite { font-style: normal; display: block; margin-top: 12px; }
.testimonial__cite strong { display: block; color: var(--space-black); }
.testimonial__cite span { color: var(--space-50); font-size: 0.9rem; }
@media (max-width: 800px) { .testimonial { grid-template-columns: minmax(0, 1fr); } }

/* Feature video */
.video-band { background: var(--space-black); }
.video-band video { width: 100%; max-height: 80vh; object-fit: cover; }
.video-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--space-black); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 112px); }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split h2 { color: var(--space-black); }
.on-dark .split h2 { color: var(--white); }
.split .subhead { margin-bottom: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip .split__media { order: 0; } }

/* Faces / ambassadors */
.faces { color: var(--white); background: var(--midnight-plum); }
.faces__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.faces__grid > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 860px) { .faces__grid { grid-template-columns: minmax(0, 1fr); } }

/* Featured case study */
.feature-case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.feature-case:visited { color: inherit; }
.feature-case__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 50% 30%; }
.feature-case__body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.feature-case__body h2, .feature-case__body h3 { color: var(--space-black); margin: 0; }
.feature-case__body p { margin: 0; color: var(--space-25); }
@media (max-width: 860px) { .feature-case { grid-template-columns: minmax(0, 1fr); } .feature-case__img img { min-height: 220px; aspect-ratio: 3 / 2; } }

/* CTA band */
.cta-band { background: var(--grad-violet); color: var(--white); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.9); max-width: 620px; }

/* Lists */
.pill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pill-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); font-weight: 700; color: var(--midnight-plum); }
.pill-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--deep-violet); margin-top: 2px; }
@media (max-width: 600px) { .pill-list { grid-template-columns: minmax(0, 1fr); } }

.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.promise-list li { padding: 22px 0; border-top: 1px solid var(--border-dark); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.5; }
.promise-list li:last-child { border-bottom: 1px solid var(--border-dark); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.steps__num { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: var(--deep-violet); }
.steps h3 { margin: 0; color: var(--space-black); font-size: 1.05rem; }
.steps p { margin: 0; color: var(--space-25); font-size: 0.95rem; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Feature trio (data services) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.feature { padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); }
.feature h3 { font-family: var(--font-body); text-transform: none; font-weight: 700; color: var(--midnight-plum); font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { margin: 0; color: var(--space-25); }
.features--stack { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }
.wide-img img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 21 / 9; object-fit: cover; margin-top: 40px; }

/* Work filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(62,44,83,0.25); background: var(--white); color: var(--midnight-plum); font: 700 0.9rem var(--font-body); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--midnight-plum); border-color: var(--midnight-plum); color: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-grid .card[hidden] { display: none; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

/* Case study */
.case-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-lg); }
.prose { max-width: 760px; }
.prose p { font-size: 1.075rem; }
.prose p:first-of-type { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; color: var(--midnight-plum); line-height: 1.5; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--deep-violet); margin-bottom: 24px; }
.back-link:visited { color: var(--deep-violet); }
.back-link svg { width: 18px; height: 18px; }

/* Accordion */
.accordion { display: grid; gap: 10px; margin-top: 24px; }
.accordion details { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 700; color: var(--midnight-plum); font-size: 1.05rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--deep-violet); transition: transform 180ms ease-out; }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion details > div { padding: 0 20px 20px; color: var(--space-25); }
.accordion details > div p { margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-violet); }
.tag svg { width: 16px; height: 16px; }

/* Role cards */
.role-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.role-card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 260px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); text-decoration: none; color: var(--white); background: var(--midnight-plum); transition: background-color 180ms ease-out; }
.role-card:visited { color: var(--white); }
.role-card:nth-child(2) { background: var(--deep-violet); }
.role-card:hover { background: var(--space-black); }
.role-card h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.role-card .link-arrow, .role-card .link-arrow:visited { color: var(--white); }
@media (max-width: 700px) { .role-cards { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; color: var(--midnight-plum); font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--space-50); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem var(--font-body); color: var(--space-black);
  background: var(--white); border: 1px solid rgba(62,44,83,0.3); border-radius: var(--r-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--deep-violet); box-shadow: 0 0 0 3px rgba(110,55,183,0.2); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--deep-violet); flex: 0 0 22px; }
.req { color: var(--deep-violet); }
.form__status { font-weight: 700; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(110,55,183,0.08); color: var(--midnight-plum); }
.form__status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-aside img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--deep-violet); margin-top: 2px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--midnight-plum); color: var(--white); padding-top: clamp(48px, 6vw, 80px); }
.site-footer a, .site-footer a:visited { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border-dark); }
.footer__logo img { height: 22px; width: auto; margin-bottom: 20px; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__nav a { font-family: var(--font-heading); text-transform: uppercase; text-decoration: none; font-size: 0.95rem; display: inline-block; padding: 6px 0; }
.footer__nav a:hover { color: var(--lilac-purple); }
.footer__label { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lilac-purple); margin-bottom: 10px; }
.footer address { font-style: normal; color: rgba(255,255,255,0.85); }
.footer__group img { height: 24px; width: auto; margin: 4px 0 14px; }
.social { display: flex; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.2); }
.social a:hover { background: rgba(255,255,255,0.1); }
.social svg { width: 20px; height: 20px; }
.footer__legal { padding-block: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Find a Job (home page, linked from the header on every page) */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.find-job { background: var(--white); }
.role-card h3 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Insights (migrated blog posts) */
.card__meta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--space-50); }
.post-grid .card h2 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin: 0; color: var(--space-black); }
.post-title { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 22ch; text-wrap: balance; }
.post-meta { color: var(--space-25); font-weight: 700; margin: -0.5rem 0 2rem; }
.post-body { max-width: 720px; font-size: 1.075rem; line-height: 1.75; }
.post-body > * { margin: 0; }
.post-body > * + * { margin-top: 1.25rem; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--font-body); text-transform: none; font-weight: 700; color: var(--midnight-plum); line-height: 1.3; }
.post-body > h2, .post-body > h3, .post-body > h4 { margin-top: 2.25rem; }
.post-body h2 { font-size: 1.6rem; }
.post-body h3, .post-body h4 { font-size: 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin: 1.25rem 0 0; }
.post-body li + li { margin-top: 0.5rem; }
.post-body > figure { margin-top: 2rem; }
.post-body img, .post-body video { width: 100%; height: auto; border-radius: var(--r-md); }
.post-body figcaption { font-size: 0.85rem; color: var(--space-50); margin-top: 0.5rem; }
.post-body > blockquote { margin-top: 2rem; } .post-body blockquote { padding-left: 24px; border-left: 4px solid var(--deep-violet); font-weight: 700; color: var(--midnight-plum); font-size: 1.2rem; }
.post-body blockquote p { margin: 0; }
.post-body blockquote cite { display: block; margin-top: 0.75rem; font-style: normal; font-weight: 400; font-size: 0.95rem; color: var(--space-25); }
.footer__legal a, .footer__legal a:visited { color: rgba(255,255,255,0.75); }

/* Cookie consent */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,0.75); text-decoration: underline; cursor: pointer; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: none; padding: 0 var(--gutter) max(16px, env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.cookie.is-open { display: block; }
.cookie__panel {
  pointer-events: auto; max-width: var(--max); margin: 0 auto; padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px;
  background: var(--white); color: var(--midnight-plum); border: 1px solid var(--space-90); border-radius: var(--r-lg); box-shadow: 0 12px 40px rgba(62,44,83,0.22), 0 2px 8px rgba(62,44,83,0.10);
}
.cookie__main { flex: 1 1 480px; min-width: 0; }
.cookie__title { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 1.1rem; color: var(--midnight-plum); margin: 0 0 6px; outline: none; }
.cookie__main p { margin: 0; font-size: 0.92rem; color: var(--midnight-plum); max-width: 72ch; }
.cookie__main a, .cookie__main a:visited { color: var(--deep-violet); font-weight: 600; }
.cookie__prefs { display: grid; gap: 10px; margin-top: 16px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--space-90); border-radius: var(--r-md); cursor: pointer; }
.cookie__opt strong { display: block; font-size: 0.95rem; }
.cookie__opt span { display: block; font-size: 0.85rem; color: rgba(62,44,83,0.75); }
.cookie__opt input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--deep-violet); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__btn { min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm); border: 2px solid var(--deep-violet); background: var(--deep-violet); color: var(--white); font: 700 0.92rem var(--font-body); cursor: pointer; }
.cookie__btn:hover { background: var(--deep-violet-dark); border-color: var(--deep-violet-dark); }
.cookie__btn--ghost { background: transparent; color: var(--deep-violet); }
.cookie__btn--ghost:hover { background: rgba(110,55,183,0.08); color: var(--deep-violet-dark); }
.cookie__btn[hidden] { display: none; }
.cookie__btn:focus-visible, .cookie__opt:focus-within { outline: 2px solid var(--deep-violet); outline-offset: 2px; }
@media (max-width: 600px) { .cookie__panel { padding: 20px; } .cookie__actions { width: 100%; } .cookie__btn { flex: 1 1 auto; } }

/* Cookie policy tables */
.post-body--wide { max-width: 960px; }
.cookie-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; min-width: 560px; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(62,44,83,0.15); }
.cookie-table th { font-weight: 700; color: var(--midnight-plum); background: rgba(110,55,183,0.06); }
.cookie-table code { font-size: 0.9em; white-space: nowrap; }
.post-body .link-btn { font: inherit; color: var(--deep-violet, #6E37B7); font-weight: 600; }
