/* Implemit - dark agency redesign
   Charcoal base, Implemit red accent sections, light grotesque type,
   wireframe mesh and sphere graphics. */

:root {
  color-scheme: dark;
  --bg: #141617;
  --bg-deep: #0e1011;
  --panel: #1a1d1e;
  --panel-2: #1f2324;
  --line: rgba(246, 246, 244, 0.14);
  --line-soft: rgba(246, 246, 244, 0.08);
  --text: #f6f6f4;
  --text-dim: rgba(246, 246, 244, 0.62);
  --muted: #a4aaa9;
  --red: #ec1c24;
  --red-bright: #ff4b50;
  --red-surface: #e01b23;
  --red-deep: #b5151c;
  --on-red-dim: rgba(255, 255, 255, 0.9);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

::selection {
  background: var(--red);
  color: #fff;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--onred {
  color: rgba(255, 255, 255, 0.94);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 56ch;
}

.lead--right {
  margin-left: auto;
  text-align: right;
  margin-bottom: 3rem;
}

.microcopy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 1.6rem;
  flex: 1;
}

.btn__sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  border-left: 1px solid var(--line);
  flex: none;
}

.btn__sq svg {
  width: 11px;
  height: 11px;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn--outline:hover .btn__sq,
.btn--outline:focus-visible .btn__sq {
  border-left-color: rgba(255, 255, 255, 0.3);
}

.btn--solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn--solid .btn__sq {
  border-left-color: rgba(255, 255, 255, 0.3);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: #16181a;
}

.btn--light .btn__sq {
  border-left-color: rgba(0, 0, 0, 0.18);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: #16181a;
  border-color: #16181a;
  color: #fff;
}

.btn--light:hover .btn__sq,
.btn--light:focus-visible .btn__sq {
  border-left-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #16181a;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.2rem;
}

.ctrl {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ctrl svg {
  width: 11px;
  height: 11px;
}

.ctrl:hover,
.ctrl:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.ctrl--onred {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.ctrl--onred:hover,
.ctrl--onred:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--red-surface);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0.9rem;
  z-index: 60;
  margin-top: 0.9rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(22, 25, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  padding: 0.85rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.brand-link {
  display: inline-flex;
  flex: none;
}

.brand-link img {
  height: 24px;
  width: auto;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  border-inline: 1px solid var(--line-soft);
  padding-inline: 1.5rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-trigger::after {
  content: "";
  width: 0.32rem;
  height: 0.32rem;
  margin-left: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.4rem);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.8rem;
  height: 0.8rem;
}

.site-header:has([data-mega-trigger="services"]:hover) [data-mega-panel="services"],
.site-header:has([data-mega-trigger="services"]:focus) [data-mega-panel="services"],
.site-header:has([data-mega-trigger="services"]:focus-visible) [data-mega-panel="services"],
.site-header:has([data-mega-panel="services"]:hover) [data-mega-panel="services"],
.site-header:has([data-mega-panel="services"]:focus-within) [data-mega-panel="services"],
.site-header[data-mega-open="services"] [data-mega-panel="services"],
.site-header:has([data-mega-trigger="company"]:hover) [data-mega-panel="company"],
.site-header:has([data-mega-trigger="company"]:focus) [data-mega-panel="company"],
.site-header:has([data-mega-trigger="company"]:focus-visible) [data-mega-panel="company"],
.site-header:has([data-mega-panel="company"]:hover) [data-mega-panel="company"],
.site-header:has([data-mega-panel="company"]:focus-within) [data-mega-panel="company"],
.site-header[data-mega-open="company"] [data-mega-panel="company"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(22, 25, 26, 0.98);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.3);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.mega-menu__intro {
  border-right: 1px solid var(--line-soft);
  padding-right: clamp(1rem, 2vw, 1.5rem);
}

.mega-menu__intro p:last-child {
  max-width: 24ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mega-menu__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.mega-menu__links--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-menu__link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 7.5rem;
  padding: 1rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mega-menu__link:hover,
.mega-menu__link:focus-visible {
  background: rgba(236, 28, 36, 0.1);
  color: #fff;
}

.mega-menu__link span {
  font-size: 0.92rem;
  line-height: 1.25;
}

.mega-menu__link small {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}

.header-cta svg {
  width: 10px;
  height: 10px;
  color: var(--red-bright);
  transition: transform 0.25s var(--ease);
}

.header-cta:hover svg,
.header-cta:focus-visible svg {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ---------- Mesh + sphere graphics ---------- */

.mesh {
  display: block;
  pointer-events: none;
}

.sphere {
  display: block;
  width: min(230px, 60%);
  margin: 2.2rem auto;
  color: rgba(246, 246, 244, 0.4);
}

.sphere--red {
  color: rgba(236, 28, 36, 0.7);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin: 1.1rem auto 0;
  width: min(calc(100% - 1.6rem), 1520px);
  background: var(--red-surface);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(88vh, 860px);
  padding: 7.5rem 0 4rem;
}

.hero__mesh {
  position: absolute;
  inset: -12% -6% auto;
  width: 112%;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.42;
}

.hero__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.hero__bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
  margin-top: 4rem;
}

.hero h1 {
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 18px rgba(77, 0, 0, 0.22);
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--on-red-dim);
  margin: 0;
  text-shadow: 0 1px 10px rgba(77, 0, 0, 0.28);
}

.hero__support {
  font-size: 0.98rem;
  font-weight: 450;
  color: var(--on-red-dim);
  max-width: 46ch;
  text-shadow: 0 1px 10px rgba(77, 0, 0, 0.28);
}

.hero .microcopy {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 450;
  text-shadow: 0 1px 8px rgba(77, 0, 0, 0.28);
}

/* ---------- Statement ---------- */

.statement {
  padding: clamp(5rem, 12vh, 9rem) 0;
}

.statement__text {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 38ch;
  margin: 0;
}

.rw {
  color: rgba(246, 246, 244, 0.22);
  transition: color 0.35s var(--ease);
}

.rw.on {
  color: var(--text);
}

html:not(.js) .rw {
  color: var(--text);
}

/* ---------- Logo rail ---------- */

.logo-rail {
  background: var(--bg);
  border-block: 1px solid rgba(246, 246, 244, 0.1);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
}

.logo-rail__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-rail__track {
  --logo-gap: clamp(2.2rem, 5vw, 5rem);
  display: flex;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
  will-change: transform;
}

.logo-rail__group {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  flex: 0 0 auto;
  padding-right: var(--logo-gap);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  white-space: nowrap;
  color: rgba(246, 246, 244, 0.68);
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}

@keyframes logo-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 9vh, 7rem) 0;
}

.section--red {
  background: var(--red-surface);
  color: #fff;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.sec-head h2 {
  text-align: right;
  margin: 0;
}

/* ---------- Services ---------- */

.svc-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line-soft);
  background: rgba(246, 246, 244, 0.02);
}

.svc-tabs a {
  position: relative;
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.3rem;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 1px solid var(--line-soft);
  padding: 1rem;
  overflow: hidden;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.svc-tabs a:first-child {
  border-left: 0;
}

.svc-tabs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s var(--ease);
}

.svc-tabs__number {
  color: var(--red-bright);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.svc-tabs__label {
  max-width: 18ch;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.svc-tabs a:hover,
.svc-tabs a:focus-visible {
  color: var(--text);
  background: rgba(246, 246, 244, 0.04);
}

.svc-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, rgba(236, 28, 36, 0.82) 58%, rgba(236, 28, 36, 0.22) 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.svc-tabs a.is-active::after {
  background: #fff;
}

.svc-tabs a.is-active .svc-tabs__number {
  color: rgba(255, 255, 255, 0.78);
}

.svc-tabs a.is-active .svc-tabs__label {
  color: #fff;
}

.svc-carousel {
  position: relative;
}

.svc-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-top: 1px solid rgba(236, 28, 36, 0.55);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  min-height: 460px;
}

.svc-slide.is-active {
  display: grid;
  animation: slide-in 0.5s var(--ease);
}

html:not(.js) .svc-slide {
  display: grid;
  margin-bottom: 1.2rem;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.svc-slide__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.svc-slide__main h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  max-width: 18ch;
}

.svc-slide__meter {
  margin-top: 2rem;
}

.svc-slide__num {
  display: block;
  color: var(--red-bright);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.svc-slide__bar {
  display: block;
  max-width: 320px;
  height: 2px;
  background: var(--line-soft);
}

.svc-slide__bar i {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 0.5s var(--ease);
}

.svc-slide__visual {
  align-self: center;
  color: rgba(236, 28, 36, 0.75);
}

.svc-slide__visual .mesh {
  width: 100%;
  height: auto;
}

.svc-slide__info {
  display: flex;
  flex-direction: column;
}

.svc-slide__info h4 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.svc-slide__info ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  flex: 1;
  align-content: start;
}

.svc-slide__info li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.svc-slide__info strong {
  color: var(--text);
  font-weight: 500;
}

.dot {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: rgba(236, 28, 36, 0.35);
}

/* ---------- How we work ---------- */

.step-grid {
  list-style: none;
  margin: 0 auto 4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.step__label {
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.step__body {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.grid-label {
  margin: 0 auto 1.1rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Panel cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.panel-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 1.8rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.panel-card:hover {
  border-color: rgba(236, 28, 36, 0.45);
  transform: translateY(-3px);
}

.panel-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
}

.panel-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.panel-card .note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.panel-card__visual {
  flex: 1;
  display: flex;
  align-items: center;
}

.panel-card .btn {
  margin-top: 1.4rem;
}

.card-grid--start {
  align-items: stretch;
}

.panel-card--start {
  padding: 1.4rem;
}

.panel-card--start h3 {
  font-size: 1.05rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
}

.panel-card--start p {
  margin-bottom: 1.2rem;
}

.panel-card--start .panel-card__visual {
  display: none;
}

.panel-card--start .btn {
  margin-top: auto;
}

.closing-line {
  margin-top: 3rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Why Implemit ---------- */

.why {
  position: relative;
  overflow: hidden;
}

.why__mesh {
  position: absolute;
  right: -10%;
  top: -12%;
  width: 68%;
  color: rgba(255, 255, 255, 0.34);
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.why__head {
  position: relative;
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
  margin-bottom: 3rem;
}

.why__head h2 {
  margin: 0;
}

.why__head p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 1.4rem;
  color: var(--on-red-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.why-proof {
  min-height: 17rem;
  padding: clamp(1.3rem, 2vw, 1.8rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 22, 22, 0.08);
  backdrop-filter: blur(2px);
}

.why-proof h3 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
}

.why-proof p {
  margin: 0;
  color: var(--on-red-dim);
  font-size: 0.98rem;
}

.why-proof--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(20, 22, 22, 0.18);
}

.why-proof--cta p {
  max-width: 17rem;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

/* ---------- Company pages ---------- */

.company-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding-top: clamp(6rem, 10vh, 7rem);
  padding-bottom: clamp(2.5rem, 5.5vh, 3.75rem);
}

.company-hero__mesh {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.company-hero__mesh--primary {
  right: -16rem;
  top: -4.8rem;
  width: min(70rem, 78vw);
  color: rgba(236, 28, 36, 0.68);
  opacity: 0.3;
  transform: rotate(-4deg);
}

.company-hero__mesh--secondary {
  left: -18rem;
  bottom: -11rem;
  width: min(48rem, 58vw);
  color: rgba(140, 196, 224, 0.46);
  opacity: 0.18;
  transform: rotate(9deg);
}

.company-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.46fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.company-hero__heading {
  max-width: 44rem;
}

.company-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.1vw, 4.8rem);
}

.company-copy {
  padding-top: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(1rem, 4vw, 2rem);
}

.company-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.company-content {
  border-top: 1px solid var(--line-soft);
}

.company-block {
  display: grid;
  grid-template-columns: minmax(13rem, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 5.5rem);
  padding: clamp(2rem, 5vw, 3.4rem) 0;
  border-bottom: 1px solid var(--line-soft);
}

.company-block h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.55rem);
}

.company-block__body {
  max-width: 48rem;
}

.company-block__body p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

.company-address {
  margin-top: 0.85rem !important;
  color: var(--text) !important;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem) !important;
  line-height: 1.25 !important;
}

.company-location {
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.company-location img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 52%;
}

.company-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.company-list li {
  position: relative;
  padding: 0 0 0 1.55rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.6;
}

.company-list .dot {
  top: 0.58em;
}

.company-cta {
  padding-top: 0;
}

.resource-detail-cta {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.company-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.company-cta__inner h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.company-cta__inner p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

/* ---------- Resources ---------- */

.resources-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 76% 18%, rgba(236, 28, 36, 0.13), transparent 30%),
    var(--bg-deep);
  padding-top: clamp(7rem, 14vh, 9rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.resources-hero__mesh {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.resources-hero__mesh--primary {
  right: -15rem;
  top: -6rem;
  width: min(70rem, 78vw);
  color: rgba(236, 28, 36, 0.65);
  opacity: 0.32;
  transform: rotate(-5deg);
}

.resources-hero__inner {
  position: relative;
  z-index: 1;
  display: block;
}

.resources-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(246, 246, 244, 0.04), rgba(246, 246, 244, 0.015));
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
}

.resource-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

.resources-library {
  background: var(--panel);
  border-block: 1px solid var(--line-soft);
}

.resources-cta {
  padding-top: clamp(4rem, 8vh, 6rem);
}

.resource-card__type {
  margin: 0 0 1rem !important;
  color: var(--red-bright) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.resource-card h2 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 400;
}

.resource-card ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
}

.resource-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}

.resource-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
}

.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.resource-card__link svg {
  width: 10px;
  height: 10px;
  color: var(--red-bright);
  transition: transform 0.22s var(--ease);
}

.resource-card__link:hover svg,
.resource-card__link:focus-visible svg {
  transform: translate(2px, -2px);
}

.resource-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 78% 18%, rgba(236, 28, 36, 0.12), transparent 30%),
    var(--bg-deep);
  padding-top: clamp(7rem, 14vh, 9rem);
  padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
}

.resource-detail-hero__mesh {
  position: absolute;
  right: -14rem;
  top: -7rem;
  z-index: 0;
  width: min(72rem, 82vw);
  color: rgba(236, 28, 36, 0.65);
  opacity: 0.28;
  pointer-events: none;
  transform: rotate(-5deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.resource-detail-hero__inner {
  position: relative;
  z-index: 1;
}

.resource-detail-hero h1 {
  max-width: 14ch;
  margin: 0 0 1.2rem;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
}

.resource-detail-hero .lead {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
}

.resource-detail-copy {
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}

.resource-detail-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.resource-detail-summary {
  position: sticky;
  top: 7.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}

.resource-detail-summary ul {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.resource-detail-summary li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.resource-detail-sections {
  display: grid;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.resource-detail-section {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(246, 246, 244, 0.018);
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.resource-detail-section__number {
  color: var(--red-bright);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
}

.resource-detail-section h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 400;
}

.resource-detail-section p {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.68;
}

.resource-detail-list,
.resource-checklist {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.resource-detail-list li,
.resource-checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.5;
}

.resource-detail-list li::before,
.resource-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
}

.resource-checklist li::before {
  top: 0.42em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0;
}

/* ---------- Service landing pages ---------- */

.service-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 15vh, 10rem) 0 clamp(4rem, 10vh, 7rem);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.service-hero__mesh {
  position: absolute;
  right: -9%;
  top: 3rem;
  width: min(64rem, 72vw);
  color: rgba(236, 28, 36, 0.55);
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

.service-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.service-hero h1 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 6.8vw, 6rem);
}

.service-hero .lead {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.service-hero__panel {
  border: 1px solid rgba(246, 246, 244, 0.16);
  border-top-color: rgba(236, 28, 36, 0.75);
  background: rgba(246, 246, 244, 0.035);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.service-hero__panel h2 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.service-checklist {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-problem {
  padding-bottom: clamp(3.5rem, 8vh, 5rem);
}

.service-work {
  background: var(--panel);
  border-block: 1px solid var(--line-soft);
}

.service-signal-grid,
.service-work-grid,
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.service-signal,
.service-work-item,
.service-card {
  min-height: 15rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(246, 246, 244, 0.018);
}

.service-signal h3,
.service-work-item h3,
.service-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
}

.service-signal p,
.service-work-item p,
.service-card p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-problem__lead,
.service-work__lead,
.service-deliverables__lead {
  margin-top: -1.6rem;
  margin-bottom: 2rem;
}

.service-problem__lead p,
.service-work__lead p,
.service-deliverables__lead p {
  max-width: 48ch;
  color: var(--muted);
}

.service-work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-work-item {
  min-height: 12rem;
}

.service-work-item h3 {
  max-width: 15ch;
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
}

.service-work-item p {
  font-size: 0.92rem;
}

.service-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-process {
  background: var(--panel);
  border-block: 1px solid var(--line-soft);
}

.service-process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.service-process-step {
  min-height: 16rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.service-process-step:first-child {
  border-left: 1px solid var(--line-soft);
}

.service-process-step h3 {
  max-width: 12ch;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.service-process-step p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.96rem;
}

.service-outcomes {
  padding-block: clamp(3.5rem, 8vh, 5rem);
  background: var(--red-surface);
  color: #fff;
}

.service-outcomes__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.service-outcomes h2 {
  max-width: 13ch;
  margin: 0;
}

.service-outcomes .service-checklist li {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.service-outcomes .dot {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
}

.service-faq .faq-list {
  margin-left: auto;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 3rem 1.3rem 0;
  font-size: 1.08rem;
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--red-bright);
}

.faq-item__icon {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--red-bright);
  transition: transform 0.3s var(--ease);
}

.faq-item__icon::before {
  left: 0;
  top: 6px;
  width: 13px;
  height: 1px;
}

.faq-item__icon::after {
  left: 6px;
  top: 0;
  width: 1px;
  height: 13px;
}

.faq-item[open] .faq-item__icon::after {
  transform: scaleY(0);
}

.faq-item p {
  padding: 0 0 1.4rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding-bottom: 2rem;
}

.final-cta__inner h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

/* ---------- Contact ---------- */

.contact-page {
  padding-top: clamp(7rem, 14vh, 10rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.4rem;
  align-items: stretch;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  background: var(--red-surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.contact-panel__mesh {
  position: absolute;
  inset: 8% -20% auto;
  width: 140%;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0.55;
}

.contact-panel img {
  position: relative;
  width: 120px;
  height: auto;
}

.contact-panel__meta {
  position: relative;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-panel__meta p {
  margin-bottom: 0.3rem;
}

.contact-panel__meta a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-panel__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 0 !important;
  font-size: 1rem;
  font-weight: 500;
}

.contact-panel__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}

.contact-panel__phone-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-body {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.contact-body h1,
.contact-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

/* ---------- Form ---------- */

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.4rem;
  margin-top: 2rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s var(--ease);
}

.field select {
  appearance: none;
  color-scheme: dark;
  padding-right: 2.8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(246, 246, 244, 0.62) 50%),
    linear-gradient(135deg, rgba(246, 246, 244, 0.62) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 50%,
    calc(100% - 0.85rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.35rem 0.35rem;
}

.field select:required:invalid {
  color: rgba(246, 246, 244, 0.36);
}

.field select option {
  background: var(--bg-deep);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line);
  border-left-color: var(--red);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-left-color: var(--red-bright);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246, 246, 244, 0.3);
}

.field-error {
  min-height: 1.1em;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--red-bright);
}

.privacy-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.6rem;
}

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

.form-status[data-type="success"] {
  color: #7ddf9a;
}

.form-status[data-type="error"] {
  color: var(--red-bright);
}

/* ---------- Booking modal ---------- */

body.has-modal-open {
  overflow: hidden;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(7, 8, 9, 0.78);
  backdrop-filter: blur(8px);
  color: var(--text);
}

.booking-modal.is-open,
.booking-modal:target {
  display: grid;
}

.booking-modal__inner {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.booking-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line-soft);
  background: var(--bg-deep);
  color: var(--text);
  cursor: pointer;
}

.booking-modal__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  border-color: var(--red);
  color: #fff;
}

.booking-modal__head {
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  padding-right: 5rem;
}

.booking-modal__head h2 {
  max-width: 13ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.booking-modal__head p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.1rem);
  line-height: 1.55;
}

.booking-form {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.booking-form__grid {
  margin-top: 0;
}

/* ---------- Cookie consent ---------- */

.cookie-consent {
  position: fixed;
  right: auto;
  bottom: 1rem;
  left: 50%;
  z-index: 140;
  display: grid;
  width: min(900px, calc(100% - 2rem));
  gap: 1rem;
  border: 1px solid rgba(246, 246, 244, 0.18);
  border-top-color: rgba(236, 28, 36, 0.7);
  background: rgba(20, 22, 23, 0.96);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text);
  box-shadow: 0 1.4rem 3.6rem rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-copy {
  display: grid;
  gap: 0.8rem;
}

.cookie-consent h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.cookie-consent p {
  max-width: 62rem;
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.5;
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  align-items: center;
}

.cookie-consent a,
.cookie-consent-links button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-consent a:hover,
.cookie-consent a:focus-visible,
.cookie-consent-links button:hover,
.cookie-consent-links button:focus-visible {
  color: var(--red-bright);
}

.cookie-consent-panel {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.cookie-consent-panel[hidden],
.cookie-consent-links button[hidden],
.cookie-button[hidden] {
  display: none;
}

.cookie-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line-soft);
  background: rgba(246, 246, 244, 0.025);
  padding: 0.85rem;
}

.cookie-choice span {
  display: grid;
  gap: 0.2rem;
}

.cookie-choice strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.25;
}

.cookie-choice small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.cookie-choice.disabled {
  background: rgba(246, 246, 244, 0.055);
}

.cookie-choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--red);
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cookie-button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  padding: 0.8rem 1rem;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cookie-button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.cookie-button.primary:hover,
.cookie-button.primary:focus-visible {
  border-color: var(--red-deep);
  background: var(--red-deep);
}

.cookie-button.secondary:hover,
.cookie-button.secondary:focus-visible {
  border-color: var(--red);
  background: rgba(236, 28, 36, 0.1);
}

.cookie-button[data-cookie-save] {
  grid-column: 1 / -1;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 82% 24%, rgba(236, 28, 36, 0.12), transparent 30%),
    var(--bg-deep);
  padding-top: clamp(6rem, 14vh, 9rem);
  padding-bottom: clamp(2.4rem, 6vw, 4.6rem);
}

.legal-hero__inner {
  display: block;
}

.legal-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
}

.legal-copy {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.legal-summary {
  position: sticky;
  top: 7rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.2rem;
}

.legal-summary ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.legal-summary li {
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  padding: 0.9rem 0;
}

.legal-summary a,
.legal-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.legal-sections {
  display: grid;
  gap: 1rem;
}

.legal-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(246, 246, 244, 0.04), rgba(246, 246, 244, 0.015));
  padding: clamp(1.3rem, 3vw, 2rem);
}

.legal-card__number {
  color: var(--red-bright);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.2;
  padding-top: 0.28rem;
}

.legal-card h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
}

.legal-card p {
  color: var(--muted);
  max-width: 68ch;
  margin: 0.8rem 0 0;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-card--contact {
  border-color: rgba(236, 28, 36, 0.38);
  background: rgba(236, 28, 36, 0.06);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: 4rem 0 3rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 3rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom > * {
  flex: 1 1 0;
}

.footer-brand img {
  height: 26px;
  width: auto;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.footer-statement {
  color: var(--text) !important;
  font-size: 1rem !important;
}

.footer-brand a {
  color: var(--text-dim);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-column h2 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 0.55rem;
}

.footer-column a:hover {
  color: var(--text);
}

.region-switcher {
  display: flex;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.region-switcher a {
  display: inline;
  margin: 0;
}

.region-switcher a[aria-current="page"] {
  color: var(--red-bright);
}

.footer-region {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.footer-region__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.copyright {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.footer-social__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-social__links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.social-icon:hover {
  background: rgba(236, 28, 36, 0.1);
  border-color: rgba(236, 28, 36, 0.55);
  color: var(--text);
}

.social-icon--disabled {
  cursor: default;
}

.social-icon--disabled:hover {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .service-hero__inner,
  .resources-hero__inner,
  .resource-detail-layout,
  .service-outcomes__inner {
    grid-template-columns: 1fr;
  }

  .service-hero__panel {
    max-width: 44rem;
  }

  .service-signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-work-grid,
  .service-card-grid,
  .service-process-list,
  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-slide {
    grid-template-columns: 1fr 1fr;
  }

  .svc-slide__visual {
    display: none;
  }

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

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

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

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

}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .mega-menu {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__inner {
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
  }

  .mobile-nav {
    display: grid;
    gap: 0;
    background: rgba(22, 25, 26, 0.98);
    border: 1px solid var(--line-soft);
    border-top: 0;
    padding: 0.35rem 1rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.2rem;
    border-top: 1px solid var(--line-soft);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-nav__section {
    border-top: 1px solid var(--line-soft);
    padding: 0.8rem 0 0.35rem;
  }

  .mobile-nav__section:first-child {
    border-top: 0;
  }

  .mobile-nav__section p {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-nav__section a {
    min-height: 2.75rem;
    border-top: 1px solid rgba(246, 246, 244, 0.06);
    padding-left: 0.55rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: none;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    color: #fff;
  }

  .mobile-nav__contact {
    color: var(--red-bright) !important;
  }

  .mobile-nav__contact svg {
    width: 11px;
    height: 11px;
  }

  .hero {
    min-height: 0;
    padding-top: 6rem;
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sec-head {
    flex-direction: column;
    gap: 0.6rem;
  }

  .why__head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sec-head h2 {
    text-align: left;
  }

  .sec-head h2 br,
  .why__head h2 br {
    display: none;
  }

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

  .why-proof {
    min-height: auto;
  }

  .service-hero h1 {
    max-width: none;
  }

  .resources-hero h1 {
    max-width: none;
  }

  .service-hero__mesh {
    width: 58rem;
    right: -20rem;
  }

  .service-signal-grid,
  .service-work-grid,
  .service-card-grid,
  .service-process-list,
  .resource-card-grid {
    grid-template-columns: 1fr;
  }

  .service-signal,
  .service-work-item,
  .service-card,
  .service-process-step,
  .resource-card {
    min-height: auto;
  }

  .service-process-step {
    border-left: 1px solid var(--line-soft);
  }

  .service-faq .faq-list {
    margin-left: 0;
  }

  .svc-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border: 0;
    background: transparent;
    padding-bottom: 0.6rem;
  }

  .svc-tabs::-webkit-scrollbar {
    display: none;
  }

  .svc-tabs a {
    flex: 0 0 min(76vw, 20rem);
    min-height: 7.2rem;
    scroll-snap-align: start;
    border: 1px solid var(--line-soft);
  }

  .svc-tabs a:first-child {
    border-left: 1px solid var(--line-soft);
  }

  .svc-tabs__label {
    max-width: 22ch;
  }

  .lead--right {
    margin-left: 0;
    text-align: left;
  }

  .svc-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .company-hero__inner,
  .company-layout,
  .company-block,
  .company-cta__inner,
  .resource-detail-section,
  .legal-layout,
  .legal-card {
    grid-template-columns: 1fr;
  }

  .company-hero h1,
  .resource-detail-hero h1 {
    max-width: none;
  }

  .resource-detail-summary {
    position: static;
  }

  .legal-summary {
    position: static;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom > * {
    flex: 0 1 auto;
  }

  .footer-region {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }

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

  .contact-panel {
    min-height: 320px;
  }

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

  .booking-modal {
    align-items: start;
    padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem max(0.5rem, env(safe-area-inset-bottom));
  }

  .booking-modal__inner {
    width: 100%;
    max-height: calc(100dvh - 1rem);
  }

  .booking-modal__head {
    padding: 1.25rem 4.1rem 1.25rem 1.35rem;
  }

  .booking-modal__head h2 {
    max-width: none;
    margin-bottom: 0.65rem;
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1.08;
  }

  .booking-modal__head p:not(.eyebrow) {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .booking-modal__close {
    top: 1rem;
    right: 1rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .booking-form {
    padding: 1.25rem 1.35rem 1.45rem;
  }

  .booking-form .form-grid {
    gap: 0.9rem;
  }

  .booking-form .field label {
    margin-bottom: 0.4rem;
    font-size: 0.64rem;
  }

  .booking-form .field input,
  .booking-form .field select,
  .booking-form .field textarea {
    min-height: 3rem;
    padding-block: 0.75rem;
  }

  .booking-form .field textarea {
    min-height: 7.25rem;
  }

  .cookie-consent {
    bottom: 0.75rem;
    width: min(34rem, calc(100% - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }

  .cookie-button[data-cookie-save] {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 2rem);
  }

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

  .service-signal,
  .service-work-item,
  .service-card,
  .service-process-step,
  .service-hero__panel {
    padding-inline: 1.2rem;
  }

  .button-row .btn {
    width: 100%;
    justify-content: center;
  }
}

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

  .logo-rail__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-rail__track {
    animation: none !important;
  }

  .logo-rail__group[aria-hidden="true"] {
    display: none;
  }

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