/* CERTA& Advisory — Design tokens from DESIGN.md */
:root {
  --certa-green: #00904C;
  --certa-green-deep: #00753E;
  --certa-green-tint: #E4F3EA;
  --signal-coral: #ED1C25;
  --signal-coral-deep: #B8232A;
  --ink: #231F20;
  --ink-muted: #55565A;
  --surface-tint: #F6F9F7;
  --border: #E3E5E4;
  --white: #FFFFFF;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --space-2xl: 140px;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-hover: 0 8px 20px rgba(35, 31, 32, 0.12);
  --reveal-duration: 700ms;

  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.is-loading, html.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button { -webkit-tap-highlight-color: transparent; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 1120px;
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
p.prose { max-width: 68ch; text-wrap: pretty; }

a { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.certa-mark-use { display: block; height: auto; }

.eyebrow-free { /* marker: this project intentionally has no eyebrow kickers, see DESIGN.md Don'ts */ }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Default: fully visible. Only html.js (set by script.js) arms the hidden pre-reveal state,
   so no-JS and reduced-motion users always see content — see DESIGN.md Motion. */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-duration) var(--ease-standard),
    transform var(--reveal-duration) var(--ease-standard);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Parallax + idle float ---------- */
/* Both driven by one rAF loop in script.js so they compose on the same element instead
   of fighting over `transform` (a CSS animation and a JS-set inline transform on the
   same property would otherwise override each other every frame). */
[data-parallax], [data-float] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-parallax], [data-float] { transform: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard),
    transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.btn:focus-visible { outline: 2px solid var(--certa-green); outline-offset: 2px; }

.btn-primary { background: var(--certa-green-deep); color: var(--white); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-coral { background: var(--signal-coral-deep); color: var(--white); }
.btn-coral:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-tint); }

.btn-ghost-onlight { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost-onlight:hover { background: rgba(255,255,255,0.1); }

.magnetic-cta { display: inline-block; transition: transform 200ms var(--ease-standard); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 950ms var(--ease-standard), visibility 0s linear 0s;
}
/* The ring mark literally opens the door: it grows first — a generous, welcoming swell —
   then the panel's clip-path irises down through it to reveal the homepage, rather than
   just fading flat. Inner grows on a shorter timer so the "welcome" gesture reads clearly
   before the iris close takes over. */
.preloader.is-hidden {
  clip-path: circle(0% at 50% 50%);
  visibility: hidden;
  transition: clip-path 950ms var(--ease-standard), visibility 0s linear 950ms;
}
.preloader__inner {
  transition: transform 600ms var(--ease-standard);
}
.preloader.is-hidden .preloader__inner {
  transform: scale(2.6);
}
.preloader__mark { width: 100px; height: 100px; }
.preloader__mark .certa-mark__ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 600ms var(--ease-standard);
}
.preloader__mark .certa-mark__dash {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 88px 50px;
  transition: opacity 150ms var(--ease-standard) 650ms, transform 150ms var(--ease-standard) 650ms;
}
.preloader__mark.is-drawing .certa-mark__ring { stroke-dashoffset: 0; }
.preloader__mark.is-drawing .certa-mark__dash { opacity: 1; transform: scale(1); }
.preloader__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .preloader { clip-path: none !important; transition: opacity 200ms linear; }
  .preloader.is-hidden { opacity: 0; }
  .preloader__inner { transition: none; }
  .preloader.is-hidden .preloader__inner { transform: none; }
  .preloader__mark .certa-mark__ring { stroke-dashoffset: 0; transition: none; }
  .preloader__mark .certa-mark__dash { opacity: 1; transform: scale(1); transition: none; }
}

/* ---------- Header ---------- */
/* Floats transparently over the full-height hero on load, like defyelement.com's
   opening screen; gains a solid backdrop once scrolled past the hero (.is-scrolled,
   toggled by script.js) so it stays legible over ordinary section content. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 220ms var(--ease-standard), border-color 220ms var(--ease-standard),
    backdrop-filter 220ms var(--ease-standard);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--certa-green);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 100ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .nav-progress { transition: none; }
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  gap: var(--space-md);
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 6px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--certa-green-deep);
  transition: right 150ms var(--ease-standard);
}
.primary-nav a:hover { color: var(--certa-green-deep); }
.primary-nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- By the numbers ---------- */
.section.stats-band { padding: var(--space-lg) 0; }
.stats-band__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  justify-content: space-between;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.stat-item__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--certa-green-deep);
  font-variant-numeric: tabular-nums;
}
.stat-item__label { font-size: 0.8125rem; color: var(--ink-muted); max-width: 16ch; }
.stat-item__flourish {
  position: absolute;
  top: -6px;
  right: -34px;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms var(--ease-standard), transform 400ms var(--ease-standard);
}
.stat-item__flourish .certa-mark__ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 500ms var(--ease-standard) 200ms;
}
.stats-band__row.is-visible .stat-item__flourish { opacity: 1; transform: scale(1); }
.stats-band__row.is-visible .stat-item__flourish .certa-mark__ring { stroke-dashoffset: 0; }

@media (max-width: 640px) {
  .stats-band__row { gap: var(--space-md); }
  .stat-item__flourish { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-xl) + 56px) 0 var(--space-xl);
}
.hero__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__decor .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--certa-green);
  opacity: 0.14;
}
.hero__decor .ring--one { width: 640px; height: 640px; top: -220px; right: -180px; }
.hero__decor .ring--two { width: 420px; height: 420px; bottom: -160px; left: -140px; border-color: var(--signal-coral); opacity: 0.12; }
.hero__decor .ring--three { width: 220px; height: 220px; bottom: 18%; right: 8%; opacity: 0.16; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.hero h1 span[data-reveal] { display: block; }
.hero h1 .accent { color: var(--certa-green-deep); }
.hero p.lede {
  margin-top: var(--space-md);
  font-size: 1.1875rem;
  color: var(--ink-muted);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.hero__markets {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.hero__markets strong { color: var(--ink); }
.market-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.market-tag {
  background: var(--certa-green-tint);
  color: var(--certa-green-deep);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Credential strip ---------- */
.credential-strip {
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.credential-strip__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  flex: none;
}
.credential-chips { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.credential-chip {
  display: inline-block;
  background: var(--surface-tint);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.credential-logo {
  display: inline-flex;
  align-items: center;
  height: 22px;
}
.credential-logo svg {
  height: 100%;
  width: auto;
  fill: var(--ink);
  opacity: 0.5;
  transition: opacity 200ms var(--ease-standard);
}
.credential-logo:hover svg { opacity: 1; }

/* ---------- World clock (UK / BD live time) ---------- */
.world-clock {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}
.world-clock__caption {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}
.world-clock__row { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.world-clock__card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  transition: background 400ms var(--ease-standard);
}
.world-clock__card.is-night { background: var(--surface-tint); }
.world-clock__face { width: 56px; height: 56px; flex: none; }
.world-clock__ring { fill: none; stroke: var(--certa-green); stroke-width: 5; }
.world-clock__hand {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 50px 50px;
  transition: transform 200ms var(--ease-standard);
}
.world-clock__hand--minute { stroke: var(--signal-coral); stroke-width: 3; }
.world-clock__hand--second { stroke: var(--signal-coral); stroke-width: 1.25; opacity: 0.8; }
.world-clock__pivot { fill: var(--ink); }
.world-clock__info { display: flex; flex-direction: column; gap: 2px; }
.world-clock__city { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); }
.world-clock__time {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.world-clock__status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.world-clock__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.world-clock__status.is-open .dot { background: var(--certa-green); }
.world-clock__status.is-open { color: var(--certa-green-deep); }

@media (prefers-reduced-motion: reduce) {
  .world-clock__hand { transition: none; }
  .world-clock__card { transition: none; }
}

@media (max-width: 560px) {
  .world-clock__row { flex-direction: column; }
}

.hero__mark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mark svg {
  width: min(360px, 82%);
  height: auto;
  position: relative;
  z-index: 1;
}
.hero__mark::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle at 38% 32%, var(--certa-green-tint), var(--surface-tint) 72%);
  border-radius: 50%;
  z-index: 0;
}

/* ---------- Section shell ---------- */
.section { padding: var(--space-xl) 0; scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px)); }
.section--tint { background: var(--surface-tint); }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-lg);
}
.section__head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__head p { color: var(--ink-muted); max-width: 46ch; }

/* ---------- Services (rows, not identical card grid) ---------- */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1.1fr 1.4fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  transition: background 200ms var(--ease-standard);
}
.service-row:hover { background: var(--surface-tint); }
.service-row__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--certa-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row__mark svg { width: 20px; height: 20px; stroke: var(--certa-green-deep); }
.service-row h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.service-row p { color: var(--ink-muted); max-width: 56ch; }
.service-row--featured {
  background: var(--ink);
  border-radius: var(--radius-lg);
  border-bottom: none;
  padding: var(--space-lg) var(--space-lg);
  margin-bottom: var(--space-sm);
}
.service-row--featured h3, .service-row--featured p { color: var(--white); }
.service-row--featured p { color: rgba(255,255,255,0.75); }
.service-row--featured .service-row__mark { background: rgba(255,255,255,0.12); }
.service-row--featured .service-row__mark svg { stroke: var(--white); }
.service-row--featured:hover { background: var(--ink); }

/* ---------- Avatar badge (Team rows reuse .service-row) ---------- */
.avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--certa-green-tint);
  color: var(--certa-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
}
.service-row--featured .avatar-badge { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- Process (earned sequence) ---------- */
.process-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.process-stat { display: flex; flex-direction: column; gap: 4px; }
.process-stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--certa-green-deep);
  font-variant-numeric: tabular-nums;
}
.process-stat__label { font-size: 0.875rem; color: var(--ink-muted); }

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.process-line { display: none; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--border); z-index: 1; }
.process-line__fill { position: absolute; inset: 0; background: var(--certa-green); transform-origin: left; transform: scaleX(0); }

@media (min-width: 861px) and (hover: hover) {
  .process-line { display: block; }
  html.js .process-step { border-top-color: transparent; }
}
.process-step {
  position: relative;
  padding-top: var(--space-md);
  border-top: 2px solid var(--border);
}
.process-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--certa-green);
  display: block;
  margin-bottom: var(--space-sm);
}
.process-step.is-active .process-step__num,
.process-step.is-active h3 { color: var(--certa-green-deep); }
.process-step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { color: var(--ink-muted); font-size: 0.9375rem; }

/* ---------- In-house vs CERTA& comparison ---------- */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.9375rem;
}
.comparison-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-sm);
}
.comparison-table thead th:last-child { color: var(--certa-green-deep); }
.comparison-table tbody th[scope="row"] {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  width: 18%;
  white-space: nowrap;
}
.comparison-table tbody td:first-of-type { color: var(--ink-muted); }
.comparison-table tbody td:last-child {
  border-left: 2px solid var(--certa-green-tint);
  color: var(--ink);
}
.comparison-table tbody tr:nth-child(even) { background: var(--white); }
.comparison-table tbody tr:nth-child(odd) { background: var(--surface-tint); }

/* ---------- Why Choose CERTA& ---------- */
.why-us { position: relative; overflow: hidden; }
.why-us__head { max-width: 620px; margin: 0 auto var(--space-2xl); text-align: center; }
.why-us__head h2 {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.why-us__head p { color: var(--ink-muted); margin-top: var(--space-sm); }

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px) 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.why-us__col { display: grid; gap: var(--space-lg); }
.why-us__item { display: flex; gap: var(--space-md); }
.why-us__item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.why-us__icon {
  width: 22px;
  height: 22px;
  stroke: var(--certa-green);
  flex: none;
}
.why-us__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--certa-green);
}
.why-us__item h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.why-us__item p { color: var(--ink-muted); font-size: 0.9375rem; }

.why-us__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-us__blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--certa-green-tint), var(--surface-tint) 72%);
}
.why-us__ring-outline {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
}
.why-us__mark {
  position: relative;
  z-index: 1;
  width: 46%;
}
.why-us__floater {
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.why-us__floater .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--certa-green); flex: none; }
.why-us__floater--top { top: 4%; right: 2%; }
.why-us__floater--bottom { bottom: 8%; left: -4%; }

/* ---------- Confidentiality & Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.security-card__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--certa-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.security-card__mark svg { width: 20px; height: 20px; stroke: var(--certa-green-deep); }
.security-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.security-card p { color: var(--ink-muted); font-size: 0.9375rem; }
.security-card__mark svg * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 500ms var(--ease-standard);
}
.security-card__mark svg *:nth-child(2) { transition-delay: 120ms; }
.security-card__mark svg *:nth-child(3) { transition-delay: 240ms; }
.security-card__mark svg *:nth-child(4) { transition-delay: 360ms; }
.security-card.is-visible .security-card__mark svg * { stroke-dashoffset: 0; }

/* ---------- Our Clients ---------- */
.clients-band { background: var(--ink); }
.clients-band .section__head h2 { color: var(--white); }
.clients-band .section__head p { color: rgba(255, 255, 255, 0.68); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
}
.client-profile h3 { color: var(--white); font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.client-profile p { color: rgba(255, 255, 255, 0.68); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */
.faq-head { max-width: 640px; margin-bottom: var(--space-lg); }
.faq-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.faq-head p { color: var(--ink-muted); margin-top: var(--space-sm); max-width: 56ch; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: var(--space-lg) 0; }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--certa-green-deep);
  flex: none;
  transition: transform 200ms var(--ease-standard);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-muted); margin-top: var(--space-sm); max-width: 62ch; }
.faq-item summary:focus-visible { outline: 2px solid var(--certa-green); outline-offset: 4px; }

/* ---------- Table/FAQ hover polish ---------- */
.comparison-table tbody tr { transition: background 200ms var(--ease-standard); }
.comparison-table tbody tr:hover { background: var(--certa-green-tint); }
.faq-item { transition: background 200ms var(--ease-standard); }
.faq-item:hover { background: var(--certa-green-tint); }

/* ---------- Careers ---------- */
.careers-jobs { display: flex; flex-direction: column; margin-top: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.careers-job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--space-sm);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 200ms var(--ease-standard);
}
.careers-job:last-child { border-bottom: none; }
.careers-job:hover { background: var(--certa-green-tint); }
.careers-job:focus-visible { outline: 2px solid var(--certa-green); outline-offset: -2px; }
.careers-job__title { font-weight: 600; }
.careers-job__meta { font-size: 0.8125rem; color: var(--ink-muted); }
.careers-job__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--certa-green-deep);
}
.careers-job__cta span { display: inline-block; transition: transform 150ms var(--ease-standard); }
.careers-job:hover .careers-job__cta span { transform: translate(2px, -2px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: var(--space-sm); max-width: 50ch; }
.cta-band__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: flex-start; }
.cta-band__contact { flex-basis: 100%; display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xs); }
.cta-band__phone, .cta-band__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 200ms var(--ease-standard);
}
.cta-band__phone:hover, .cta-band__whatsapp:hover { color: var(--white); }
.cta-band__phone svg, .cta-band__whatsapp svg { width: 18px; height: 18px; flex: none; }
.cta-mark { width: 32px; height: 32px; margin-top: var(--space-sm); }
.cta-mark .certa-mark__ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 600ms var(--ease-standard);
}
.cta-mark .certa-mark__dash {
  opacity: 0;
  transition: opacity 200ms var(--ease-standard) 550ms;
}
.cta-band.is-visible .cta-mark .certa-mark__ring { stroke-dashoffset: 0; }
.cta-band.is-visible .cta-mark .certa-mark__dash { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer__brand img { height: 30px; margin-bottom: var(--space-sm); }
.footer__brand p { font-size: 0.9375rem; max-width: 32ch; }
.site-footer h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--white); }
.site-footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.6; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { min-height: 100svh; padding: calc(var(--space-xl) + 40px) 0 var(--space-lg); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark svg { width: min(220px, 60%); }
  .hero__decor .ring--one { width: 380px; height: 380px; }
  .hero__decor .ring--two { width: 260px; height: 260px; }
  .section__head { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 44px 1fr; }
  .service-row > p { grid-column: 2; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__visual { order: -1; max-width: 260px; margin: 0 auto var(--space-md); }
  .why-us__head { margin-bottom: var(--space-xl); }
  .security-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .cta-band { grid-template-columns: 1fr; text-align: left; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .header-cta .btn-primary { display: none; }
}

/* Short landscape phones: a forced full-height hero would clip content here, so
   let it size to its content instead. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: calc(var(--space-xl) + 8px) 0 var(--space-md); }
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(var(--space-md) + env(safe-area-inset-top, 0px)) calc(var(--space-md) + env(safe-area-inset-right, 0px))
    calc(var(--space-md) + env(safe-area-inset-bottom, 0px)) calc(var(--space-md) + env(safe-area-inset-left, 0px));
  transform: translateX(100%);
  transition: transform 260ms var(--ease-standard);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__links { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-md); }
.mobile-nav__links a { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; text-decoration: none; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
  .faq-item summary::after { transition: none; }
  .stat-item__flourish, .stat-item__flourish .certa-mark__ring { transition: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .process-line__fill { transform: scaleX(1) !important; }
  .security-card__mark svg * { transition: none; stroke-dashoffset: 0; }
  .cta-mark .certa-mark__ring, .cta-mark .certa-mark__dash { transition: none; stroke-dashoffset: 0; opacity: 1; }
}

/* ---------- Study Abroad ---------- */
.sa-hero { position: relative; overflow: hidden; padding-top: var(--space-xl); text-align: center; }
.sa-hero__decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sa-hero__glow {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--certa-green-tint) 0%, transparent 70%);
  animation: sa-glow-pulse 8s ease-in-out infinite;
}
@keyframes sa-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
}
.sa-hero__ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--certa-green); opacity: 0.14; }
.sa-hero__ring--one { width: 360px; height: 360px; top: -140px; right: -100px; }
.sa-hero__ring--two { width: 240px; height: 240px; bottom: -100px; left: -80px; border-color: var(--signal-coral); opacity: 0.12; }
.sa-hero__icon { position: absolute; width: 40px; height: 40px; opacity: 0.4; }
.sa-hero__icon--plane { top: 14%; right: 14%; width: 34px; stroke: var(--signal-coral); }
.sa-hero__icon--cap { top: 40%; left: 7%; stroke: var(--certa-green); }
.sa-hero__icon--shield { bottom: 12%; right: 22%; width: 28px; stroke: var(--certa-green-deep); }
@media (max-width: 780px) {
  .sa-hero__icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-hero__glow { animation: none; }
}
.sa-hero__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.sa-hero__flag {
  display: block;
  width: 240px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 0 auto var(--space-lg);
}
@media (max-width: 480px) {
  .sa-hero__flag { width: 180px; height: 112px; }
}
.sa-hero__inner h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.sa-hero__inner .lede { margin-top: var(--space-md); color: var(--ink-muted); font-size: 1.125rem; }
.sa-hero__inner .btn { margin-top: var(--space-lg); }
.sa-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.sa-why__facts { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); }
.sa-why__facts li { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-sm); border-top: 2px solid var(--border); }
.sa-why__facts strong { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; }
.sa-why__facts span { color: var(--ink-muted); font-size: 0.875rem; }
.sa-why__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.sa-why__gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-lg); transition: transform 300ms var(--ease-standard); }
.sa-why__gallery img:hover { transform: scale(1.03); }
@media (max-width: 900px) {
  .sa-why__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sa-why__gallery { grid-template-columns: repeat(2, 1fr); }
  .sa-why__gallery img { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-why__gallery img:hover { transform: none; }
}

.accent-coral { color: var(--signal-coral-deep); }

.sa-req { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); margin-top: var(--space-lg); }
.sa-req__item { border-left: 1px solid var(--border); padding: var(--space-md) var(--space-md) 0; }
.sa-req__item:first-child { border-left: none; }
.sa-req__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
}
.sa-req__icon { display: flex; }
.sa-req__icon svg { width: 30px; height: 30px; stroke: var(--ink-muted); transition: stroke 200ms var(--ease-standard); }
.sa-req__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-muted);
  transition: color 200ms var(--ease-standard);
}
.sa-req__panel {
  border-left: 3px solid var(--signal-coral-deep);
  padding: 0 0 var(--space-lg) var(--space-md);
  margin-left: -1px;
}
.sa-req__panel p { color: var(--ink-muted); font-size: 0.875rem; margin-bottom: var(--space-sm); max-width: 30ch; }
.sa-req__panel img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-md); }
.sa-req__head:focus-visible { outline: 2px solid var(--certa-green); outline-offset: 4px; }

/* Touch/no-hover fallback: every level's requirement is just shown, nothing to trigger */
.sa-req__icon svg { stroke: var(--signal-coral-deep); }
.sa-req__label { color: var(--ink); }

/* Mouse-driven reveal: only the hovered (or, at rest, the first) level's panel shows */
@media (hover: hover) and (pointer: fine) {
  .sa-req__icon svg { stroke: var(--ink-muted); }
  .sa-req__label { color: var(--ink-muted); }
  .sa-req__panel { display: none; }
  .sa-req:not(:has(.sa-req__item:hover, .sa-req__head:focus-visible)) .sa-req__item:first-child .sa-req__panel { display: block; }
  .sa-req:not(:has(.sa-req__item:hover, .sa-req__head:focus-visible)) .sa-req__item:first-child .sa-req__icon svg { stroke: var(--signal-coral-deep); }
  .sa-req:not(:has(.sa-req__item:hover, .sa-req__head:focus-visible)) .sa-req__item:first-child .sa-req__label { color: var(--ink); }
  .sa-req__item:hover .sa-req__panel,
  .sa-req__item:has(.sa-req__head:focus-visible) .sa-req__panel { display: block; }
  .sa-req__item:hover .sa-req__icon svg,
  .sa-req__item:has(.sa-req__head:focus-visible) .sa-req__icon svg { stroke: var(--signal-coral-deep); }
  .sa-req__item:hover .sa-req__label,
  .sa-req__item:has(.sa-req__head:focus-visible) .sa-req__label { color: var(--ink); }
}
@media (max-width: 900px) {
  .sa-req { grid-template-columns: 1fr; }
  .sa-req__item { border-left: none; border-top: 1px solid var(--border); padding: var(--space-md) 0 0; }
  .sa-req__item:first-child { border-top: none; }
  .sa-req__panel p { max-width: none; }
}

.sa-subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.sa-subject-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.sa-subject-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-standard); }
.sa-subject-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0) 75%);
}
.sa-subject-card__label {
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
}
.sa-subject-card:hover img { transform: scale(1.06); }
@media (max-width: 780px) {
  .sa-subjects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sa-subjects-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-subject-card:hover img { transform: none; }
}

.sa-process { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; margin-top: var(--space-lg); }
.sa-process__steps { display: flex; flex-direction: column; gap: var(--space-sm); }
.sa-process__step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 200ms var(--ease-standard), transform 200ms var(--ease-standard);
}
.sa-process__step:hover { border-color: var(--certa-green); transform: translateX(4px); }
.sa-process__num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-process__step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.sa-process__step p { color: var(--ink-muted); font-size: 0.9375rem; }
.sa-process__visual img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 900px) {
  .sa-process { grid-template-columns: 1fr; }
  .sa-process__visual { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-process__step:hover { transform: none; }
}

.sa-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.sa-service-card {
  padding-top: var(--space-md);
  border-top: 2px solid var(--border);
  transition: transform 220ms var(--ease-standard), border-color 220ms var(--ease-standard);
}
.sa-service-card:hover { transform: translateY(-4px); border-top-color: var(--certa-green); }
.sa-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--certa-green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: background 220ms var(--ease-standard), transform 220ms var(--ease-standard);
}
.sa-service-card__icon svg { width: 22px; height: 22px; stroke: var(--certa-green-deep); transition: stroke 220ms var(--ease-standard); }
.sa-service-card:hover .sa-service-card__icon { background: var(--certa-green-deep); transform: rotate(-6deg) scale(1.08); }
.sa-service-card:hover .sa-service-card__icon svg { stroke: var(--white); }
.sa-service-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.sa-service-card p { color: var(--ink-muted); font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) {
  .sa-service-card:hover { transform: none; }
  .sa-service-card:hover .sa-service-card__icon { transform: none; }
}

.sa-emgs__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.sa-emgs__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--certa-green-tint);
  color: var(--certa-green-deep);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.sa-emgs__badge svg { width: 16px; height: 16px; stroke: var(--certa-green-deep); flex: none; }
.sa-emgs__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.sa-emgs__logo { margin: 0 auto var(--space-md); }
.sa-emgs__inner h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: var(--space-sm); }

.sa-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md) 4px var(--space-lg);
  margin-bottom: var(--space-lg);
}
.sa-rail__avatar { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.sa-rail__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 108px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--white);
  transition: border-color 200ms var(--ease-standard), transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.sa-rail__avatar:hover .sa-rail__mark,
.sa-rail__avatar:focus-visible .sa-rail__mark {
  border-color: var(--certa-green);
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-hover);
}
@media (prefers-reduced-motion: reduce) {
  .sa-rail__avatar:hover .sa-rail__mark,
  .sa-rail__avatar:focus-visible .sa-rail__mark { transform: none; }
}
.sa-rail__name { font-size: 0.75rem; font-weight: 600; max-width: 110px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sa-uni-group { margin-top: var(--space-xl); }
.sa-uni-group:first-of-type { margin-top: 0; }
.sa-uni-group__label { font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--space-md); }
.sa-uni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.sa-uni-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  scroll-margin-top: 100px;
  transition: transform 250ms var(--ease-standard), box-shadow 300ms var(--ease-standard), border-color 300ms var(--ease-standard);
}
.sa-uni-card:hover {
  transform: translateY(-6px);
  border-color: var(--certa-green);
  box-shadow: var(--shadow-hover);
}
.sa-uni-card__logo { display: block; margin: 0 auto var(--space-sm); transition: transform 250ms var(--ease-standard); }
.sa-uni-card:hover .sa-uni-card__logo { transform: scale(1.06); }
.sa-uni-card h4 { font-size: 1.0625rem; font-weight: 600; }
.sa-uni-card__location { font-size: 0.8125rem; color: var(--ink-muted); margin-top: 2px; }
.sa-uni-card__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: var(--space-sm);
}
.sa-uni-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--uni-accent, var(--signal-coral-deep)) 14%, white);
  color: var(--uni-accent, var(--signal-coral-deep));
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard), transform 200ms var(--ease-standard);
}
.sa-uni-card__stat svg { width: 12px; height: 12px; stroke: currentColor; flex: none; }
.sa-uni-card:hover .sa-uni-card__stat {
  background: var(--uni-accent, var(--signal-coral-deep));
  color: var(--white);
}
.sa-uni-card__stat:hover { transform: translateY(-2px); }
.sa-uni-group__note { font-size: 0.8125rem; color: var(--ink-muted); margin-top: -8px; margin-bottom: var(--space-md); }
@media (prefers-reduced-motion: reduce) {
  .sa-uni-card:hover,
  .sa-uni-card:hover .sa-uni-card__logo,
  .sa-uni-card__stat:hover { transform: none; }
}
.sa-uni-card p:last-child { color: var(--ink-muted); font-size: 0.9375rem; }
.sa-uni-card--highlight { border-color: var(--certa-green); animation: sa-uni-pulse 1.4s var(--ease-standard); }
@keyframes sa-uni-pulse {
  0% { box-shadow: 0 0 0 0 var(--certa-green-tint); }
  70% { box-shadow: 0 0 0 14px rgba(0, 144, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 144, 76, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .sa-uni-card--highlight { animation: none; box-shadow: 0 0 0 3px var(--certa-green-tint); }
}
.sa-rail__mark img { max-height: 76px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
img.sa-uni-card__logo, img.sa-emgs__logo { object-fit: contain; }
img.sa-uni-card__logo { height: 100px; width: auto; max-width: 100%; }
img.sa-emgs__logo { max-width: 380px; max-height: 160px; }
