/* e86 Limited, corporate direction.
   Tokens are in :root. Change the look here only.
   Plain CSS. No animation library. Motion is limited to one short reveal and hover states. */

:root {
  --ink: #14171c;          /* text and dark sections, graphite */
  --graphite: #2b3038;     /* secondary dark text */
  --muted: #5a626e;        /* secondary text, 6.2:1 on white */
  --white: #ffffff;
  --surface: #f4f5f7;      /* silver-light background */
  --line: #dce0e6;         /* hairline borders */
  --field: #6b7280;        /* input borders, 4.8:1 on white */
  --accent: #546578;;       /* the one accent colour, 6.7:1 on white */
  --accent-hover: #5a626e;
  --on-dark-muted: #c5cbd3;
  --on-dark-accent: #9db8ff;
  --warn-bg: #fff7e0;
  --warn-line: #e8c767;
  --warn-ink: #5c4500;
  --error: #b42318;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 8px;
  --max: 1200px;
  --gutter: 20px;
  --section-y: 88px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Draft banner */

.draft-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  padding-block: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Dark graphite with a soft spotlight behind the logo, so the chrome mark reads clearly. */
  background: radial-gradient(ellipse 60% 140% at 10% 50%, #3b4350 0%, var(--ink) 70%);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Focus rings need contrast on the dark header. */
.site-header :focus-visible {
  outline-color: var(--on-dark-accent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
}

.brand img {
  width: auto;
  height: 48px;
  /* Faint light halo so the silver edges catch the light on the dark header. */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.nav-toggle {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 8px var(--gutter) 24px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav a[aria-current="true"] {
  color: var(--on-dark-accent);
}

.nav-actions {
  margin-top: 20px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--surface);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Sections */

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .lead,
.section--dark .section-intro {
  color: var(--on-dark-muted);
}

.section--dark :focus-visible {
  outline-color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--dark .eyebrow {
  color: var(--on-dark-accent);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Hero */

.hero {
  padding-block: 72px 80px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero .lead {
  max-width: 34em;
}

/* Hero heading: typed and wiped phrases. The static HTML shows the first phrase without JS. */
.hero .hero-line {
  display: block;
}

.rotator {
  display: block;
  min-height: 2.1em;
  color: var(--accent);
}

.rotator-caret {
  display: inline-block;
  width: 0.05em;
  height: 0.85em;
  margin-left: 0.04em;
  vertical-align: -0.04em;
  background: currentColor;
}

.rotator-toggle {
  margin-top: 16px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.rotator-toggle[hidden] {
  display: none;
}

.rotator-toggle:hover {
  color: var(--ink);
  border-color: var(--graphite);
}

.ways {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  list-style: none;
}

.ways li + li {
  border-top: 1px solid var(--line);
}

.ways a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: var(--ink);
  text-decoration: none;
}

.ways a:hover .ways-title {
  color: var(--accent);
}

.ways-title {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
}

.ways-text {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ways-arrow {
  font-size: 1.25rem;
  color: var(--accent);
}

/* Cards and grids */

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card p {
  color: var(--muted);
}

.card p + p {
  margin-top: 12px;
}

.card-question {
  color: var(--ink) !important;
  font-weight: 600;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
}

.card-icon .icon,
.pillar-icon .icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.start-cta {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.start-cta h3 {
  margin-bottom: 8px;
}

.card .text-link {
  display: inline-block;
  margin-top: 16px;
}

.card--advantage .check-list + h3 {
  margin-top: 28px;
}

.card--cta {
  display: flex;
  flex-direction: column;
}

.card--cta h3 {
  margin-bottom: 8px;
}

.card--cta .btn {
  width: 100%;
  margin-top: auto;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--graphite);
  font-size: 0.8125rem;
}

.tag-todo {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}

/* Products */

.card--product {
  display: flex;
  flex-direction: column;
}

.card--product > p {
  margin-bottom: 24px;
}

.card--product .btn {
  margin-top: auto;
  width: 100%;
}

/* Services */

.card--service {
  display: flex;
  flex-direction: column;
}

.card--service > p {
  margin-bottom: 24px;
}

.card--service .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Service detail modals (native dialog) */

.svc-modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 23, 28, 0.25);
  overflow: hidden;
}

.svc-modal::backdrop {
  background: rgba(20, 23, 28, 0.6);
}

.svc-modal-inner {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
}

.svc-modal-media {
  margin: -28px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.svc-modal-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  margin: 0;
}

.svc-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 23, 28, 0.15);
}

.svc-modal-close:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.svc-modal h3 {
  margin: 0 0 12px;
}

.svc-modal p {
  margin: 0 0 16px;
}

.svc-modal-sub {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.svc-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.svc-list li {
  margin-bottom: 8px;
}

.svc-list strong {
  color: var(--ink);
}

.svc-modal-foot {
  font-weight: 600;
}

.svc-modal .btn {
  margin-top: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .svc-modal[open] {
    animation: svc-modal-in 0.25s var(--ease);
  }
}

@keyframes svc-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .svc-modal-inner {
    padding: 22px 20px;
  }

  .svc-modal-media {
    margin: -22px -20px 18px;
  }
}

.card--soon .card-media {
  position: relative;
}

.soon-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* Consulting */

.pillars-block {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.pillars-block h3 {
  font-size: 1.375rem;
  margin-bottom: 24px;
}

.pillars {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.pillars li {
  padding: 20px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
  font-weight: 600;
}

.pillars-lead {
  margin-bottom: 24px;
  max-width: 60ch;
}

.pillar-name {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.pillar-text {
  display: block;
  font-weight: 400;
  line-height: 1.6;
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--accent);
}

.compliance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}

.compliance-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.compliance-logo--iso {
  width: 110px;
}

/* Learn */

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.advantage {
  margin-top: 64px;
  display: grid;
  gap: 32px;
}

.quotes {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.quote {
  margin: 0;
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--white);
}

.quote p {
  color: var(--graphite);
}

.quote p + p {
  margin-top: 12px;
}

.quote figcaption {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.courses-block {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.courses-top {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.big-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.125rem;
  color: var(--muted);
}

.big-figure span:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.search {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 1rem var(--font);
}

.course-count {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
}

.empty {
  margin-top: 16px;
}

.note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Products */

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

/* About (dark) */

.about-grid {
  display: grid;
  gap: 48px;
}

.about-grid h3 {
  margin-top: 32px;
}

.about-grid h3:first-child {
  margin-top: 0;
}

.about-grid p,
.about-grid li {
  color: var(--on-dark-muted);
}

.mission {
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.corre {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.corre li {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.corre-letter {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.corre-word {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--white);
}

/* News */

.news-wrap {
  display: grid;
  gap: 24px;
  align-items: start;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 56px;
}

.contact-email {
  display: inline-block;
  margin: 8px 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  color: var(--ink);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--white);
  color: #128c7e;
  transition: border-color 0.2s var(--ease);
}

.wa-link:hover {
  border-color: #128c7e;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-btn {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.875rem var(--font);
  cursor: pointer;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 1rem var(--font);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .is-invalid {
  border: 2px solid var(--error);
}

.error {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--error);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-success {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.is-loading {
  opacity: 0.75;
}

/* Map embed */

.map-embed {
  margin-top: 40px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: var(--radius);
}

@media (max-width: 479px) {
  .map-embed iframe {
    height: 320px;
  }
}

.form-status {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--error);
}

/* Footer: same dark spotlight as the header */

.site-footer {
  padding-block: 48px;
  background: radial-gradient(ellipse 60% 140% at 10% 50%, #3b4350 0%, var(--ink) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer :focus-visible {
  outline-color: var(--on-dark-accent);
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 48px;
}

.footer-brand + p {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--white);
}

.footer-grid address {
  max-width: 34ch;
  font-style: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-compliance {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--white);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
}

.footer-badge {
  display: block;
  width: 120px;
  height: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.footer-badge--iso {
  width: 56px;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px 24px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

/* Cookie notice */

.cookie-notice {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 55;
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 440px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 0.9375rem;
  color: var(--graphite);
}

.cookie-notice p {
  margin: 0;
}

.cookie-notice a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Live chat launcher. The chat widget loads only when this is used. */

.chat-launch {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 54;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 600 0.9375rem var(--font);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}

.chat-launch:hover {
  background: var(--graphite);
}

/* Hidden while the cookie choice is open, so the two do not overlap. */
.cookie-notice:not([hidden]) ~ .chat-launch {
  visibility: hidden;
}

/* Privacy page */

.legal {
  padding-block: 56px 88px;
}

.legal-body {
  max-width: 760px;
}

.legal-body h2 {
  margin-top: 40px;
  font-size: 1.25rem;
}

.legal-body p,
.legal-body li {
  margin-top: 12px;
  color: var(--graphite);
}

.legal-body ul {
  margin-top: 12px;
  padding-left: 22px;
}

.legal-meta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* News listing */

.news-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.news-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.1;
}

.news-grid .news-card > a {
  display: flex;
  flex-direction: column;
}

.news-card .card-media {
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.news-card .card-media img {
  object-fit: cover;
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--accent);
}

.news-tag.is-ai { background: #6d28d9; }
.news-tag.is-data { background: #0f766e; }
.news-tag.is-cyber { background: #b91c1c; }
.news-tag.is-training { background: #b45309; }
.news-tag.is-community { background: #be185d; }
.news-tag.is-tips { background: #15803d; }
.news-tag.is-products { background: #1e3a8a; }
.news-tag.is-insights { background: #374151; }

.news-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.news-excerpt {
  margin: 0;
  color: var(--graphite);
}

.news-body .text-link {
  margin-top: auto;
  padding-top: 8px;
}

/* Generated cover art for posts without an image */

.news-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: 20px 24px;
  color: var(--white);
  background: var(--accent);
}

.news-art-cat {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-art-year {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
}

.news-art.is-ai { background: linear-gradient(135deg, #6d28d9, #546578;); }
.news-art.is-data { background: linear-gradient(135deg, #0f766e, #0e7490); }
.news-art.is-cyber { background: linear-gradient(135deg, #991b1b, #1f2937); }
.news-art.is-training { background: linear-gradient(135deg, #b45309, #92400e); }
.news-art.is-community { background: linear-gradient(135deg, #be185d, #7e22ce); }
.news-art.is-tips { background: linear-gradient(135deg, #15803d, #0f766e); }
.news-art.is-products { background: linear-gradient(135deg, #1e3a8a, #312e81); }
.news-art.is-insights { background: linear-gradient(135deg, #374151, #111827); }

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card--feature {
    grid-column: span 2;
  }

  .news-grid .news-card--feature > a {
    flex-direction: row;
  }

  .news-card--feature .card-media,
  .news-card--feature .news-art {
    flex: 0 0 52%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .news-card--feature .news-body {
    justify-content: center;
    padding: 36px;
  }

  .news-card--feature .news-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card--feature {
    grid-column: span 2;
  }
}

/* Pagination */

.pagination {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}

a.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.page-link.is-disabled {
  color: var(--muted);
  background: var(--surface);
  cursor: not-allowed;
}

.pagination-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Article pages */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.article-head {
  padding-block: 48px 8px;
}

.article-head h1 {
  max-width: 820px;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.15;
}

.article-meta {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.article-narrow {
  max-width: 760px;
}

.article-hero {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  padding-bottom: 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--graphite);
}

.article-body > * + * {
  margin-top: 1em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.6em;
  color: var(--ink);
  line-height: 1.25;
}

.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.0625rem; }

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 0.4em;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote {
  margin-inline: 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.article-note {
  margin-top: 40px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.article-nav {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  padding-block: 32px 88px;
  border-top: 1px solid var(--line);
}

.article-steps {
  display: grid;
  gap: 16px;
}

.article-step {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}

.article-step span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.article-step strong {
  line-height: 1.35;
}

.article-step:hover {
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .article-steps {
    grid-template-columns: 1fr 1fr;
  }

  .article-step--next {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-link,
  .article-step {
    transition: none;
  }
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scroll reveal. Content is visible without JavaScript. */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), translate 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Card media, news cards and hover effects.
   Motion uses transform, translate and opacity only. Reduced-motion users keep colour changes. */

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.card > .card-media {
  margin: -28px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card,
.news-card {
  transition: translate 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover,
.card:focus-within,
.news-card:hover,
.news-card:focus-within {
  translate: 0 -4px;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card:hover .card-media img,
.news-card:hover .card-media img,
.news-card:focus-within .card-media img {
  transform: scale(1.04);
}

.news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.news-card a {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.news-card a:focus-visible {
  outline-offset: -3px;
}

.news-card .card-media {
  aspect-ratio: 16 / 10;
}

.news-body {
  padding: 20px 24px 24px;
}

.news-date {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.news-title {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}

.news-card:hover .news-title,
.news-card:focus-within .news-title {
  color: var(--accent);
}

.chips li {
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chips li:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.quote {
  transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quote:hover {
  translate: 0 -3px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ways-arrow {
  transition: translate 0.2s var(--ease);
}

.ways a:hover .ways-arrow {
  translate: 4px 0;
}

.pillars li {
  transition: border-top-color 0.2s var(--ease);
}

.pillars li:hover {
  border-top-color: var(--accent);
}

.corre li {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.corre li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn:active {
  translate: 0 1px;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Breakpoints: 768 px and 1024 px tablet and up, 900 px desktop navigation */

@media (min-width: 480px) {
  .corre {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-top {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .corre {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    border: 0;
    background: none;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .site-nav a {
    min-height: auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .site-nav a[aria-current="true"] {
    box-shadow: inset 0 -2px 0 var(--on-dark-accent);
  }

  .nav-actions {
    margin-top: 0;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-wrap {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 768px) {
  :root {
    --section-y: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .site-header,
  .toast {
    transition: none;
  }

  .card:hover,
  .card:focus-within,
  .news-card:hover,
  .news-card:focus-within,
  .quote:hover,
  .btn:active,
  .ways a:hover .ways-arrow {
    translate: none;
  }

  .card:hover .card-media img,
  .news-card:hover .card-media img,
  .news-card:focus-within .card-media img {
    transform: none;
  }
}
