@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #001f3f;
  --muted-ink: #000000;
  --paper: #ffffff;
  --white: #ffffff;
  --soft: #f6fbff;
  --line: #e8edf0;
  --blue: #001f3f;
  --blue-soft: #eaf4ff;
  --teal: #078d52;
  --teal-dark: #056d41;
  --gold: #d6a313;
  --charcoal: #00172f;
  --shadow: 0 20px 50px rgba(0, 31, 63, 0.12);
  --heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --page-pad: clamp(20px, 6vw, 86px);
  --mx: 50vw;
  --my: 35vh;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(7, 141, 82, 0.12), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 70px);
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(6, 58, 112, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 150px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-color: currentColor;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 42%, rgba(7, 141, 82, 0.16), transparent 21rem),
    radial-gradient(circle at 70% 76%, rgba(214, 163, 19, 0.12), transparent 15rem),
    linear-gradient(120deg, #ffffff 0%, #f7fbff 100%);
  --hero-x: 70%;
  --hero-y: 42%;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("assets/frankfurt-hero.png") center / cover no-repeat;
  filter: saturate(1.26) contrast(1.06);
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle 230px at var(--hero-x) var(--hero-y), #000 0 42%, transparent 74%);
  mask-image: radial-gradient(circle 230px at var(--hero-x) var(--hero-y), #000 0 42%, transparent 74%);
  transition: opacity 180ms ease;
}

.hero.is-spotlight::before {
  opacity: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.9;
  filter: saturate(1.16) contrast(1.02);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.74) 45%, rgba(255, 255, 255, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.68));
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 70px;
}

.hero-logo {
  width: min(560px, 78vw);
  object-fit: contain;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  filter: none;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  backdrop-filter: none;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.motion-orb,
.motion-line {
  position: absolute;
  display: block;
  opacity: 0.8;
  will-change: transform;
}

.motion-orb {
  width: clamp(160px, 20vw, 300px);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(1px);
  animation: drift 10s ease-in-out infinite alternate;
}

.motion-orb-blue {
  right: 9vw;
  top: 22%;
  background: radial-gradient(circle, rgba(6, 58, 112, 0.2), rgba(6, 58, 112, 0.02) 68%, transparent 70%);
}

.motion-orb-green {
  right: 28vw;
  bottom: 14%;
  width: clamp(120px, 15vw, 220px);
  background: radial-gradient(circle, rgba(7, 141, 82, 0.22), rgba(7, 141, 82, 0.03) 64%, transparent 70%);
  animation-delay: -4s;
}

.motion-line {
  width: clamp(240px, 34vw, 520px);
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), var(--gold), transparent);
  animation: data-sweep 5.5s ease-in-out infinite;
}

.motion-line-one {
  right: 7vw;
  top: 32%;
  rotate: -14deg;
}

.motion-line-two {
  right: 16vw;
  bottom: 26%;
  rotate: 9deg;
  animation-delay: -2.4s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p,
li {
  color: var(--muted-ink);
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--heading-font);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 600;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.service-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--blue);
  filter: drop-shadow(8px 8px 16px rgba(6, 58, 112, 0.12));
  transition: color 180ms ease, transform 180ms ease;
}

.service-card:nth-child(3n + 2) .service-icon {
  color: var(--teal);
}

.service-card:nth-child(3n) .service-icon {
  color: var(--gold);
}

.service-card:hover .service-icon {
  transform: translateY(-3px) rotate(-3deg);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted-ink);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--teal);
}

.button.secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(6, 58, 112, 0.22);
}

.button.secondary:hover {
  border-color: var(--teal);
  background: var(--white);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid rgba(7, 141, 82, 0.32);
}

.text-link:hover {
  color: var(--teal);
  border-color: var(--gold);
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 118px) var(--page-pad);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(246, 251, 255, 0.54) 100%),
    var(--white);
  overflow: hidden;
}

.section::before,
.contact-section::before,
.site-footer::before {
  display: none;
  content: none;
}

.section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: min(38vw, 440px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 58, 112, 0.07), rgba(7, 141, 82, 0.04) 48%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.muted {
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.78) 0%, rgba(255, 255, 255, 0.86) 44%, rgba(240, 250, 246, 0.74) 100%),
    var(--white);
}

.section:nth-of-type(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 251, 255, 0.78) 54%, rgba(255, 250, 235, 0.42) 100%),
    var(--white);
}

.section:nth-of-type(odd) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 250, 246, 0.58) 100%),
    var(--white);
}

.section-heading {
  margin-bottom: 42px;
}

.about-hero-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: clamp(40px, 7vw, 108px);
  align-items: center;
}

.about-hero-heading img {
  width: 100%;
  object-fit: contain;
}

.about-hero-logo {
  max-width: 420px;
  justify-self: end;
  filter: drop-shadow(0 20px 34px rgba(0, 31, 63, 0.1));
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 96px);
}

.intro-grid {
  align-items: start;
  color: var(--muted-ink);
  font-size: 18px;
}

.intro-single {
  grid-template-columns: minmax(0, 0.86fr);
}

.painpoint-copy {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.painpoint-copy p {
  margin: 0;
}

.painpoint-icon {
  width: 86px;
  height: 86px;
  color: var(--blue);
  overflow: visible;
}

.painpoint-icon path,
.painpoint-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.painpoint-icon .painpoint-icon-accent {
  stroke: var(--teal);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.trust-copy {
  color: var(--muted-ink);
  font-size: 18px;
}

.trust-image {
  margin: 0;
  min-height: 320px;
}

.trust-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: drop-shadow(0 24px 48px rgba(6, 58, 112, 0.14));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}

.service-card {
  display: block;
  min-height: 0;
  padding: 0 0 26px;
  border: 0;
  border-bottom: 2px solid rgba(6, 58, 112, 0.14);
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateX(8px);
  border-color: var(--teal);
}

.service-card-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1fr);
  gap: 22px;
  align-items: center;
}

.service-card-media img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.home-service-grid,
.service-overview-grid {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  min-height: clamp(430px, 48vw, 620px);
  border-top: 0;
  border-bottom: 0;
  overflow: hidden;
}

.home-service-grid .service-card,
.service-overview-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 0;
  min-height: inherit;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 0;
  border-left: 1px solid rgba(6, 58, 112, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  transition:
    flex 320ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.home-service-grid .service-card:first-child,
.service-overview-card:first-child {
  border-left: 0;
}

.home-service-grid .service-card::before,
.service-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(6, 58, 112, 0.18), rgba(7, 141, 82, 0.08), rgba(214, 163, 19, 0.08));
  opacity: 1;
  transition:
    opacity 220ms ease,
    background 220ms ease;
}

.home-service-grid .service-card:hover,
.service-overview-card:hover {
  flex-grow: 1.5;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 58px rgba(6, 58, 112, 0.16);
}

.home-service-grid .service-card:hover::before,
.service-overview-card:hover::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(6, 58, 112, 0.02), rgba(7, 141, 82, 0.015), rgba(214, 163, 19, 0.01));
}

.home-service-grid .service-card > div,
.service-overview-card > div {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 100%;
  max-width: 430px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(4px);
  transition: background 220ms ease;
}

.home-service-grid .service-card:hover > div,
.service-overview-card:hover > div {
  background: rgba(255, 255, 255, 0.28);
}

.home-service-grid .service-card-media {
  display: block;
}

.home-service-grid .service-card-media img,
.service-overview-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(0.62) saturate(0.24) contrast(0.96);
  transform: scale(1.04);
  transition:
    opacity 260ms ease,
    transform 320ms ease,
    filter 320ms ease;
}

.home-service-grid .service-card:hover img,
.service-overview-card:hover img {
  opacity: 1;
  transform: scale(1.08);
  filter: grayscale(0) saturate(1.2) contrast(1.06);
}

.service-overview-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 60%, var(--teal) 60% 90%, var(--gold) 90% 100%);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.service-overview-card:hover::after {
  transform: scaleX(1);
}

.service-card p,
.benefit p,
.process p,
.contact-copy p,
.site-footer p {
  color: var(--muted-ink);
}

.benefit-list {
  display: grid;
  gap: 22px;
}

.benefit {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(6, 58, 112, 0.16);
}

.process article {
  display: grid;
  grid-template-columns: minmax(52px, 0.18fr) minmax(160px, 0.7fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid rgba(6, 58, 112, 0.16);
  background: transparent;
  box-shadow: none;
}

.process span {
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 0;
  color: var(--gold);
  background: transparent;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

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

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 7vw, 90px);
  padding: clamp(70px, 9vw, 118px) clamp(20px, 6vw, 86px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.82) 0%, #ffffff 48%, rgba(255, 250, 235, 0.6) 100%),
    var(--white);
  border-top: 0;
  overflow: hidden;
}

.contact-section h2 {
  color: var(--ink);
}

.contact-copy p {
  max-width: 660px;
  color: var(--muted-ink);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.contact-details a,
.contact-details span {
  color: var(--gold);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--ink);
  border: 0;
  border-top: 3px solid var(--blue);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 70px rgba(6, 58, 112, 0.12);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(13, 107, 104, 0.16);
}

.form-note {
  margin: 0;
  color: var(--muted-ink);
  font-size: 14px;
}

.data-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 58, 112, 0.06), rgba(7, 141, 82, 0.05), rgba(214, 163, 19, 0.04)),
    #ffffff;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 44px;
}

.metric {
  position: relative;
  padding-bottom: 20px;
}

.metric::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 60%, var(--teal) 60% 90%, var(--gold) 90% 100%);
  transform-origin: left center;
  animation: grow-line 1.8s ease both;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
  font-weight: 600;
}

.metric span {
  color: var(--muted-ink);
  font-weight: 700;
}

.flow-visual {
  display: grid;
  gap: 18px;
}

.flow-visual div {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.flow-visual span {
  color: var(--blue);
  font-weight: 800;
}

.flow-visual b {
  display: block;
  width: var(--level);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
  animation: pulse-bar 2.8s ease-in-out infinite;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.3fr);
  gap: clamp(34px, 6vw, 86px);
  padding: 46px clamp(20px, 6vw, 86px) 28px;
  border-top: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(246, 251, 255, 0.96) 100%),
    var(--white);
}

.site-footer p {
  margin: 8px 0 0;
  max-width: 460px;
  color: var(--muted-ink);
}

.footer-brand strong {
  color: var(--blue);
  font-size: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 48px);
}

.footer-links nav {
  display: grid;
  align-content: start;
  gap: 10px;
  font-weight: 700;
}

.footer-links nav strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--blue);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 12px;
  padding-top: 20px;
  color: var(--muted-ink);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.legal-page {
  padding-top: 78px;
}

.legal-content {
  max-width: 920px;
  color: var(--muted-ink);
  font-size: 18px;
}

.legal-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
}

.blog-card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(6, 58, 112, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(6, 58, 112, 0.15);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.blog-card > div {
  display: grid;
  align-content: start;
  padding: 24px;
}

.blog-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.blog-article {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 clamp(70px, 9vw, 120px);
}

.article-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid rgba(7, 141, 82, 0.32);
}

.article-back:hover {
  color: var(--teal);
  border-color: var(--gold);
}

.article-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 34px;
  box-shadow: 0 20px 54px rgba(6, 58, 112, 0.12);
}

.article-content {
  max-width: 760px;
  color: var(--muted-ink);
  font-size: 19px;
}

.service-title-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--gold);
}

.detail-page {
  padding-top: 78px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(7, 141, 82, 0.1), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #ffffff 100%);
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: 640px;
  padding: clamp(82px, 10vw, 140px) clamp(20px, 6vw, 86px) clamp(62px, 8vw, 104px);
  overflow: hidden;
}

.detail-hero::before {
  display: none;
  content: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-hero-image {
  margin: 0;
}

.detail-hero-image img {
  width: 100%;
  min-height: clamp(320px, 36vw, 520px);
  object-fit: cover;
  filter: saturate(1.12) contrast(1.02) drop-shadow(0 28px 60px rgba(6, 58, 112, 0.16));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding: 0 clamp(20px, 6vw, 86px) clamp(78px, 10vw, 132px);
}

.detail-nav {
  position: sticky;
  top: 118px;
  order: 2;
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.detail-nav strong {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-nav a {
  position: relative;
  display: block;
  padding: 12px 0 12px 18px;
  color: var(--muted-ink);
  font-weight: 800;
  border-left: 3px solid rgba(6, 58, 112, 0.16);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.detail-nav a:hover {
  color: var(--blue);
  border-color: var(--teal);
  transform: translateX(6px);
}

.detail-flow {
  display: grid;
  gap: clamp(56px, 8vw, 110px);
}

.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(250px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  scroll-margin-top: 120px;
}

.detail-block:nth-child(even) > div:first-child {
  order: 2;
}

.detail-block:nth-child(even) > .detail-panel {
  order: 1;
}

.detail-block h2 {
  margin-bottom: 20px;
}

.detail-block p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted-ink);
  font-size: 18px;
}

.detail-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 30px);
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 20px 52px rgba(0, 31, 63, 0.12);
}

.detail-panel span {
  display: block;
  padding: 14px 0 14px 18px;
  color: var(--white);
  font-weight: 900;
  border-left: 6px solid var(--blue);
  background: var(--blue);
}

.detail-panel span:nth-child(2) {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.detail-panel span:nth-child(3) {
  color: var(--blue);
  border-color: #d6a313;
  background: #d6a313;
  background-image: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 14px 4px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 680px;
  }

  .intro-grid,
  .split,
  .trust-layout,
  .about-hero-heading,
  .detail-hero,
  .detail-layout,
  .detail-block,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-nav {
    position: static;
    order: 0;
    display: flex;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .detail-nav strong {
    flex-basis: 100%;
  }

  .detail-nav a {
    padding: 10px 14px;
    border-left: 0;
    border-bottom: 2px solid rgba(6, 58, 112, 0.16);
  }

  .detail-nav a:hover {
    transform: translateY(-2px);
  }

  .detail-flow {
    gap: 56px;
  }

  .detail-block:nth-child(even) > div:first-child,
  .detail-block:nth-child(even) > .detail-panel {
    order: initial;
  }

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

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

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

  .process article {
    grid-template-columns: minmax(46px, 0.16fr) minmax(0, 1fr);
  }

  .process article p {
    grid-column: 2;
  }

  .data-strip {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand-logo {
    width: 128px;
    height: 50px;
  }

  .site-nav {
    top: 70px;
  }

  .hero {
    min-height: 760px;
    align-items: end;
    padding-bottom: 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.9) 56%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.46));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 110px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .contact-details {
    flex-direction: column;
  }

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

  .footer-bottom {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .home-service-grid,
  .service-overview-grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .service-grid,
  .process,
  .process article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .home-service-grid .service-card,
  .service-overview-card {
    min-height: 178px;
    padding: 10px;
    border-left: 0;
    border-bottom: 0;
    scroll-snap-align: none;
  }

  .home-service-grid .service-card::before,
  .service-overview-card::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)),
      linear-gradient(135deg, rgba(0, 31, 63, 0.1), rgba(7, 141, 82, 0.08), rgba(214, 163, 19, 0.08));
  }

  .home-service-grid .service-card > div,
  .service-overview-card > div {
    width: 100%;
    min-height: 100%;
    max-width: none;
    padding: 14px 16px;
    align-content: end;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
  }

  .home-service-grid .service-card img,
  .service-overview-card img {
    opacity: 0.9;
    filter: grayscale(0) saturate(1.08) contrast(1.04);
    transform: scale(1.03);
  }

  .home-service-grid .service-card:hover,
  .home-service-grid .service-card:focus-visible,
  .service-overview-card:hover,
  .service-overview-card:focus-visible {
    flex-grow: initial;
    box-shadow: 0 18px 42px rgba(0, 31, 63, 0.16);
  }

  .home-service-grid .service-card:hover > div,
  .home-service-grid .service-card:focus-visible > div,
  .service-overview-card:hover > div,
  .service-overview-card:focus-visible > div {
    background: rgba(255, 255, 255, 0.9);
  }

  .home-service-grid .service-card h3,
  .service-overview-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.05;
  }

  .home-service-grid .service-title-link,
  .service-overview-card .service-title-link {
    align-items: flex-start;
    max-width: 100%;
    white-space: normal;
  }

  .home-service-grid .service-icon,
  .service-overview-card .service-icon {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .home-service-grid .service-card p,
  .service-overview-card p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.32;
  }

  .home-service-grid .text-link,
  .service-overview-card .text-link {
    font-size: 15px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-layout {
    padding-bottom: 70px;
  }

  .painpoint-copy {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .painpoint-icon {
    width: 64px;
    height: 64px;
  }

  .process article p {
    grid-column: auto;
  }

  .flow-visual div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-card {
    min-height: 0;
  }

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

  .contact-form {
    padding: 22px;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-18px, 12px, 0) scale(0.96);
  }
  to {
    transform: translate3d(22px, -16px, 0) scale(1.04);
  }
}

@keyframes data-sweep {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-22px) scaleX(0.82);
  }
  50% {
    opacity: 0.86;
    transform: translateX(22px) scaleX(1);
  }
}

@keyframes grow-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse-bar {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.96);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
