/* ==========================================================================
   GR888 — main stylesheet
   Colours: ONLY the tokens in :root (taken from the original gr888.dk theme).
   Never use raw colour codes outside :root.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Original gr888.dk palette (Astra global colours + button colours) */
  --color-cream: #f0ead6;
  --color-purple: #c10fff;
  --color-navy: #1e293b;
  --color-slate: #67768e;
  --color-lavender: #f9f6fe;
  --color-white: #fff;
  --color-mist: #f2f5f7;
  --color-yellow: #ffcd57;
  --color-black: #000;
  --color-bordeaux: #7d2d2d;
  --color-charcoal: #333;

  /* Derived, transparent versions of the palette (no new hues) */
  --color-navy-08: rgb(30 41 59 / 8%);
  --color-navy-14: rgb(30 41 59 / 14%);
  --color-navy-80: rgb(30 41 59 / 80%);
  --color-white-85: rgb(255 255 255 / 85%);
  --color-cream-12: rgb(240 234 214 / 12%);
  --color-cream-24: rgb(240 234 214 / 24%);
  --color-purple-35: rgb(193 15 255 / 35%);
  --color-yellow-35: rgb(255 205 87 / 35%);
  --color-bordeaux-10: rgb(125 45 45 / 10%);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --fs-3xl: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);

  /* Spacing & shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px var(--color-navy-08), 0 2px 8px var(--color-navy-08);
  --shadow: 0 2px 6px var(--color-navy-08), 0 12px 32px var(--color-navy-08);
  --shadow-lg: 0 4px 12px var(--color-navy-08), 0 24px 56px var(--color-navy-14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-slate);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }

h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-bordeaux);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--color-navy); }

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

ul {
  margin: 0;
  padding: 0;
}

strong {
  font-weight: 600;
  color: var(--color-navy);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  color: var(--color-cream);
  background: var(--color-bordeaux);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  color: var(--color-cream);
  transform: none;
}

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

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

.section--lavender { background: var(--color-lavender); }
.section--mist { background: var(--color-mist); }

/* Slate text fails AA on tinted backgrounds — use charcoal there. */
.section--lavender,
.section--mist { color: var(--color-charcoal); }

.section--navy {
  color: var(--color-cream);
  background: var(--color-navy);
}

.section--navy h2,
.section--navy h3 { color: var(--color-cream); }

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: var(--fs-lg);
}

.eyebrow {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-bordeaux);
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--color-purple), var(--color-yellow));
  border-radius: 2px;
}

.section--navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--color-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  color: var(--color-cream);
  background: var(--color-bordeaux);
  box-shadow: 0 6px 20px var(--color-bordeaux-10);
}

.btn--primary:hover {
  color: var(--color-cream);
  box-shadow: 0 10px 28px var(--color-navy-14);
}

.btn--cream {
  color: var(--color-bordeaux);
  background: var(--color-cream);
}

.btn--cream:hover {
  color: var(--color-bordeaux);
  box-shadow: 0 10px 28px var(--color-black);
}

.btn--ghost {
  color: var(--color-cream);
  border-color: var(--color-cream-24);
}

.btn--ghost:hover {
  color: var(--color-navy);
  background: var(--color-cream);
  border-color: var(--color-cream);
}

.btn--outline {
  color: var(--color-bordeaux);
  border-color: var(--color-bordeaux);
}

.btn--outline:hover {
  color: var(--color-cream);
  background: var(--color-bordeaux);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white-85);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--color-navy-08);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
  color: var(--color-navy);
  text-decoration: none;
}

.brand:hover { color: var(--color-navy); }

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  transition: transform 0.6s var(--ease);
}

.brand:hover img { transform: rotate(-30deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__tagline {
  font-size: var(--fs-xs);
  color: var(--color-slate);
}

.nav__list {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}

.nav__link::after {
  position: absolute;
  right: var(--space-3);
  bottom: 0.2rem;
  left: var(--space-3);
  height: 2px;
  content: "";
  background: var(--color-bordeaux);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--color-bordeaux); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: var(--space-2); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--color-navy);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-navy-14);
  border-radius: var(--radius-sm);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  content: "";
  background: currentcolor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__bars::after {
  position: absolute;
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (width <= 52rem) {
  .brand__tagline { display: none; }

  /* Without JS the links simply stay visible; with JS they collapse into a menu. */
  .js .nav-toggle { display: grid; }

  .js .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    visibility: hidden;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-navy-08);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .js .nav__list {
    flex-direction: column;
    gap: var(--space-1);
    align-items: stretch;
  }

  .js .nav__link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--color-navy-08);
  }

  .js .nav__link::after { display: none; }

  .js .nav__cta {
    margin: var(--space-4) 0 0;
  }

  .js .nav__cta .btn { width: 100%; }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: var(--space-2);
  }

  html:not(.js) .nav__list { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-cream);
  background: var(--color-navy);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: -14rem;
  right: -10rem;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  content: "";
  background: var(--color-purple-35);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--color-bordeaux), var(--color-purple), var(--color-yellow));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.hero h1 {
  margin-bottom: var(--space-5);
  color: var(--color-cream);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-cream));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  position: relative;
  max-width: 34rem;
  margin-bottom: 0;
  font-size: var(--fs-lg);
  color: var(--color-cream);
}

/* The gradient dash from the old eyebrow hangs in the margin to the left,
   so the text keeps the same left edge as the heading. */
.hero__lead::before {
  position: absolute;
  top: 0.85em;
  right: calc(100% + var(--space-3));
  width: min(1.75rem, calc(var(--gutter) - var(--space-3)));
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--color-purple), var(--color-yellow));
  border-radius: 2px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
  aspect-ratio: 1;
}

.hero__visual::before {
  position: absolute;
  inset: 8%;
  content: "";
  border: 1px solid var(--color-cream-12);
  border-radius: 50%;
}

.hero__visual::after {
  position: absolute;
  inset: -4%;
  content: "";
  border: 1px dashed var(--color-cream-12);
  border-radius: 50%;
}

.hero__logo {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 20px 40px var(--color-black));
  animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--color-cream-12);
}

.facts li {
  padding: var(--space-5) var(--space-5) var(--space-6) 0;
}

.facts li + li {
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-cream-12);
}

.facts strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--color-cream);
}

.facts span {
  font-size: var(--fs-sm);
  color: var(--color-cream);
}

@media (width <= 52rem) {
  .hero__inner { grid-template-columns: 1fr; }

  .hero__visual {
    order: -1;
    width: min(60%, 14rem);
  }
  .facts { grid-template-columns: 1fr; }

  .facts li,
  .facts li + li {
    padding: var(--space-4) 0;
    border-left: 0;
  }

  .facts li + li { border-top: 1px solid var(--color-cream-12); }
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.intro__lead {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}

.intro__body {
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-bordeaux);
}

@media (width <= 52rem) {
  .intro {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .intro__body { padding-left: var(--space-5); }
}

/* ---------- Cards: "What do you need?" ---------- */
.needs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  list-style: none;
}

.need {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-navy-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.need:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.need__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-5);
  color: var(--color-cream);
  background: var(--color-bordeaux);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px var(--color-bordeaux-10);
  transition: transform 0.5s var(--ease);
}

.need:hover .need__icon { transform: rotate(-6deg) scale(1.05); }

.need__icon img,
.need__icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.need h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

.need p {
  font-size: var(--fs-sm);
  color: var(--color-slate);
}

@media (width <= 64rem) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 36rem) {
  .needs { grid-template-columns: 1fr; }
}

/* ---------- Clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  list-style: none;
}

.client-tile {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.client-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px) scale(1.02);
}

.client-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (width <= 52rem) {
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  list-style: none;
}

.case {
  padding: var(--space-6) var(--space-5);
  background: var(--color-white);
  border-top: 3px solid var(--color-bordeaux);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}

.case__client {
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-navy);
}

.case p { color: var(--color-charcoal); }

.more-link {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-weight: 600;
}

.more-link svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease);
}

.more-link:hover svg { transform: translateX(4px); }

@media (width <= 52rem) {
  .cases { grid-template-columns: 1fr; }
}

/* ---------- Areas matrix ---------- */
.matrix-wrap {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-navy-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.matrix {
  width: 100%;
  font-size: var(--fs-sm);
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: var(--space-5);
  text-align: left;
  vertical-align: top;
}

.matrix thead th {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-cream);
  background: var(--color-navy);
}

.matrix thead th:first-child { color: var(--color-yellow); }

.matrix thead th span {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-cream);
}

.matrix tbody tr {
  border-top: 1px solid var(--color-navy-08);
  transition: background-color 0.2s var(--ease);
}

.matrix tbody tr:hover { background: var(--color-lavender); }

.matrix tbody th {
  width: 28%;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-navy);
}

.matrix td { color: var(--color-charcoal); }

/* Desktop: headings sit centred over their column's text. */
@media (width > 48rem) {
  .matrix th,
  .matrix td { text-align: center; }
}

.matrix td::before {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: var(--space-2);
  vertical-align: 0.1em;
  content: "";
  background: var(--color-bordeaux);
  border-radius: 50%;
}

.matrix-note {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  text-align: center;
}

.matrix-note svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--color-bordeaux);
}

@media (width <= 48rem) {
  .matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .matrix,
  .matrix tbody,
  .matrix tr,
  .matrix th,
  .matrix td {
    display: block;
    width: 100%;
  }

  .matrix tbody tr { padding: var(--space-4) var(--space-5) var(--space-5); }
  .matrix tbody tr:first-child { border-top: 0; }

  .matrix tbody th {
    width: 100%;
    padding: 0 0 var(--space-3);
    font-size: var(--fs-lg);
  }

  .matrix td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: var(--space-3);
    padding: var(--space-2) 0;
  }

  .matrix td::before {
    width: auto;
    height: auto;
    margin: 0;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    content: attr(data-label);
    background: none;
    color: var(--color-bordeaux);
    line-height: 2;
  }
}

/* ---------- How we work (steps) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  list-style: none;
  counter-reset: step;
}

.steps::before {
  position: absolute;
  top: 1.75rem;
  right: 16%;
  left: 16%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--color-bordeaux), var(--color-purple), var(--color-yellow));
  opacity: 0.35;
}

.step {
  position: relative;
  text-align: center;
  counter-increment: step;
}

.step::before {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-cream);
  content: counter(step, decimal-leading-zero);
  background: var(--color-navy);
  border: 4px solid var(--color-lavender);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-navy-14);
}

.step h3 { font-size: 1.25rem; }

.step p {
  max-width: 20rem;
  margin-inline: auto;
}

@media (width <= 52rem) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .steps::before { display: none; }

  .step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0 var(--space-4);
    text-align: left;
  }

  .step::before {
    grid-row: span 2;
    margin: 0;
  }
  .step p { margin: 0; }
}

/* ---------- Why choose us ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  align-items: start;
}

.why__statement {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}

.why__statement h2 {
  font-size: var(--fs-2xl);
}

.why__statement p {
  font-size: var(--fs-lg);
  color: var(--color-cream);
}

.why__body p { color: var(--color-cream); }

.why__body p + p {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-cream-12);
}

@media (width <= 52rem) {
  .why {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .why__statement { position: static; }
}

/* ---------- Benefits (two lists) ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.benefit {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--color-white);
  border: 1px solid var(--color-navy-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.benefit--accent {
  background: var(--color-bordeaux);
  border-color: transparent;
}

.benefit--accent h3 { color: var(--color-cream); }

.checklist {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--color-charcoal);
}

.checklist svg {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.35rem;
  color: var(--color-cream);
  background: var(--color-bordeaux);
  border-radius: 50%;
}

.benefit--accent .checklist li { color: var(--color-cream); }

.benefit--accent .checklist svg {
  color: var(--color-bordeaux);
  background: var(--color-cream);
}

@media (width <= 52rem) {
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Contact band ---------- */
.contact-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem);
  color: var(--color-cream);
  text-align: center;
  background: var(--color-bordeaux);
  border-radius: var(--radius-lg);
  isolation: isolate;
}

.contact-band::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  content: "";
  background: url("/assets/img/gr888-logo-512.webp") center / contain no-repeat;
  opacity: 0.08;
  transform: translate(-50%, -50%);
}

.contact-band h2 {
  color: var(--color-cream);
}

.contact-band p {
  max-width: 36rem;
  margin: 0 auto var(--space-6);
  font-size: var(--fs-lg);
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.contact-band .btn--ghost:hover { color: var(--color-bordeaux); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  color: var(--color-cream);
  background: var(--color-navy);
  isolation: isolate;
}

.page-hero::before {
  position: absolute;
  top: -12rem;
  right: -8rem;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  content: "";
  background: var(--color-purple-35);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.page-hero h1 { color: var(--color-cream); }

.page-hero p {
  font-size: var(--fs-lg);
}

/* ---------- Testimonials ---------- */
.testimonials {
  columns: 2 22rem;
  column-gap: var(--space-5);
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0 0 var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-navy-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.testimonial:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testimonial__mark {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-bordeaux);
}

.testimonial blockquote {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-charcoal);
}

.testimonial figcaption {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-5);
  margin-top: auto;
  border-top: 1px solid var(--color-navy-08);
}

.testimonial figcaption img {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  border-radius: var(--radius-sm);
}

.testimonial cite {
  display: block;
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 600;
  color: var(--color-navy);
}

.testimonial__role {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--color-slate);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  list-style: none;
}

.logo-row .client-tile { width: clamp(6rem, 5rem + 4vw, 8.5rem); }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--space-8);
  color: var(--color-cream);
  background: var(--color-navy);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}

.site-footer .brand,
.site-footer .brand:hover { color: var(--color-cream); }

.site-footer__about {
  max-width: 24rem;
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
}

.site-footer h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-yellow);
}

.footer-list {
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-cream);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.footer-list svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--color-yellow);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-block: var(--space-5);
  font-size: var(--fs-xs);
  border-top: 1px solid var(--color-cream-12);
}

@media (width <= 52rem) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--color-cream);
  background: var(--color-bordeaux);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  color: var(--color-cream);
  transform: translateY(-3px);
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.not-found__code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-bordeaux);
}

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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