:root {
  --sap-deep: #071428;
  --sap-indigo: #12183f;
  --sap-royal: #0b3a6e;
  --sap-mid: #165a9c;
  --sap-cyan: #5ec8d8;
  --sap-glass: #7ad4e0;
  --sap-mist: #c5eaf2;
  --sap-white: #f4f9ff;
  --sap-text: #e8f1fb;
  --sap-muted: #9bb4cc;
  --sap-panel: rgba(18, 40, 78, 0.55);
  --sap-panel-strong: rgba(11, 58, 110, 0.72);
  --sap-border: rgba(122, 212, 224, 0.28);
  --sap-glow: rgba(94, 200, 216, 0.35);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --radius: 4px;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sap-text);
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(94, 200, 216, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(22, 90, 156, 0.45), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(18, 24, 63, 0.9), transparent 60%),
    linear-gradient(165deg, var(--sap-deep) 0%, var(--sap-indigo) 42%, #0a2a52 100%);
  background-attachment: fixed;
}

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

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

a:hover {
  color: var(--sap-white);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sap-white);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

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

/* Crystal surface utility */
.crystal {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    var(--sap-panel) 40%,
    rgba(11, 58, 110, 0.4) 100%
  );
  border: 1px solid var(--sap-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(7, 20, 40, 0.35),
    0 18px 40px rgba(7, 20, 40, 0.35);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 20, 40, 0.78);
  border-bottom: 1px solid var(--sap-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sap-white);
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--sap-border);
  color: var(--sap-white);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--sap-cyan);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--sap-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sap-white);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--sap-cyan);
  padding-bottom: 0.15rem;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--sap-glass);
  outline-offset: 3px;
}

.btn-primary {
  color: var(--sap-deep);
  background: linear-gradient(120deg, var(--sap-mist), var(--sap-glass) 45%, var(--sap-cyan));
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: var(--sap-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--sap-white);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--sap-border);
}

.btn-ghost:hover {
  color: var(--sap-white);
  background: rgba(94, 200, 216, 0.12);
  border-color: var(--sap-glass);
}

/* Crystalline waveform on primary buttons */
.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  animation: waveform 1.6s ease-out infinite;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  animation: waveform 1.6s ease-out 0.35s infinite;
}

@keyframes waveform {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

@keyframes echo-line {
  0% {
    stroke-dashoffset: 120;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.animate-in {
  animation: rise 0.7s ease both;
}

.animate-in-delay {
  animation: rise 0.7s ease 0.15s both;
}

.animate-in-delay-2 {
  animation: rise 0.7s ease 0.3s both;
}

/* Hero — full-bleed; center variant used on this site */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero--center {
  align-items: center;
  text-align: center;
}

.hero--center .hero-content {
  margin-inline: auto;
  max-width: 42rem;
  padding: 5rem 0;
}

.hero--center .hero-lead {
  margin-inline: auto;
}

.hero--center .hero-actions {
  justify-content: center;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sap-cyan);
}

.hero--center .hero-media::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(7, 20, 40, 0.25) 0%, rgba(7, 20, 40, 0.78) 70%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.55) 0%, rgba(7, 20, 40, 0.88) 100%);
}

.hero--center .hero-echo {
  inset: auto 0 28% 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 40, 0.35) 0%, rgba(7, 20, 40, 0.55) 40%, rgba(7, 20, 40, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 20, 40, 0.75) 0%, transparent 55%);
}

.hero-echo {
  position: absolute;
  inset: auto 0 18% 0;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.hero-echo path {
  fill: none;
  stroke: var(--sap-glass);
  stroke-width: 1.5;
  stroke-dasharray: 120;
  animation: echo-line 3.5s ease-in-out infinite alternate;
}

.hero-echo path:nth-child(2) {
  stroke: var(--sap-cyan);
  opacity: 0.6;
  animation-delay: 0.4s;
}

.hero-echo path:nth-child(3) {
  stroke: var(--sap-mist);
  opacity: 0.4;
  animation-delay: 0.8s;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--sap-white);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--sap-mist);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--sap-muted);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sap-cyan);
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split-reverse .split-media {
    order: -1;
  }
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--sap-border);
  min-height: 280px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 200, 216, 0.15), transparent 50%);
  pointer-events: none;
  animation: shimmer 5s ease-in-out infinite;
}

/* Offer preview list — not cards by default; interaction containers for links */
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.offer-list a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.offer-list a:hover {
  border-color: var(--sap-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.offer-list img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
}

.offer-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.offer-list p {
  margin: 0;
  color: var(--sap-muted);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .offer-list a {
    grid-template-columns: 1fr;
  }

  .offer-list img {
    width: 100%;
    height: 160px;
  }
}

/* Service grid for /services/ */
.service-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-link:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: var(--sap-glass);
}

.service-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-link .service-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}

.service-link h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--sap-cyan);
}

/* Evidence / quotes */
.quote-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.quote-list blockquote {
  margin: 0;
  padding: 1.5rem;
  height: 100%;
}

.quote-list p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--sap-white);
  margin-bottom: 1.25rem;
}

.quote-list footer {
  font-size: 0.85rem;
  color: var(--sap-muted);
}

.quote-list cite {
  font-style: normal;
  color: var(--sap-glass);
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 2rem;
}

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

.blog-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.blog-item:hover {
  color: inherit;
  transform: translateY(-3px);
}

.blog-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-item .blog-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.blog-item time {
  font-size: 0.8rem;
  color: var(--sap-cyan);
  letter-spacing: 0.04em;
}

.blog-item h2 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.4rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--sap-border);
  margin-bottom: 0;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
}

.page-hero p {
  max-width: 38rem;
  color: var(--sap-muted);
  margin: 0;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--sap-muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid rgba(122, 212, 224, 0.12);
  color: var(--sap-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--sap-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--sap-glow);
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  counter-increment: step;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  position: relative;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sap-cyan);
}

.process-steps h3 {
  margin: 0 0 0.4rem;
}

.process-steps p {
  margin: 0;
  color: var(--sap-muted);
}

/* Team */
.team-grid {
  display: grid;
  gap: 1.5rem;
}

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

.team-member {
  overflow: hidden;
  border-radius: var(--radius);
}

.team-member img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}

.team-member .team-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.team-member h3 {
  margin: 0 0 0.2rem;
}

.team-member .role {
  color: var(--sap-cyan);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.team-member p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sap-muted);
}

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--sap-mist);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--sap-white);
  background: rgba(7, 20, 40, 0.55);
  border: 1px solid var(--sap-border);
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--sap-glass);
  box-shadow: 0 0 0 3px rgba(94, 200, 216, 0.2);
}

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

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #ffb4b4;
}

.form-row.is-invalid .field-error {
  display: block;
}

.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea {
  border-color: #e07070;
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  background: rgba(94, 200, 216, 0.15);
  border: 1px solid var(--sap-cyan);
  color: var(--sap-mist);
}

.form-status.is-error {
  display: block;
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid #e07070;
  color: #ffc9c9;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sap-cyan);
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--sap-muted);
}

.contact-details a {
  text-decoration: none;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--sap-border);
  background: rgba(7, 20, 40, 0.55);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1.1rem;
  margin: 0 0 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

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

.site-footer a:hover {
  color: var(--sap-white);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sap-white);
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(122, 212, 224, 0.12);
  font-size: 0.8rem;
  color: var(--sap-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 420px;
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.45s ease both;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--sap-muted);
}

.cookie-banner a {
  color: var(--sap-glass);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner .btn {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.js-error {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: rgba(180, 60, 60, 0.25);
  border: 1px solid #e07070;
  color: #ffc9c9;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

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

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--sap-cyan);
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 40px var(--sap-glow);
}

/* Detail layout */
.detail-hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 1rem;
}

@media (min-width: 860px) {
  .detail-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.detail-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--sap-border);
}

.pricing-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--sap-muted);
}

.pricing-note strong {
  color: var(--sap-white);
  font-weight: 500;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 20, 40, 0.96);
    border-bottom: 1px solid var(--sap-border);
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(122, 212, 224, 0.1);
  }
}
