/* ==========================================================================
   3core² Certification — Design System
   One file. Tokens, then components, then sections, then motion.
   Every class is prefixed .c2-  ·  No build step.

   CONTENTS
   01  Tokens
   02  Reset and base
   03  Typography
   04  Layout
   05  Buttons
   06  Labels, pills and standard codes
   07  Cards
   08  Image treatment
   09  Sections
   10  Forms
   11  Utilities
   12  Motion

   Fonts are loaded by the page, not by this file:
   Plus Jakarta Sans (400–800), Roboto Slab (300–500), IBM Plex Mono (400–600)
   ========================================================================== */


/* ==========================================================================
   01  TOKENS
   Raw brand values first, semantic roles second.
   RULE: components read semantic roles only. A component that reads a raw
   token will not invert on a dark ground.
   ========================================================================== */

:root {
  /* --- Raw brand. Measured from the logo file and the live site. --------- */
  --c2-purple:        #831f83;  /* logo arrows + wordmark. White on it 8.44:1 */
  --c2-purple-deep:   #6a176a;  /* hover/pressed. Derived. White on it 10.81:1 */
  --c2-aubergine:     #312043;  /* logo's dark arrow. White on it 14.81:1 */
  --c2-aubergine-deep:#1d1229;  /* derived, footer ground. White 17.94:1 */
  --c2-orchid:        #e9b8ea;  /* derived tint of purple, for dark grounds. 8.82:1 on aubergine */
  --c2-slate:         #373f51;  /* live site headings + buttons. 10.54:1 on white */
  --c2-slate-body:    #4e586e;  /* live site body copy. 7.13:1 on white */
  --c2-slate-muted:   #5f6678;  /* DEPARTURE: live #707786 is 4.49:1. This is 5.74:1 */
  --c2-blue:          #3a4ca5;  /* live site link/search accent. Training pillar. 7.62:1 */
  --c2-blue-tint:     #aab6f2;  /* derived, blue on dark grounds. 7.53:1 on aubergine */
  --c2-gold:          #f4c95d;  /* derived highlight, fills only. Aubergine on it 9.42:1 */
  --c2-mist:          #f7f2f8;  /* derived, purple-tinted off-white ground */
  --c2-lilac:         #ede3ef;  /* derived, tint fills and hairlines on mist */
  --c2-white:         #ffffff;
  --c2-line-light:    #e4dde8;
  --c2-green-ink:     #1f7a4d;  /* status: valid / verified. 5.32:1 on white */
  --c2-red-ink:       #b3261e;  /* status: error. 6.54:1 on white */
  --c2-amber-ink:     #8a5a00;  /* status: due / pending. 5.93:1 on white */

  /* --- Semantic roles (light ground defaults) ---------------------------- */
  --c2-bg:            var(--c2-white);
  --c2-surface:       var(--c2-white);
  --c2-text:          var(--c2-slate-body);
  --c2-heading:       var(--c2-aubergine);
  --c2-muted:         var(--c2-slate-muted);
  --c2-accent:        var(--c2-purple);      /* eyebrows, links, stat values */
  --c2-action:        var(--c2-purple);      /* primary button fill */
  --c2-action-hover:  var(--c2-purple-deep);
  --c2-on-action:     var(--c2-white);
  --c2-line:          var(--c2-line-light);
  --c2-tint:          var(--c2-lilac);
  --c2-focus:         var(--c2-blue);

  /* --- Pillar accent. Swapped by .c2-pillar--* --------------------------- */
  --c2-pillar:        var(--c2-purple);

  /* --- Type --------------------------------------------------------------- */
  --c2-font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --c2-font-slab: "Roboto Slab", Rockwell, Georgia, serif;   /* heritage: the live site's only face */
  --c2-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid scale. No font-size media queries anywhere in the system. */
  --c2-fs-display: clamp(2.5rem, 1.35rem + 4.6vw, 4.75rem);
  --c2-fs-h1:      clamp(2.125rem, 1.4rem + 2.9vw, 3.5rem);
  --c2-fs-h2:      clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --c2-fs-h3:      clamp(1.3125rem, 1.15rem + 0.65vw, 1.625rem);
  --c2-fs-h4:      clamp(1.125rem, 1.06rem + 0.25vw, 1.25rem);
  --c2-fs-lead:    clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --c2-fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.075rem);   /* live body is 17.2px */
  --c2-fs-small:   0.9375rem;
  --c2-fs-micro:   0.8125rem;

  /* --- Space: 4px base ---------------------------------------------------- */
  --c2-s-1: 0.25rem;  --c2-s-2: 0.5rem;   --c2-s-3: 0.75rem;  --c2-s-4: 1rem;
  --c2-s-5: 1.5rem;   --c2-s-6: 2rem;     --c2-s-7: 3rem;     --c2-s-8: 4rem;
  --c2-s-9: 6rem;
  --c2-section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --c2-gutter:    clamp(1rem, 0.4rem + 2.6vw, 2.5rem);

  /* --- Layout ------------------------------------------------------------- */
  --c2-container:       1320px;   /* DEPARTURE: live is 973px copy / 1280px wide */
  --c2-container-tight: 760px;
  --c2-measure:         68ch;

  /* --- Shape -------------------------------------------------------------- */
  --c2-r-sm:   6px;
  --c2-r:      15px;              /* measured on the live site */
  --c2-r-lg:   28px;
  --c2-r-pill: 999px;             /* live buttons are 50px pills */
  /* Signature: the arc. One corner swept like the logo's arrows. */
  --c2-arc-size: clamp(64px, 9vw, 132px);
  --c2-shape-arc:        var(--c2-r) var(--c2-arc-size) var(--c2-r) var(--c2-r);
  --c2-shape-arc-mirror: var(--c2-arc-size) var(--c2-r) var(--c2-r) var(--c2-r);

  /* --- Elevation. Tinted with aubergine, never black. --------------------- */
  --c2-sh-1: 0 1px 2px rgb(49 32 67 / 0.06), 0 2px 8px rgb(49 32 67 / 0.06);
  --c2-sh-2: 0 2px 4px rgb(49 32 67 / 0.06), 0 12px 28px rgb(49 32 67 / 0.10);
  --c2-sh-3: 0 4px 8px rgb(49 32 67 / 0.08), 0 28px 64px rgb(49 32 67 / 0.18);

  /* --- Motion ------------------------------------------------------------- */
  --c2-t-fast: 140ms;
  --c2-t:      280ms;
  --c2-t-slow: 720ms;
  --c2-ease:   cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* --------------------------------------------------------------------------
   INVERTED GROUNDS — defined once.
   Every coloured ground is in this one list, so eyebrows, leads, stat values
   and links invert everywhere or nowhere.
   -------------------------------------------------------------------------- */
.c2-section--dark,
.c2-section--darker,
.c2-section--brand,
.c2-hero,
.c2-topbar,
.c2-cta-band,
.c2-cta-panel,
.c2-stat-band,
.c2-footer,
.c2-inverted {
  --c2-bg:           var(--c2-aubergine);
  --c2-text:         #d9d2e3;               /* 10.07:1 on aubergine */
  --c2-heading:      var(--c2-white);
  --c2-muted:        #c9c0d6;               /* 8.46:1 on aubergine */
  --c2-accent:       var(--c2-orchid);
  --c2-action:       var(--c2-white);
  --c2-action-hover: var(--c2-orchid);
  --c2-on-action:    var(--c2-aubergine);
  --c2-line:         rgb(255 255 255 / 0.16);
  --c2-tint:         rgb(255 255 255 / 0.08);
  --c2-focus:        var(--c2-gold);
  background-color: var(--c2-bg);
  color: var(--c2-text);
}
.c2-section--darker, .c2-footer { --c2-bg: var(--c2-aubergine-deep); }
.c2-section--brand, .c2-cta-band {
  --c2-bg:    var(--c2-purple);
  --c2-text:  #f6e9f6;                      /* 7.2:1 on purple */
  --c2-muted: #f0dcf0;
  --c2-accent: var(--c2-white);
}

/* --------------------------------------------------------------------------
   LIGHT SURFACES — reset once.
   A white card inside a dark section must not inherit the dark section's
   text tokens. Anything that paints its own light background goes here.
   -------------------------------------------------------------------------- */
.c2-card,
.c2-panel,
.c2-table-wrap,
.c2-form,
.c2-tier,
.c2-quote,
.c2-nav__menu,
.c2-cert,
.c2-surface {
  --c2-bg:           var(--c2-white);
  --c2-text:         var(--c2-slate-body);
  --c2-heading:      var(--c2-aubergine);
  --c2-muted:        var(--c2-slate-muted);
  --c2-accent:       var(--c2-purple);
  --c2-action:       var(--c2-purple);
  --c2-action-hover: var(--c2-purple-deep);
  --c2-on-action:    var(--c2-white);
  --c2-line:         var(--c2-line-light);
  --c2-tint:         var(--c2-lilac);
  --c2-focus:        var(--c2-blue);
  background-color: var(--c2-bg);
  color: var(--c2-text);
}

/* Pillars. Certification is the default; Training takes the live site's blue. */
.c2-pillar--certification { --c2-pillar: var(--c2-purple); }
.c2-pillar--training      { --c2-pillar: var(--c2-blue); }
.c2-pillar--assurance     { --c2-pillar: var(--c2-aubergine); }


/* ==========================================================================
   02  RESET AND BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--c2-bg);
  color: var(--c2-text);
  font-family: var(--c2-font-sans);
  font-size: var(--c2-fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

/* A class-based display rule outranks the [hidden] attribute. Restate it. */
[hidden] { display: none !important; }

a { color: var(--c2-accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c2-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c2-purple); color: var(--c2-white); }

.c2-skip {
  position: absolute; left: var(--c2-s-4); top: -4rem; z-index: 200;
  padding: var(--c2-s-3) var(--c2-s-5);
  background: var(--c2-white); color: var(--c2-aubergine);
  border-radius: var(--c2-r-sm); font-weight: 700;
  transition: top var(--c2-t-fast) var(--c2-ease);
}
.c2-skip:focus { top: var(--c2-s-4); }


/* ==========================================================================
   03  TYPOGRAPHY
   Headings are classes as well as elements, so a specimen can look like an
   h1 without being one. RULE: one <h1> per page.
   ========================================================================== */

h1, h2, h3, h4, h5,
.c2-display, .c2-h1, .c2-h2, .c2-h3, .c2-h4 {
  margin: 0;
  color: var(--c2-heading);
  font-family: var(--c2-font-sans);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.c2-display      { font-size: var(--c2-fs-display); line-height: 1.02; letter-spacing: -0.035em; }
h1, .c2-h1       { font-size: var(--c2-fs-h1); }
h2, .c2-h2       { font-size: var(--c2-fs-h2); }
h3, .c2-h3       { font-size: var(--c2-fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h4, h5, .c2-h4   { font-size: var(--c2-fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }

/* The accent word inside a headline. Colour only; the text is unchanged. */
.c2-mark { color: var(--c2-accent); }

p { margin: 0; max-width: var(--c2-measure); text-wrap: pretty; }
p + p { margin-top: 1em; }

.c2-lead {
  font-size: var(--c2-fs-lead);
  line-height: 1.55;
  color: var(--c2-text);        /* semantic, so it inverts */
}
.c2-small { font-size: var(--c2-fs-small); }
.c2-micro { font-size: var(--c2-fs-micro); color: var(--c2-muted); }
.c2-muted { color: var(--c2-muted); }

/* Heritage slab. Quotes and standfirsts only, never headings or UI. */
.c2-slab {
  font-family: var(--c2-font-slab);
  font-weight: 300;
  letter-spacing: 0;
}

.c2-prose > * + * { margin-top: 1.1em; }
.c2-prose h2, .c2-prose h3 { margin-top: 1.8em; }
.c2-prose ul { padding-left: 1.2em; }
.c2-prose li + li { margin-top: 0.4em; }

/* Tick list: the arrow-head from the logo, reduced to a chevron-tick. */
.c2-ticks > li {
  position: relative;
  padding-left: 2rem;
  max-width: var(--c2-measure);
}
.c2-ticks > li + li { margin-top: var(--c2-s-3); }
.c2-ticks > li::before {
  content: "";
  position: absolute; left: 0; top: 0.22em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background:
    var(--c2-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
.c2-inverted .c2-ticks > li::before,
.c2-section--dark .c2-ticks > li::before,
.c2-section--darker .c2-ticks > li::before,
.c2-hero .c2-ticks > li::before { background-color: var(--c2-purple); }


/* ==========================================================================
   04  LAYOUT
   ========================================================================== */

.c2-container {
  width: 100%;
  max-width: calc(var(--c2-container) + 2 * var(--c2-gutter));
  margin-inline: auto;
  padding-inline: var(--c2-gutter);
}
.c2-container--tight { max-width: calc(var(--c2-container-tight) + 2 * var(--c2-gutter)); }

.c2-section {
  position: relative;
  padding-block: var(--c2-section-y);
  background-color: var(--c2-bg);
  color: var(--c2-text);
}
.c2-section--mist  { --c2-bg: var(--c2-mist); }
.c2-section--flush { padding-block: 0; }

.c2-stack > * + * { margin-top: var(--c2-stack, var(--c2-s-5)); }
.c2-cluster { display: flex; flex-wrap: wrap; gap: var(--c2-s-3) var(--c2-s-4); align-items: center; }

/* Grid. auto-fit ignores a requested column count, so it is used only below
   desktop. From 1024px the count is explicit. */
.c2-grid {
  display: grid;
  gap: var(--c2-s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}
@media (min-width: 1024px) {
  .c2-grid          { gap: var(--c2-s-6); }
  .c2-grid--2       { grid-template-columns: repeat(2, 1fr); }
  .c2-grid--3       { grid-template-columns: repeat(3, 1fr); }
  .c2-grid--4       { grid-template-columns: repeat(4, 1fr); }
}

/* Section head: eyebrow, title, standfirst. Same three slots everywhere. */
.c2-head { margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.75rem); max-width: 54rem; }
.c2-head > * + * { margin-top: var(--c2-s-4); }
.c2-head--center { margin-inline: auto; text-align: center; }
.c2-head--center p { margin-inline: auto; }
.c2-head--row {
  display: flex; flex-wrap: wrap; gap: var(--c2-s-5);
  align-items: end; justify-content: space-between; max-width: none;
}
.c2-head--row > * + * { margin-top: 0; }


/* ==========================================================================
   05  BUTTONS
   The live site's pill is kept. Its 12px uppercase label is not: 15px
   sentence case reads faster and gives a 44px target.
   RULE: one primary action per view. Two actions at most in a hero.
   ========================================================================== */

.c2-btn {
  --_bg: var(--c2-action);
  --_fg: var(--c2-on-action);
  --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6em;
  min-height: 2.875rem;
  padding: 0.7em 1.5em;
  border: 1.5px solid var(--_bd);
  border-radius: var(--c2-r-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--c2-font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--c2-t-fast) var(--c2-ease),
    color var(--c2-t-fast) var(--c2-ease),
    border-color var(--c2-t-fast) var(--c2-ease),
    transform var(--c2-t-fast) var(--c2-ease),
    box-shadow var(--c2-t) var(--c2-ease);
}
.c2-btn:hover  { --_bg: var(--c2-action-hover); transform: translateY(-1px); box-shadow: var(--c2-sh-2); }
.c2-btn:active { transform: translateY(0); box-shadow: none; }

/* Every button carries the arrow; it travels on hover. */
.c2-btn__arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--c2-t) var(--c2-ease); }
.c2-btn:hover .c2-btn__arrow { transform: translateX(4px); }

.c2-btn--secondary {
  --_bg: transparent;
  --_fg: var(--c2-heading);
  --_bd: currentColor;
}
.c2-btn--secondary:hover { --_bg: var(--c2-heading); --_fg: var(--c2-bg); --_bd: var(--c2-heading); }

.c2-btn--quiet {
  --_bg: var(--c2-tint);
  --_fg: var(--c2-heading);
}
.c2-btn--quiet:hover { --_bg: var(--c2-tint); box-shadow: inset 0 0 0 1.5px var(--c2-heading); }

.c2-btn--gold { --_bg: var(--c2-gold); --_fg: var(--c2-aubergine); }
.c2-btn--gold:hover { --_bg: #f8d781; }

.c2-btn--sm { min-height: 2.375rem; padding: 0.5em 1.1em; font-size: 0.875rem; }
.c2-btn--lg { min-height: 3.375rem; padding: 0.85em 1.9em; font-size: 1.0625rem; }
.c2-btn--block { display: flex; width: 100%; }
.c2-btn[disabled], .c2-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Text link with the same arrow. */
.c2-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--c2-accent);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--c2-t) var(--c2-ease);
}
.c2-link:hover { background-size: 100% 2px; }
.c2-link:hover .c2-btn__arrow { transform: translateX(4px); }


/* ==========================================================================
   06  LABELS, PILLS AND STANDARD CODES
   ========================================================================== */

/* Eyebrow. Mono, because this is a business of numbered clauses. */
.c2-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  margin: 0;
  color: var(--c2-accent);
  font-family: var(--c2-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.c2-eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.c2-head--center .c2-eyebrow::after {
  content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px;
}

.c2-pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.3em 0.85em;
  border-radius: var(--c2-r-pill);
  background: var(--c2-tint);
  color: var(--c2-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.c2-pill--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--c2-line); }
.c2-pill--solid   { background: var(--c2-purple); color: var(--c2-white); }
.c2-pill--gold    { background: var(--c2-gold); color: var(--c2-aubergine); }

/* Status. Always a dot and a word; colour is never the only signal. */
.c2-status { --_c: var(--c2-slate-muted); color: var(--_c); background: color-mix(in srgb, var(--_c) 10%, white); }
.c2-status::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.c2-status--valid   { --_c: var(--c2-green-ink); }
.c2-status--due     { --_c: var(--c2-amber-ink); }
.c2-status--invalid { --_c: var(--c2-red-ink); }

/* Standard code: "ISO 9001:2015". Mono, never wraps, never restyled. */
.c2-code {
  font-family: var(--c2-font-mono);
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.c2-code--chip {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: var(--c2-r-sm);
  background: var(--c2-tint);
  color: var(--c2-heading);
  font-size: 0.8125rem;
}


/* ==========================================================================
   07  CARDS
   Rows align across columns through subgrid. RULE: every card emits the same
   children in the same order. A missing field is an empty slot, not a
   missing element.
   ========================================================================== */

.c2-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--c2-s-4);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r);
  box-shadow: var(--c2-sh-1);
  transition:
    transform var(--c2-t) var(--c2-ease),
    box-shadow var(--c2-t) var(--c2-ease),
    border-color var(--c2-t) var(--c2-ease);
}
.c2-card p { max-width: none; }
.c2-card__foot { margin-top: auto; padding-top: var(--c2-s-4); border-top: 1px solid var(--c2-line); }

/* Subgrid alignment: icon / title / body / foot share rows across the grid. */
@supports (grid-template-rows: subgrid) {
  .c2-grid--aligned > .c2-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: var(--c2-s-4);
  }
  .c2-grid--aligned > .c2-card > .c2-card__foot { margin-top: 0; align-self: end; }
}

/* Whole-card link. The heading holds the anchor; its ::after covers the card. */
.c2-card--link:hover { transform: translateY(-4px); box-shadow: var(--c2-sh-3); border-color: transparent; }
.c2-card--link a.c2-card__title { color: inherit; text-decoration: none; }
.c2-card--link a.c2-card__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.c2-card--link:focus-within { outline: 3px solid var(--c2-focus); outline-offset: 3px; }
.c2-card--link a.c2-card__title:focus-visible { outline: none; }

/* The arc sweeps in behind a card on hover: the logo's arrow, abstracted. */
.c2-card--arc { overflow: hidden; }
.c2-card--arc::before {
  content: "";
  position: absolute; right: -4.5rem; top: -4.5rem;
  width: 9rem; height: 9rem;
  border-radius: 50%;
  border: 1.25rem solid var(--c2-pillar);
  opacity: 0.08;
  transition: transform var(--c2-t-slow) var(--c2-ease), opacity var(--c2-t) var(--c2-ease);
}
.c2-card--arc:hover::before { transform: scale(1.35); opacity: 0.16; }

.c2-icon {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: var(--c2-r) var(--c2-r-lg) var(--c2-r) var(--c2-r);
  background: color-mix(in srgb, var(--c2-pillar) 10%, white);
  color: var(--c2-pillar);
  flex: none;
}
/* An SVG in a flex or grid parent with only max-width collapses to zero. */
.c2-icon svg { width: 1.625rem; height: 1.625rem; }

/* Standard card: the code is the hero of the card. */
.c2-std { gap: var(--c2-s-3); }
.c2-std__code {
  font-family: var(--c2-font-mono);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c2-pillar);
  font-variant-numeric: tabular-nums;
}
.c2-std__code small { font-size: 0.6em; font-weight: 500; color: var(--c2-muted); letter-spacing: 0; }

/* Compact standards directory rows. */
.c2-dir { display: grid; gap: 0; border-top: 1px solid var(--c2-line); }
.c2-dir__row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 13rem) 1fr auto;
  gap: var(--c2-s-4);
  align-items: center;
  padding: var(--c2-s-4) var(--c2-s-3);
  border-bottom: 1px solid var(--c2-line);
  color: var(--c2-text);
  text-decoration: none;
  transition: background-color var(--c2-t-fast) var(--c2-ease), padding-left var(--c2-t) var(--c2-ease);
}
.c2-dir__row:hover { background: var(--c2-tint); padding-left: var(--c2-s-5); }
.c2-dir__row .c2-code { color: var(--c2-heading); font-weight: 600; }
@media (max-width: 640px) {
  .c2-dir__row { grid-template-columns: 1fr auto; }
  .c2-dir__row > :nth-child(2) { grid-column: 1; grid-row: 2; font-size: var(--c2-fs-small); }
  .c2-dir__row > :nth-child(3) { grid-row: 1 / span 2; grid-column: 2; }
}


/* ==========================================================================
   08  IMAGE TREATMENT
   Built for a client with almost no photography. One wrapper owns the crop,
   the ratio and the shape. RULE: a bare <img> in a section is a bug.
   ========================================================================== */

.c2-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--c2-shape-arc);          /* one signature corner */
  background: var(--c2-lilac);
  isolation: isolate;
}
.c2-media > img, .c2-media > video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--c2-t-slow) var(--c2-ease);
}
.c2-media--mirror { border-radius: var(--c2-shape-arc-mirror); }
.c2-media--plain  { border-radius: var(--c2-r); }

/* Locked ratios. No min-height anywhere on media: it would beat the ratio. */
.c2-media--16x9 { aspect-ratio: 16 / 9; }
.c2-media--3x2  { aspect-ratio: 3 / 2; }
.c2-media--4x3  { aspect-ratio: 4 / 3; }
.c2-media--1x1  { aspect-ratio: 1 / 1; }
.c2-media--4x5  { aspect-ratio: 4 / 5; }

/* Corrections */
.c2-media--scrim::after {                       /* mandatory under any text */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(29 18 41 / 0.88) 0%, rgb(29 18 41 / 0.35) 45%, rgb(29 18 41 / 0) 75%);
}
.c2-media--veil::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--c2-purple); mix-blend-mode: soft-light; opacity: 0.55;
}
.c2-media--duotone > img { filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.c2-media--duotone { background: var(--c2-purple); }
.c2-media--duotone::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--c2-aubergine); mix-blend-mode: lighten;
}
.c2-media__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--c2-s-5);
  color: var(--c2-white);
}

/* Offset frame: a block of brand colour behind, so one photo carries a section. */
.c2-frame { position: relative; padding: 0 0 var(--c2-s-5) var(--c2-s-5); }
.c2-frame::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 72%; height: 78%;
  border-radius: var(--c2-shape-arc-mirror);
  background: var(--c2-purple);
  z-index: 0;
}
.c2-frame > .c2-media { z-index: 1; box-shadow: var(--c2-sh-3); }
.c2-frame--mirror { padding: 0 var(--c2-s-5) var(--c2-s-5) 0; }
.c2-frame--mirror::before { left: auto; right: 0; border-radius: var(--c2-shape-arc); }

/* Placeholders. An unfinished page still looks designed. */
.c2-media--placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 100% 0%, rgb(131 31 131 / 0.22) 0 38%, transparent 38.2%),
    radial-gradient(90% 90% at 100% 0%, rgb(131 31 131 / 0.16) 0 38%, transparent 38.2%),
    var(--c2-lilac);
  color: var(--c2-purple);
}
.c2-media--placeholder-dark {
  background:
    radial-gradient(120% 120% at 100% 0%, rgb(233 184 234 / 0.16) 0 38%, transparent 38.2%),
    radial-gradient(90% 90% at 100% 0%, rgb(233 184 234 / 0.14) 0 38%, transparent 38.2%),
    var(--c2-aubergine);
  color: var(--c2-orchid);
}
/* Mirrored placeholders sweep from the mirrored corner. */
.c2-media--mirror.c2-media--placeholder {
  background:
    radial-gradient(120% 120% at 0% 0%, rgb(131 31 131 / 0.22) 0 38%, transparent 38.2%),
    radial-gradient(90% 90% at 0% 0%, rgb(131 31 131 / 0.16) 0 38%, transparent 38.2%),
    var(--c2-lilac);
}
.c2-media--placeholder span {
  font-family: var(--c2-font-mono); font-size: var(--c2-fs-micro);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Logo strip. Accreditation marks have their own usage rules: they are
   never recoloured, never greyscaled, and only ever sit on white. */
.c2-marks {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--c2-s-4) var(--c2-s-5);
}
.c2-marks__item {
  display: grid; place-items: center;
  width: 7rem; height: 5rem;
  padding: var(--c2-s-3);
  border-radius: var(--c2-r-sm);
  background: var(--c2-white);
}
.c2-marks__item img { width: auto; height: 100%; max-height: 100%; object-fit: contain; }

/* Client logo strip: greyscale at rest, colour on hover, light grounds only. */
.c2-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--c2-s-5) var(--c2-s-7); }
.c2-logos img { height: 2.25rem; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter var(--c2-t) var(--c2-ease), opacity var(--c2-t) var(--c2-ease); }
.c2-logos img:hover { filter: none; opacity: 1; }

/* Brand logo. The supplied file is a portrait lockup; the header shows the
   mark, cropped from the real file, beside the name in live text. */
.c2-logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--c2-heading); }
.c2-logo__mark {
  position: relative; overflow: hidden; flex: none;
  width: 2.75rem; aspect-ratio: 533 / 559;
}
.c2-logo__mark img {
  position: absolute; max-width: none;
  width: 111.07%; left: -5.44%; top: -12.88%;
}
.c2-logo__name { font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.03em; line-height: 1; color: var(--c2-heading); }
.c2-logo__name sup { font-size: 0.55em; font-weight: 600; vertical-align: super; line-height: 0; }
.c2-logo__name small {
  display: block; margin-top: 0.3em;
  font-family: var(--c2-font-mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c2-muted);
}
/* On a dark ground the purple mark loses contrast: it sits on a white tile. */
.c2-logo--tile .c2-logo__mark { width: 3.25rem; padding: 0; border-radius: 12px; background: var(--c2-white); aspect-ratio: 1; }
.c2-logo--tile .c2-logo__mark img { width: 84%; left: 8%; top: -1%; }


/* ==========================================================================
   09  SECTIONS
   RULES (checkable by script):
   · grounds alternate and never repeat
   · a colour break at least every fourth section
   · one signature corner per image
   · two actions at most in a hero
   · header and footer never move
   ========================================================================== */

/* --- 9.1 Top bar --------------------------------------------------------- */
.c2-topbar {
  --c2-bg: var(--c2-aubergine-deep);
  font-size: var(--c2-fs-micro);
  padding-block: 0.5rem;
}
.c2-topbar__inner { display: flex; flex-wrap: wrap; gap: var(--c2-s-2) var(--c2-s-5); align-items: center; justify-content: space-between; }
.c2-topbar a { color: var(--c2-heading); text-decoration: none; font-weight: 600; }
.c2-topbar a:hover { text-decoration: underline; }
.c2-topbar__group { display: flex; flex-wrap: wrap; gap: var(--c2-s-2) var(--c2-s-5); align-items: center; }
@media (max-width: 720px) { .c2-topbar__hide-sm { display: none; } }

/* --- 9.2 Header ---------------------------------------------------------- */
.c2-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--c2-line);
  transition: box-shadow var(--c2-t) var(--c2-ease);
}
.c2-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--c2-s-5);
  min-height: 5rem;
  transition: min-height var(--c2-t) var(--c2-ease);
}
.c2-header.is-condensed { box-shadow: var(--c2-sh-2); }
.c2-header.is-condensed .c2-header__inner { min-height: 4rem; }

.c2-nav { display: flex; align-items: center; gap: var(--c2-s-1); }
.c2-nav__item { position: relative; }
.c2-nav__link {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border: 0; border-radius: var(--c2-r-pill);
  background: none;
  color: var(--c2-heading);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--c2-t-fast) var(--c2-ease);
}
.c2-nav__link:hover, .c2-nav__link[aria-expanded="true"] { background: var(--c2-tint); }
.c2-nav__link[aria-current="page"] { color: var(--c2-accent); }
.c2-nav__caret { width: 0.7em; height: 0.7em; transition: transform var(--c2-t) var(--c2-ease); }
.c2-nav__link[aria-expanded="true"] .c2-nav__caret { transform: rotate(180deg); }

.c2-nav__menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%;
  min-width: 17rem;
  padding: var(--c2-s-3);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r);
  box-shadow: var(--c2-sh-3);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity var(--c2-t-fast) var(--c2-ease), transform var(--c2-t) var(--c2-ease), visibility 0s linear var(--c2-t);
}
.c2-nav__item:hover > .c2-nav__menu,
.c2-nav__item:focus-within > .c2-nav__menu,
.c2-nav__item.is-open > .c2-nav__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.c2-nav__menu a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--c2-r-sm);
  color: var(--c2-heading);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
}
.c2-nav__menu a span { display: block; font-size: var(--c2-fs-micro); font-weight: 400; color: var(--c2-muted); }
.c2-nav__menu a:hover { background: var(--c2-tint); }

.c2-header__actions { display: flex; align-items: center; gap: var(--c2-s-3); }
.c2-burger {
  display: none;
  width: 2.875rem; height: 2.875rem;
  border: 0; border-radius: 50%;
  background: var(--c2-tint); color: var(--c2-heading);
  cursor: pointer; place-items: center;
}
.c2-burger svg { width: 1.375rem; height: 1.375rem; }
.c2-burger .c2-burger__close { display: none; }
.c2-burger[aria-expanded="true"] .c2-burger__open  { display: none; }
.c2-burger[aria-expanded="true"] .c2-burger__close { display: block; }

@media (max-width: 1080px) {
  .c2-burger { display: grid; }
  .c2-header__cta-text { display: none; }
  .c2-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - 5rem); overflow-y: auto;
    padding: var(--c2-s-4) var(--c2-gutter) var(--c2-s-6);
    background: var(--c2-white);
    border-bottom: 1px solid var(--c2-line);
    box-shadow: var(--c2-sh-3);
  }
  .c2-nav.is-open { display: flex; }
  .c2-nav__link { width: 100%; justify-content: space-between; padding: 0.9rem 0.5rem; border-radius: var(--c2-r-sm); font-size: 1.0625rem; }
  .c2-nav__item + .c2-nav__item { border-top: 1px solid var(--c2-line); }

  /* Desktop open/hover selectors are more specific than a bare override, so
     every one of them is restated here or the centring transform leaks in. */
  .c2-nav__menu,
  .c2-nav__item:hover > .c2-nav__menu,
  .c2-nav__item:focus-within > .c2-nav__menu,
  .c2-nav__item.is-open > .c2-nav__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 var(--c2-s-3) var(--c2-s-3);
    border: 0; box-shadow: none;
    opacity: 1; visibility: visible;
    transform: none;
    transition: none;
  }
  .c2-nav__item.is-open > .c2-nav__menu { display: block; }
}

/* Phone: logo, one action and the burger must share 343px. */
@media (max-width: 480px) {
  .c2-header__inner { gap: var(--c2-s-3); min-height: 4.25rem; }
  .c2-header .c2-logo { gap: 0.5rem; }
  .c2-header .c2-logo__mark { width: 2.25rem; }
  .c2-header .c2-logo__name { font-size: 1.125rem; }
  .c2-header .c2-logo__name small { font-size: 0.5625rem; letter-spacing: 0.1em; }
  .c2-header__actions { gap: var(--c2-s-2); }
  .c2-header__actions .c2-btn { padding-inline: 0.9em; }
  .c2-header__actions .c2-btn__arrow { display: none; }
  .c2-burger { width: 2.75rem; height: 2.75rem; flex: none; }
}

/* --- 9.3 Hero ------------------------------------------------------------ */
.c2-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(4rem, 2rem + 8vw, 9rem);
  background:
    radial-gradient(60% 80% at 85% 10%, rgb(131 31 131 / 0.55) 0%, rgb(131 31 131 / 0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgb(58 76 165 / 0.35) 0%, rgb(58 76 165 / 0) 60%),
    var(--c2-aubergine);
}
.c2-hero__inner {
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
@media (min-width: 1024px) { .c2-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.c2-hero__copy > * + * { margin-top: var(--c2-s-5); }
.c2-hero__actions { display: flex; flex-wrap: wrap; gap: var(--c2-s-3); margin-top: var(--c2-s-6); }
.c2-hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--c2-s-2) var(--c2-s-5);
  margin-top: var(--c2-s-6); padding-top: var(--c2-s-5);
  border-top: 1px solid var(--c2-line);
  font-size: var(--c2-fs-small); color: var(--c2-muted);
}
.c2-hero__proof strong { color: var(--c2-heading); font-family: var(--c2-font-mono); font-weight: 500; }

/* Compact hero for inner pages */
.c2-hero--page { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.c2-hero--page .c2-hero__inner { grid-template-columns: 1fr; }

/* The orbit: three arcs turning slowly, from the logo's three arrows. */
.c2-orbit {
  position: absolute; z-index: -1;
  right: -12%; top: 50%;
  width: min(62rem, 95vw); aspect-ratio: 1;
  translate: 0 -50%;
  pointer-events: none;
  opacity: 0.5;
}
.c2-orbit svg { width: 100%; height: 100%; overflow: visible; }
.c2-orbit__ring { transform-origin: 50% 50%; transform-box: view-box; }

/* Drifting light (ambience layer) */
.c2-hero__glow {
  position: absolute; z-index: -1;
  width: 46rem; aspect-ratio: 1; border-radius: 50%;
  left: calc(var(--c2-mx, 70) * 1% - 23rem);
  top: calc(var(--c2-my, 20) * 1% - 23rem);
  background: radial-gradient(closest-side, rgb(233 184 234 / 0.2), rgb(233 184 234 / 0));
  pointer-events: none;
  transition: left 1.2s var(--c2-ease), top 1.2s var(--c2-ease);
}

/* Hero visual: a certificate, because there is no photograph to use. */
.c2-hero__visual { position: relative; perspective: 1200px; }
.c2-cert {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--c2-shape-arc);
  box-shadow: var(--c2-sh-3), 0 0 0 1px rgb(255 255 255 / 0.1);
  transform: rotateY(calc(var(--c2-px, 0) * 5deg)) rotateX(calc(var(--c2-py, 0) * -5deg)) rotate(-1.5deg);
  transition: transform 0.5s var(--c2-ease);
}
.c2-cert__head { display: flex; justify-content: space-between; gap: var(--c2-s-4); align-items: start; }
.c2-cert__title { margin-top: var(--c2-s-5); font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--c2-heading); }
.c2-cert__rows { margin-top: var(--c2-s-5); display: grid; gap: 0; }
.c2-cert__row {
  display: flex; justify-content: space-between; gap: var(--c2-s-4);
  padding-block: 0.7rem;
  border-top: 1px solid var(--c2-line);
  font-size: var(--c2-fs-small);
}
.c2-cert__row dt { color: var(--c2-muted); }
.c2-cert__row dd { margin: 0; color: var(--c2-heading); font-weight: 600; text-align: right; }
.c2-cert__seal {
  position: absolute; right: clamp(-1.5rem, -2vw, -0.5rem); bottom: -1.75rem;
  display: grid; place-items: center;
  width: 6.5rem; height: 6.5rem; border-radius: 50%;
  background: var(--c2-gold); color: var(--c2-aubergine);
  box-shadow: var(--c2-sh-3);
  font-family: var(--c2-font-mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; line-height: 1.3;
  transform: translate(calc(var(--c2-px, 0) * 14px), calc(var(--c2-py, 0) * 14px)) rotate(8deg);
  transition: transform 0.5s var(--c2-ease);
}
.c2-cert__float {
  position: absolute; left: clamp(-2rem, -3vw, -0.5rem); top: -1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--c2-r-pill);
  background: var(--c2-white); color: var(--c2-aubergine);
  box-shadow: var(--c2-sh-3);
  font-size: var(--c2-fs-small); font-weight: 700;
  transform: translate(calc(var(--c2-px, 0) * -18px), calc(var(--c2-py, 0) * -18px));
  transition: transform 0.5s var(--c2-ease);
}
.c2-cert__float svg { width: 1.25rem; height: 1.25rem; color: var(--c2-green-ink); }

/* --- 9.4 Trust / accreditation bar --------------------------------------- */
.c2-trust { padding-block: var(--c2-s-6); background: var(--c2-bg); border-bottom: 1px solid var(--c2-line); }
.c2-trust__inner { display: grid; gap: var(--c2-s-5); align-items: center; }
@media (min-width: 1024px) { .c2-trust__inner { grid-template-columns: minmax(14rem, 18rem) 1fr; } }
.c2-trust__label { font-size: var(--c2-fs-small); color: var(--c2-muted); }
.c2-trust__label strong { display: block; color: var(--c2-heading); font-size: 1rem; }
.c2-trust .c2-marks { justify-content: flex-start; }

/* --- 9.5 Process steps ---------------------------------------------------- */
.c2-steps { counter-reset: c2-step; display: grid; gap: var(--c2-s-5); position: relative; }
@media (min-width: 1024px) {
  .c2-steps { grid-template-columns: repeat(var(--c2-steps, 4), 1fr); gap: var(--c2-s-6); }
  /* the connecting line */
  .c2-steps::before {
    content: ""; position: absolute; top: 1.75rem; left: 1.75rem; right: 1.75rem;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--c2-line) 0 8px, transparent 8px 16px);
  }
}
.c2-step { position: relative; counter-increment: c2-step; }
.c2-step > * + * { margin-top: var(--c2-s-3); }
.c2-step::before {
  content: counter(c2-step, decimal-leading-zero);
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  margin-bottom: var(--c2-s-5);
  border-radius: 50%;
  background: var(--c2-bg);
  box-shadow: inset 0 0 0 2px var(--c2-accent);
  color: var(--c2-accent);
  font-family: var(--c2-font-mono); font-size: 1rem; font-weight: 600;
  transition: background-color var(--c2-t) var(--c2-ease), color var(--c2-t) var(--c2-ease);
}
.c2-step:hover::before { background: var(--c2-accent); color: var(--c2-bg); }
.c2-step__when { font-family: var(--c2-font-mono); font-size: var(--c2-fs-micro); color: var(--c2-muted); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 1023px) {
  .c2-step { padding-left: 5rem; min-height: 3.5rem; }
  .c2-step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .c2-step:not(:last-child)::after {
    content: ""; position: absolute; left: calc(1.75rem - 1px); top: 4rem; bottom: -1rem;
    width: 2px; background: var(--c2-line);
  }
}

/* --- 9.6 Split ------------------------------------------------------------ */
.c2-split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .c2-split { grid-template-columns: 1fr 1fr; }
  .c2-split--reverse > :first-child { order: 2; }
  .c2-split--wide-copy { grid-template-columns: 1.2fr 0.8fr; }
}
.c2-split__copy > * + * { margin-top: var(--c2-s-5); }

/* --- 9.7 Photo cards ------------------------------------------------------ */
.c2-photo-card { position: relative; display: block; color: var(--c2-white); text-decoration: none; }
.c2-photo-card .c2-media { aspect-ratio: 4 / 5; }
.c2-photo-card:hover .c2-media > img { transform: scale(1.05); }
.c2-photo-card__title { font-size: var(--c2-fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--c2-white); }
.c2-photo-card__meta { margin-top: var(--c2-s-2); font-size: var(--c2-fs-small); color: #e6dfee; }

/* --- 9.8 Comparison table ------------------------------------------------- */
.c2-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r);
  box-shadow: var(--c2-sh-1);
}
.c2-table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--c2-fs-small); }
.c2-table th, .c2-table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c2-line); }
.c2-table thead th { background: var(--c2-mist); color: var(--c2-heading); font-weight: 700; white-space: nowrap; }
.c2-table tbody th { color: var(--c2-heading); font-weight: 600; }
.c2-table tbody tr:last-child > * { border-bottom: 0; }
.c2-table .is-us { background: color-mix(in srgb, var(--c2-purple) 6%, white); }
.c2-table thead .is-us { background: var(--c2-purple); color: var(--c2-white); }
.c2-yes, .c2-no { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; }
.c2-yes { color: var(--c2-green-ink); }
.c2-no  { color: var(--c2-slate-muted); }
.c2-yes svg, .c2-no svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* --- 9.9 Stat band -------------------------------------------------------- */
.c2-stat-band { --c2-bg: var(--c2-aubergine); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
.c2-stats { display: grid; gap: var(--c2-s-6) var(--c2-s-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .c2-stats { grid-template-columns: repeat(4, 1fr); } }
.c2-stat { padding-left: var(--c2-s-5); border-left: 2px solid var(--c2-line); }
.c2-stat__value {
  display: block;
  color: var(--c2-accent);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.c2-stat__label { display: block; margin-top: var(--c2-s-3); font-size: var(--c2-fs-small); color: var(--c2-text); }

/* --- 9.10 Testimonials: a carousel, never a wall -------------------------- */
.c2-carousel { position: relative; }
.c2-carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(88%, 27rem);
  gap: var(--c2-s-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--c2-gutter);
  padding: var(--c2-s-2) var(--c2-gutter) var(--c2-s-6);
  margin-inline: calc(-1 * var(--c2-gutter));
  scrollbar-width: none;
}
.c2-carousel__track::-webkit-scrollbar { display: none; }
.c2-carousel__track > * { scroll-snap-align: start; }
.c2-carousel__nav { display: flex; gap: var(--c2-s-2); }
.c2-carousel__btn {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1.5px solid var(--c2-line); border-radius: 50%;
  background: transparent; color: var(--c2-heading);
  cursor: pointer;
  transition: background-color var(--c2-t-fast) var(--c2-ease), color var(--c2-t-fast) var(--c2-ease), border-color var(--c2-t-fast) var(--c2-ease);
}
.c2-carousel__btn:hover { background: var(--c2-heading); color: var(--c2-bg); border-color: var(--c2-heading); }
.c2-carousel__btn[disabled] { opacity: 0.35; pointer-events: none; }
.c2-carousel__btn svg { width: 1.25rem; height: 1.25rem; }

.c2-quote {
  display: flex; flex-direction: column; gap: var(--c2-s-5);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-shape-arc);
  box-shadow: var(--c2-sh-1);
}
.c2-quote__text {
  margin: 0;
  font-family: var(--c2-font-slab); font-weight: 300;
  font-size: 1.125rem; line-height: 1.6;
  color: var(--c2-heading);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7;
  overflow: hidden;
}
.c2-quote__by { margin-top: auto; display: flex; gap: var(--c2-s-3); align-items: center; font-size: var(--c2-fs-small); }
.c2-quote__by strong { display: block; color: var(--c2-heading); }
.c2-avatar {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c2-purple); color: var(--c2-white);
  font-weight: 700; font-size: 0.9375rem;
}
.c2-stars { display: flex; gap: 2px; color: #d99a00; }
.c2-stars svg { width: 1.1rem; height: 1.1rem; }

/* --- 9.11 Packages / routes ---------------------------------------------- */
.c2-tier {
  position: relative;
  display: flex; flex-direction: column; gap: var(--c2-s-4);
  padding: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r-lg);
  box-shadow: var(--c2-sh-1);
}
@supports (grid-template-rows: subgrid) {
  .c2-grid--aligned > .c2-tier { display: grid; grid-template-rows: subgrid; grid-row: span 5; gap: var(--c2-s-4); }
}
.c2-tier__price { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--c2-heading); }
.c2-tier__price small { font-size: 0.4em; font-weight: 500; letter-spacing: 0; color: var(--c2-muted); }
.c2-tier--featured {
  border-color: var(--c2-purple);
  box-shadow: 0 0 0 1px var(--c2-purple), var(--c2-sh-3);
}
.c2-tier__flag { position: absolute; top: -0.85rem; left: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }

/* --- 9.12 Call to action: band and inset panel ---------------------------- */
.c2-cta-band { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); isolation: isolate; }
.c2-cta-band::before, .c2-cta-panel::before {
  content: ""; position: absolute; z-index: -1;
  right: -8rem; top: 50%; translate: 0 -50%;
  width: 34rem; aspect-ratio: 1; border-radius: 50%;
  border: 5rem solid rgb(255 255 255 / 0.07);
}
.c2-cta__inner { display: grid; gap: var(--c2-s-5); align-items: center; }
@media (min-width: 900px) { .c2-cta__inner { grid-template-columns: 1fr auto; gap: var(--c2-s-8); } }
.c2-cta__inner > div > * + * { margin-top: var(--c2-s-4); }

.c2-cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  border-radius: var(--c2-shape-arc);
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(131 31 131 / 0.7) 0%, rgb(131 31 131 / 0) 60%),
    var(--c2-aubergine);
}

/* --- 9.13 Article cards --------------------------------------------------- */
.c2-article { position: relative; display: flex; flex-direction: column; gap: var(--c2-s-4); }
.c2-article .c2-media { aspect-ratio: 3 / 2; }
.c2-article:hover .c2-media > img { transform: scale(1.04); }
.c2-article__meta { display: flex; flex-wrap: wrap; gap: var(--c2-s-3); align-items: center; font-family: var(--c2-font-mono); font-size: var(--c2-fs-micro); color: var(--c2-muted); }
.c2-article__title { font-size: var(--c2-fs-h4); font-weight: 700; line-height: 1.3; color: var(--c2-heading); }
.c2-article__title a { color: inherit; text-decoration: none; }
.c2-article__title a::after { content: ""; position: absolute; inset: 0; }
.c2-article:hover .c2-article__title { color: var(--c2-accent); }

/* --- 9.14 FAQ ------------------------------------------------------------- */
.c2-faq { border-top: 1px solid var(--c2-line); }
.c2-faq__item { border-bottom: 1px solid var(--c2-line); }
.c2-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--c2-s-5);
  padding: var(--c2-s-5) 0;
  color: var(--c2-heading);
  font-size: var(--c2-fs-h4); font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.c2-faq__item summary::-webkit-details-marker { display: none; }
.c2-faq__item summary::after {
  content: ""; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background:
    var(--c2-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23831f83' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat;
  transition: transform var(--c2-t) var(--c2-ease);
}
.c2-faq__item[open] summary::after { transform: rotate(45deg); }
.c2-faq__body { padding: 0 3.5rem var(--c2-s-5) 0; }
/* On dark grounds the plus sits on a white disc so the purple stays legible. */
.c2-section--dark .c2-faq__item summary::after,
.c2-section--darker .c2-faq__item summary::after { background-color: var(--c2-white); }

/* --- 9.15 Verify panel (certificate / training certificate check) -------- */
.c2-panel {
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r-lg);
  box-shadow: var(--c2-sh-2);
}
.c2-verify { display: flex; gap: var(--c2-s-3); flex-wrap: wrap; }
.c2-verify .c2-input { flex: 1 1 14rem; font-family: var(--c2-font-mono); }
.c2-result {
  display: grid; grid-template-columns: auto 1fr; gap: var(--c2-s-4); align-items: start;
  margin-top: var(--c2-s-5); padding: var(--c2-s-5);
  border-radius: var(--c2-r);
  background: color-mix(in srgb, var(--c2-green-ink) 8%, white);
  border: 1px solid color-mix(in srgb, var(--c2-green-ink) 30%, white);
}
.c2-result svg { width: 2rem; height: 2rem; color: var(--c2-green-ink); }

/* --- 9.16 Course rows ----------------------------------------------------- */
.c2-course {
  display: grid; gap: var(--c2-s-4);
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: var(--c2-s-5);
  border: 1px solid var(--c2-line);
  border-radius: var(--c2-r);
  background: var(--c2-surface);
}
@media (min-width: 800px) { .c2-course { grid-template-columns: auto 1fr auto auto; gap: var(--c2-s-6); } }
.c2-course + .c2-course { margin-top: var(--c2-s-3); }
.c2-date {
  display: grid; place-items: center; align-content: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: var(--c2-r) var(--c2-r-lg) var(--c2-r) var(--c2-r);
  background: var(--c2-pillar); color: var(--c2-white);
  line-height: 1;
}
.c2-date b { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; }
.c2-date span { margin-top: 0.3em; font-family: var(--c2-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* --- 9.17 Footer ---------------------------------------------------------- */
.c2-footer { padding-block: var(--c2-section-y) var(--c2-s-6); font-size: var(--c2-fs-small); }
.c2-footer__grid { display: grid; gap: var(--c2-s-7) var(--c2-s-6); }
@media (min-width: 700px)  { .c2-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .c2-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.c2-footer__title { margin-bottom: var(--c2-s-4); font-family: var(--c2-font-mono); font-size: var(--c2-fs-micro); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c2-muted); }
.c2-footer__list li + li { margin-top: 0.6rem; }
.c2-footer a { color: var(--c2-heading); text-decoration: none; }
.c2-footer a:hover { color: var(--c2-accent); text-decoration: underline; }
.c2-footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--c2-s-3) var(--c2-s-5); justify-content: space-between;
  margin-top: var(--c2-s-8); padding-top: var(--c2-s-5);
  border-top: 1px solid var(--c2-line);
  font-size: var(--c2-fs-micro); color: var(--c2-muted);
}


/* ==========================================================================
   10  FORMS
   ========================================================================== */

.c2-form { padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem); border-radius: var(--c2-r-lg); border: 1px solid var(--c2-line); box-shadow: var(--c2-sh-2); }
.c2-form__grid { display: grid; gap: var(--c2-s-5); }
@media (min-width: 700px) { .c2-form__grid { grid-template-columns: 1fr 1fr; } .c2-field--full { grid-column: 1 / -1; } }

.c2-field { display: flex; flex-direction: column; gap: var(--c2-s-2); min-width: 0; border: 0; padding: 0; margin: 0; }
.c2-label, .c2-field > legend { color: var(--c2-heading); font-size: var(--c2-fs-small); font-weight: 700; padding: 0; }
.c2-label .c2-req { color: var(--c2-red-ink); }
.c2-hint  { font-size: var(--c2-fs-micro); color: var(--c2-muted); }
.c2-error { font-size: var(--c2-fs-micro); color: var(--c2-red-ink); font-weight: 600; }

.c2-input, .c2-select, .c2-textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid #b9b0c4;                 /* 3:1 boundary against white */
  border-radius: var(--c2-r-sm);
  background: var(--c2-white);
  color: var(--c2-aubergine);
  transition: border-color var(--c2-t-fast) var(--c2-ease), box-shadow var(--c2-t-fast) var(--c2-ease);
}
.c2-textarea { min-height: 8rem; resize: vertical; }
.c2-input::placeholder, .c2-textarea::placeholder { color: var(--c2-slate-muted); opacity: 1; }
.c2-input:hover, .c2-select:hover, .c2-textarea:hover { border-color: var(--c2-slate); }
.c2-input:focus, .c2-select:focus, .c2-textarea:focus {
  outline: none;
  border-color: var(--c2-purple);
  box-shadow: 0 0 0 4px rgb(131 31 131 / 0.18);
}
.c2-input[aria-invalid="true"] { border-color: var(--c2-red-ink); }
.c2-select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23312043' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem;
}

/* Choice chips: the standards picker on the quote form. */
.c2-choices { display: flex; flex-wrap: wrap; gap: var(--c2-s-2); }
.c2-choice { position: relative; }
.c2-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.c2-choice span {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.5em 1em;
  border: 1.5px solid #b9b0c4;
  border-radius: var(--c2-r-pill);
  background: var(--c2-white); color: var(--c2-aubergine);
  font-size: var(--c2-fs-small); font-weight: 600;
  transition: background-color var(--c2-t-fast) var(--c2-ease), border-color var(--c2-t-fast) var(--c2-ease), color var(--c2-t-fast) var(--c2-ease);
}
.c2-choice span::before {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  background: center / 100% no-repeat;
}
.c2-choice input:hover + span { border-color: var(--c2-purple); }
.c2-choice input:checked + span { background: var(--c2-purple); border-color: var(--c2-purple); color: var(--c2-white); }
.c2-choice input:checked + span::before {
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.c2-choice input:focus-visible + span { outline: 3px solid var(--c2-focus); outline-offset: 3px; }

/* Step indicator for the multi-step quote form. */
.c2-progress { display: flex; gap: var(--c2-s-2); margin-bottom: var(--c2-s-6); }
.c2-progress__step { flex: 1; padding-top: var(--c2-s-3); border-top: 3px solid var(--c2-line); font-family: var(--c2-font-mono); font-size: var(--c2-fs-micro); color: var(--c2-muted); }
.c2-progress__step.is-done, .c2-progress__step.is-current { border-color: var(--c2-purple); color: var(--c2-heading); }
.c2-progress__step.is-current { font-weight: 600; }


/* ==========================================================================
   11  UTILITIES
   ========================================================================== */

.c2-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.c2-center   { text-align: center; }
.c2-mt-0     { margin-top: 0 !important; }
.c2-mt-4     { margin-top: var(--c2-s-4); }
.c2-mt-5     { margin-top: var(--c2-s-5); }
.c2-mt-6     { margin-top: var(--c2-s-6); }
.c2-mt-7     { margin-top: var(--c2-s-7); }
.c2-measure  { max-width: var(--c2-measure); }
.c2-nowrap   { white-space: nowrap; }
.c2-divider  { height: 1px; border: 0; background: var(--c2-line); margin: var(--c2-s-6) 0; }


/* ==========================================================================
   12  MOTION
   Three layers, each separable.
     1 Confirm      hover and focus. In the components above.
     2 Choreograph  reveal on entry, count-up, header condense.
     3 Ambience     orbit, drifting light, pointer tilt, cursor blob.
   Layers 2 and 3 are switched on by 3core2-motion.js, which adds .c2-js to
   <html>. Without it the page is complete and static.
   Turn a layer off with data-c2-motion="1" or "2" on <html>.
   ========================================================================== */

/* --- Layer 2: reveal ------------------------------------------------------ */
.c2-js [data-c2-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--c2-t-slow) var(--c2-ease),
    transform var(--c2-t-slow) var(--c2-ease);
  transition-delay: calc(var(--c2-i, 0) * 80ms);
}
.c2-js [data-c2-reveal="left"]  { transform: translateX(-28px); }
.c2-js [data-c2-reveal="right"] { transform: translateX(28px); }
.c2-js [data-c2-reveal="scale"] { transform: scale(0.94); }
.c2-js [data-c2-reveal].is-in   { opacity: 1; transform: none; }

/* Steps: the ring fills as each step arrives. */
.c2-js .c2-step[data-c2-reveal]::before { transition-delay: calc(var(--c2-i, 0) * 80ms + 200ms); }

/* --- Layer 3: ambience ---------------------------------------------------- */
@keyframes c2-turn     { to { transform: rotate(360deg); } }
@keyframes c2-turn-rev { to { transform: rotate(-360deg); } }
@keyframes c2-float    { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.c2-js .c2-orbit__ring--1 { animation: c2-turn 90s linear infinite; }
.c2-js .c2-orbit__ring--2 { animation: c2-turn-rev 130s linear infinite; }
.c2-js .c2-orbit__ring--3 { animation: c2-turn 180s linear infinite; }
.c2-js .c2-cert__float    { animation: c2-float 7s ease-in-out infinite; }

/* Cursor blob. A solid drop of brand purple that trails the pointer, slowly
   changes shape, and swells over anything clickable. Exists only on a fine
   pointer; created by the script. The pale halo keeps it visible on dark. */
@keyframes c2-blob {
  0%, 100% { border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%; }
  33%      { border-radius: 44% 56% 60% 40% / 57% 42% 58% 43%; }
  66%      { border-radius: 53% 47% 40% 60% / 42% 60% 40% 58%; }
}
.c2-cursor {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 1.125rem; height: 1.125rem; margin: -0.5625rem 0 0 -0.5625rem;
  background: var(--c2-purple);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.55);
  border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--c2-cx, -100px), var(--c2-cy, -100px)) scale(var(--c2-cs, 1));
  transition: transform 0.32s var(--c2-ease), opacity var(--c2-t) var(--c2-ease);
  animation: c2-blob 6s ease-in-out infinite;
}
.c2-cursor.is-on     { opacity: 1; }
/* Over a control it grows and thins, so the label beneath stays readable. */
.c2-cursor.is-active { --c2-cs: 2.8; opacity: 0.32; }

html[data-c2-motion="1"] .c2-cursor,
html[data-c2-motion="2"] .c2-cursor { display: none; }
html[data-c2-motion="1"] [data-c2-reveal] { opacity: 1 !important; transform: none !important; }
html[data-c2-motion="1"] .c2-orbit__ring,
html[data-c2-motion="2"] .c2-orbit__ring,
html[data-c2-motion="1"] .c2-cert__float,
html[data-c2-motion="2"] .c2-cert__float { animation: none !important; }

/* Everything decorative is inert when the visitor asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .c2-js [data-c2-reveal] { opacity: 1; transform: none; }
  .c2-cursor { display: none; }
  .c2-cert, .c2-cert__seal, .c2-cert__float { transform: none; }
}

@media print {
  .c2-header, .c2-topbar, .c2-cursor, .c2-orbit, .c2-hero__glow { display: none !important; }
  .c2-js [data-c2-reveal] { opacity: 1; transform: none; }
}
