/* IQS Enterprises — static site styles */

:root {
  --bg-deep: #030712;
  --bg: #070d18;
  --bg-elevated: #0c1629;
  --bg-card: #111d35;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --text-muted: #a8b7cc;
  --text-subtle: #7c8ea3;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-glow: rgba(56, 189, 248, 0.45);
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--font-body);
  --header-h: 72px;
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --max: 1120px;
  --space: clamp(1rem, 4vw, 2rem);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Background gradient (subtle; mesh orbs from Tailwind sit above in z-stack) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 50% at 50% -20%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 35%, rgba(14, 165, 233, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(59, 130, 246, 0.06), transparent);
  pointer-events: none;
  z-index: -2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.card-media:empty,
.split__media:empty {
  display: none;
}

.section-banner:not(:has(img)) {
  display: none;
}

.case-study-banner-trio__item:not(:has(img)) {
  display: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7dd3fc;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--space), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* Centred editorial layout (main content) */
.breadcrumbs .container {
  display: flex;
  justify-content: center;
}

.breadcrumbs ol {
  justify-content: center;
}

.page-hero .container {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.page-hero .lead {
  margin-inline: auto;
}

main .section .section-header {
  margin-inline: auto;
  text-align: center;
  max-width: 44rem;
}

main .section .section-header p {
  margin-inline: auto;
}

.section-header--case {
  margin-inline: auto;
  text-align: center;
}

.case-studies-intro {
  margin-inline: auto;
}

/* Home immersive hero only uses .hero-grid — keep column alignment from .hero section rules below; do not centre grid items here or the whole hero shifts. */
.hero-grid > div:first-child {
  max-width: 38rem;
}

@media (max-width: 767px) {
  .hero-ctas {
    justify-content: center;
  }
}

.split {
  text-align: center;
  justify-items: center;
}

.split__content {
  max-width: 38rem;
  margin-inline: auto;
}

.split__media {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.grid-2:not(.contact-details-grid) .card,
.grid-3 .card {
  text-align: center;
}

.case-study-card .card-body {
  text-align: center;
}

.case-study-outcomes {
  text-align: left;
  max-width: 28rem;
  margin-inline: auto;
}

.case-study-detail {
  text-align: center;
}

.case-study-detail .case-study-pillar {
  text-align: left;
  max-width: 40rem;
  margin-inline: auto;
}

.site-footer .footer-brand,
.site-footer .footer-col {
  text-align: center;
}

.site-footer .footer-grid {
  justify-items: center;
}

.site-footer .footer-bottom {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

/* Contact: forms stay left-aligned for usability */
.is-contact-page #contact-form,
.is-contact-page .form-success {
  text-align: left;
  max-width: 28rem;
  margin-inline: auto;
}

.is-contact-page .grid-2.contact-details-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.is-contact-page .grid-2.contact-details-grid > div:last-child {
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-offset);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  line-height: 1.05;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-align: center;
}

.logo__mark {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  letter-spacing: 0.03em;
  line-height: 1;
  display: block;
}

.logo__sub {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  display: block;
  text-align: center;
  max-width: 100%;
}

.logo:hover {
  color: var(--text);
  opacity: 0.92;
}

.logo:hover .logo__sub {
  color: var(--text-subtle);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  opacity: 0.92;
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: rgba(12, 22, 41, 0.55);
  color: #ecfeff;
  font-weight: 700;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 8px 28px -8px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #ffffff;
  border-color: #7dd3fc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(56, 189, 248, 0.2),
    0 10px 36px -10px rgba(56, 189, 248, 0.25);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-primary {
    background: rgba(17, 29, 53, 0.92);
  }

  .btn-primary:hover {
    background: rgba(30, 58, 88, 0.95);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }

  .header-cta-desktop {
    display: none;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-deep, #030712);
  padding: calc(var(--header-offset, 72px) + 1.5rem) 1.5rem 2rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.875rem 0;
  min-height: 48px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile a:first-child {
  border-top: 1px solid var(--border);
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  color: var(--text);
}

.nav-mobile .btn-primary {
  margin-top: 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  border-top: none;
  flex-shrink: 0;
  min-height: 48px;
}

body.nav-open {
  overflow: hidden;
}

/* Typography */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  text-shadow: 0 0 28px var(--accent-glow);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.15rem, 5.5vw, 3.5rem);
}

.headline-impact {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
  background: linear-gradient(
    118deg,
    #ffffff 0%,
    #e0f2fe 28%,
    #38bdf8 52%,
    #2563eb 88%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .headline-impact {
    color: var(--text);
    background: none;
  }
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.12em 0.45em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.lead {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 42ch;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  line-height: 1.55;
}

.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section--compact {
  padding: clamp(1.25rem, 3vw, 2rem) 0 0;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header p {
  margin-top: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero--immersive {
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-backdrop__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(3, 7, 18, 0.97) 0%,
    rgba(3, 7, 18, 0.88) 38%,
    rgba(7, 13, 24, 0.55) 72%,
    rgba(14, 165, 233, 0.06) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Cards & grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 520px) and (max-width: 767px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  height: 100%;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 24px 48px -24px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow:
      0 0 0 1px rgba(56, 189, 248, 0.15),
      0 28px 56px -16px rgba(0, 0, 0, 0.6),
      0 0 48px -8px rgba(56, 189, 248, 0.2);
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .card:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Split layouts & photography */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 3rem;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--reverse .split__content {
    order: 1;
  }
}

.split__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.5);
}

.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.section-banner {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 21 / 9;
  max-height: min(42vh, 300px);
  background: var(--bg-elevated);
}

@media (max-width: 640px) {
  .section-banner {
    aspect-ratio: 4 / 3;
    max-height: none;
    min-height: 12rem;
  }
}

.section-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.card--media {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: auto;
}

.card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card--media .card-body {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  flex: 1;
}

@media (hover: hover) and (pointer: fine) {
  .card--media:hover .card-media img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-media img {
    transition: none;
  }
}

/* Why list */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.why-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.metric strong {
  font-family: var(--font-heading);
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.metric span {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* Testimonials */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  text-align: center;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.quote-card blockquote {
  margin: 0 0 1.25rem;
  padding-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.quote-card blockquote p {
  overflow-wrap: anywhere;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.quote-card cite span {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Process */
.process-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto 1rem;
}

.process-step h3 {
  font-size: 1.0625rem;
}

/* CTA band */
.cta-band {
  padding: clamp(2.25rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(145deg, #0f1f3d 0%, #0a1628 45%, #070d18 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 60px -20px rgba(56, 189, 248, 0.25),
    0 28px 56px -24px rgba(0, 0, 0, 0.55);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 85% at 50% -10%, rgba(56, 189, 248, 0.2), transparent 50%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band p {
  max-width: 480px;
  margin: 0.75rem auto 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.article-row:first-child {
  padding-top: 0;
}

.article-row a.title {
  color: var(--text);
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.article-row a.title:hover {
  color: var(--accent);
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

/* Case study cards */
.case-card .meta {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header--case {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.case-studies-intro {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study-grid {
  align-items: stretch;
}

.case-study-card.card--media .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-study-card__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.case-study-card .case-study-card__context .meta {
  margin-bottom: 0;
}

.case-study-card__sector {
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.case-study-card__divider {
  opacity: 0.45;
  user-select: none;
}

.case-study-card h3 {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.case-study-card .card-body > p:not(.case-study-card__context):not(.case-study-card__link) {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.case-study-outcomes {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.case-study-outcomes li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.case-study-outcomes li:last-child {
  margin-bottom: 0;
}

.case-study-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.case-study-card__link {
  margin-top: auto;
  padding-top: 1.1rem;
  margin-bottom: 0;
}

.case-study-card__link .link-arrow {
  min-height: 44px;
  align-items: center;
}

/* Case studies page: in-page navigation */
.case-study-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  padding: 0;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  list-style: none;
}

.case-study-toc li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-study-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.case-study-toc a:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--bg-card);
}

/* Case studies page: three equal preview images aligned to TOC items */
.case-study-banner-trio {
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.125rem);
  align-items: stretch;
}

.case-study-banner-trio__item {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.case-study-banner-trio__link {
  display: block;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.case-study-banner-trio__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.case-study-banner-trio__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .case-study-banner-trio__link:hover img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-banner-trio__link img {
    transition: none;
  }

  .case-study-banner-trio__link:hover img {
    transform: none;
  }
}

@media (max-width: 639px) {
  .case-study-banner-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.35rem, 2vw, 0.65rem);
  }

  .case-study-banner-trio__link {
    aspect-ratio: 1;
  }
}

.case-study-detail {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.case-study-detail .meta {
  margin-bottom: 0.35rem;
}

.case-study-detail h2 {
  margin-bottom: 1rem;
}

.case-study-pillar {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.case-study-pillar strong {
  color: var(--text);
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.form-group input,
.form-group select {
  min-height: 44px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  display: block;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-md);
  color: #86efac;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-success.is-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.faq-item button::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item button[aria-expanded="true"]::after {
  content: "\2212";
}

.faq-panel {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  display: none;
  text-align: left;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Legal */
.legal-content {
  max-width: 720px;
  overflow-wrap: anywhere;
  text-align: left;
  margin-inline: auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4rem) 0 max(2rem, env(safe-area-inset-bottom, 0px));
  margin-top: auto;
  background: rgba(6, 11, 20, 0.6);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

/* Same visual as header logo: shrink-wrapped column stack, centred (block .logo is full-width in footer otherwise). */
.site-footer .footer-brand > .logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-inline: auto;
}

.site-footer .footer-brand .logo__sub {
  text-align: center;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 32ch;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-contact {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  color: var(--text-subtle);
}

.footer-legal a:hover {
  color: var(--text);
}

/* 404 */
.error-page {
  min-height: calc(100dvh - var(--header-offset));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--space), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space), env(safe-area-inset-right, 0px));
}

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-subtle) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* Layout wrapper */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Link list inline */
.link-arrow {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow:hover {
  color: #7dd3fc;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-section {
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.45);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--text-subtle);
  opacity: 0.45;
  font-weight: 300;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4rem));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 250;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

html.cookie-dismissed .back-to-top {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
  .back-to-top {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Reading progress (long pages) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 101;
  background: linear-gradient(90deg, var(--accent), #0ea5e9);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 280;
  padding: 1rem max(var(--space), env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(var(--space), env(safe-area-inset-right, 0px));
  background: rgba(12, 20, 36, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

html.cookie-dismissed .cookie-banner {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.8125rem;
}

/* Copy email helper */
.copy-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-copy {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  min-height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-copy:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-copy.is-copied {
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

/* Print */
@media print {
  .site-header,
  .nav-mobile,
  .menu-toggle,
  .back-to-top,
  .cookie-banner,
  .read-progress,
  .case-study-toc {
    display: none !important;
  }

  .section-banner {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    position: relative;
  }

  .section-banner img {
    position: static;
    height: auto;
    max-height: 200px;
  }

  .case-study-banner-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    page-break-inside: avoid;
  }

  .case-study-banner-trio__link {
    aspect-ratio: auto;
    min-height: 0;
  }

  .case-study-banner-trio__link img {
    height: auto;
    max-height: 140px;
    object-fit: cover;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card,
  .quote-card,
  .cta-band {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
