:root {
  --sapphire-deep: #071536;
  --sapphire: #0b1f5c;
  --sapphire-mid: #1a3a8f;
  --indigo-shadow: #1a1040;
  --cyan-glass: #5ec8d8;
  --cyan-soft: #7dd3e8;
  --frost: #e8f4fc;
  --white: #f7fbff;
  --ink: #0d1830;
  --ink-soft: #3a4a68;
  --glass: rgba(232, 244, 252, 0.12);
  --glass-strong: rgba(232, 244, 252, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 200, 216, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(26, 58, 143, 0.22), transparent 50%),
    linear-gradient(165deg, #dceaf8 0%, #b8cce8 35%, #9bb4dc 70%, #a8c0e0 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.65;
}

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

a {
  color: var(--sapphire-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 21, 54, 0.88), rgba(7, 21, 54, 0.72));
  border-bottom: 1px solid rgba(125, 211, 232, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

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

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--frost), transparent 45%),
    radial-gradient(circle at 70% 70%, var(--cyan-glass), transparent 50%),
    linear-gradient(135deg, var(--sapphire-mid), var(--indigo-shadow));
  box-shadow: 0 0 0 1px rgba(125, 211, 232, 0.45);
  animation: crystal-pulse 4.5s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(232, 244, 252, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--frost);
}

/* Hero - stacked brand composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--frost);
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 54, 0.35) 0%, rgba(7, 21, 54, 0.55) 40%, rgba(7, 21, 54, 0.92) 100%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(94, 200, 216, 0.25), transparent 60%);
}

.hero-waves {
  position: absolute;
  inset: auto 0 18% 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-radial-gradient(
      ellipse at 50% 100%,
      transparent 0,
      transparent 18px,
      rgba(125, 211, 232, 0.35) 19px,
      transparent 22px
    );
  animation: wave-drift 12s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  animation: rise-in 0.9s ease-out both;
}

.hero-line {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(232, 244, 252, 0.9);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  animation: rise-in 1s ease-out 0.15s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 1.05s ease-out 0.28s both;
}

/* Buttons with crystalline waveform */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 232, 0.7);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: crystal-wave 1.1s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-glass), var(--sapphire-mid));
  color: var(--white);
  border-color: rgba(232, 244, 252, 0.25);
}

.btn-primary:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-soft), var(--sapphire));
}

.btn-ghost {
  background: var(--glass);
  color: var(--frost);
  border-color: rgba(125, 211, 232, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--cyan-soft);
}

.btn-solid {
  background: var(--sapphire);
  color: var(--frost);
  border-color: var(--sapphire-mid);
}

.btn-solid:hover {
  color: var(--white);
  background: var(--sapphire-mid);
}

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

.section-tight {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 600;
  color: var(--sapphire);
  margin: 0 0 0.65rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.panel {
  background:
    linear-gradient(145deg, rgba(247, 251, 255, 0.72), rgba(232, 244, 252, 0.45)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  border: 1px solid rgba(26, 58, 143, 0.14);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 40px rgba(7, 21, 54, 0.08);
}

.panel-pad {
  padding: 1.75rem;
}

/* Offer strip - primary service spotlight */
.offer-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.offer-spotlight img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(7, 21, 54, 0.2);
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.offer-meta span {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(94, 200, 216, 0.55);
}

/* Service previews */
.service-list {
  display: grid;
  gap: 1.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-row:hover {
  transform: translateX(4px);
  background: rgba(247, 251, 255, 0.55);
}

.service-row img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--sapphire);
}

.service-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-row .arrow {
  color: var(--cyan-glass);
  font-size: 1.4rem;
  padding-right: 0.5rem;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-block {
  overflow: hidden;
}

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

.service-block .panel-pad h2,
.service-block .panel-pad h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--sapphire);
  font-size: 1.35rem;
}

.service-block .panel-pad p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Evidence / clients */
.evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quote {
  padding: 1.5rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--sapphire);
  margin: 0 0 1rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.25rem 0 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sapphire);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--sapphire);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-item {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s ease;
}

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

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

.blog-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sapphire);
  margin: 0 0 0.5rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

/* Pricing */
.price-list {
  display: grid;
  gap: 1rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 1.5rem;
}

.price-row h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--sapphire);
  font-size: 1.2rem;
}

.price-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-amt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sapphire-mid);
  white-space: nowrap;
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sapphire);
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 58, 143, 0.25);
  border-radius: var(--radius);
  background: rgba(247, 251, 255, 0.85);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--cyan-glass);
  outline-offset: 1px;
}

.field-error {
  color: #8b1e3f;
  font-size: 0.8rem;
  font-weight: 400;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.form-status[data-state="success"] {
  background: rgba(94, 200, 216, 0.2);
  border: 1px solid rgba(94, 200, 216, 0.5);
  color: var(--sapphire);
}

.form-status[data-state="error"] {
  background: rgba(139, 30, 63, 0.08);
  border: 1px solid rgba(139, 30, 63, 0.35);
  color: #8b1e3f;
}

/* Health reports custom page */
.report-stages {
  display: grid;
  gap: 0;
  counter-reset: stage;
}

.report-stage {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(26, 58, 143, 0.15);
}

.report-stage:last-child {
  border-bottom: 0;
}

.report-stage::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cyan-glass);
  line-height: 1;
}

.report-stage h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  color: var(--sapphire);
}

.report-stage p {
  margin: 0;
  color: var(--ink-soft);
}

.sample-report {
  margin-top: 2.5rem;
  padding: 2rem;
}

.sample-report h3 {
  font-family: var(--font-display);
  color: var(--sapphire);
  margin: 0 0 1rem;
}

.sample-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.sample-metrics div {
  padding: 1rem;
  background: rgba(7, 21, 54, 0.04);
  border-left: 2px solid var(--cyan-glass);
}

.sample-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sapphire);
}

.sample-metrics span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* About team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.team-member h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  color: var(--sapphire);
  font-size: 1.1rem;
}

.team-member p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, var(--sapphire) 0%, var(--indigo-shadow) 100%);
  color: rgba(232, 244, 252, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(125, 211, 232, 0.2);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--frost);
  margin: 0 0 0.5rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.footer-contact a,
.footer-nav a {
  color: var(--cyan-soft);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--frost);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-base {
  padding-top: 1.25rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 21, 54, 0.96), rgba(26, 16, 64, 0.98));
  border-top: 1px solid rgba(125, 211, 232, 0.3);
  padding: 1rem 0;
  color: var(--frost);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9rem;
}

.cookie-inner a {
  color: var(--cyan-soft);
}

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

.form-error {
  color: #ffb4c4;
  font-size: 0.85rem;
  text-align: center;
  margin: 0.5rem 0 0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--sapphire);
  margin: 0 0 0.5rem;
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes crystal-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(125, 211, 232, 0.45), 0 0 12px rgba(94, 200, 216, 0.2);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(125, 211, 232, 0.65), 0 0 20px rgba(94, 200, 216, 0.35);
  }
}

@keyframes crystal-wave {
  0% {
    opacity: 0.8;
    width: 8px;
    height: 8px;
  }
  100% {
    opacity: 0;
    width: 120px;
    height: 120px;
  }
}

@keyframes wave-drift {
  from {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-8px) scaleY(1.08);
  }
  to {
    transform: translateY(0) scaleY(1);
  }
}

/* Responsive */
.split-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .offer-spotlight,
  .evidence,
  .grid-services,
  .blog-grid,
  .team-grid,
  .footer-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .service-row .arrow {
    display: none;
  }

  .sample-metrics {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 21, 54, 0.97);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .price-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 1.5rem);
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
