/* Sapphire Echo — Insightful Data Analytics */
:root {
  --sapphire: #0b3d91;
  --sapphire-deep: #071a3a;
  --indigo-shadow: #1a1040;
  --cyan-glass: #5ed0e6;
  --cyan-soft: #a8e8f5;
  --white-highlight: #e8f7ff;
  --glass: rgba(232, 247, 255, 0.08);
  --glass-strong: rgba(94, 208, 230, 0.14);
  --text: #e8f0fa;
  --text-muted: #9bb0c9;
  --line: rgba(94, 208, 230, 0.28);
  --danger: #ff8e9e;
  --ok: #7dffc0;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Sora", sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 208, 230, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(11, 61, 145, 0.55), transparent 50%),
    linear-gradient(165deg, #050e24 0%, var(--sapphire-deep) 42%, #0a2458 72%, var(--indigo-shadow) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

.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: rgba(7, 26, 58, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white-highlight);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--white-highlight), transparent 40%),
    conic-gradient(from 200deg, var(--sapphire), var(--cyan-glass), var(--sapphire-deep), var(--sapphire));
  box-shadow: 0 0 0 1px rgba(94, 208, 230, 0.35), 0 0 18px rgba(94, 208, 230, 0.25);
  animation: pulse-mark 4.5s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.88; }
}

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

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.site-nav a:hover {
  color: var(--cyan-glass);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--glass-strong);
}

.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(--cyan-glass);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(7, 26, 58, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--white-highlight);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--glass-strong);
  color: var(--white-highlight);
  border-color: var(--cyan-glass);
}

.btn-wave {
  background: linear-gradient(120deg, rgba(11, 61, 145, 0.9), rgba(27, 108, 168, 0.85));
  border-color: rgba(94, 208, 230, 0.45);
}

.btn-wave::before,
.btn-wave::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(168, 232, 245, 0.65);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
}

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

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

@keyframes crystal-wave {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.2); }
}

.btn-ghost {
  background: transparent;
}

/* Hero — brand-led, full-bleed, asymmetric */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.45);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 14, 36, 0.92) 0%, rgba(7, 26, 58, 0.72) 48%, rgba(26, 16, 64, 0.45) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(94, 208, 230, 0.04) 18px,
      rgba(94, 208, 230, 0.04) 19px
    );
  background-size: auto, 120% 100%;
  animation: echo-drift 18s linear infinite;
}

@keyframes echo-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 120px 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white-highlight);
  text-shadow: 0 0 40px rgba(94, 208, 230, 0.25);
  animation: rise-in 0.9s ease-out both;
}

.hero-line {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 28rem;
  animation: rise-in 1s ease-out 0.12s both;
}

.hero-actions {
  animation: rise-in 1s ease-out 0.22s both;
}

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

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

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

.section-head h2,
.page-hero h1,
.legal-wrap h1,
.content-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--white-highlight);
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.section-head p,
.lede {
  margin: 0;
  color: var(--text-muted);
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(94, 208, 230, 0.08), transparent 70%);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

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

.page-hero-media {
  margin-top: 2rem;
  max-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
}

.page-hero-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
}

/* Surface panels — translucent crystal depth, not card chrome for decoration */
.surface {
  background:
    linear-gradient(145deg, rgba(232, 247, 255, 0.07), rgba(11, 61, 145, 0.12) 45%, rgba(26, 16, 64, 0.2)),
    rgba(7, 26, 58, 0.35);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(232, 247, 255, 0.12);
  backdrop-filter: blur(8px);
}

.service-list {
  display: grid;
  gap: 1.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  padding: 1.25rem;
  align-items: stretch;
}

.service-row img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  filter: saturate(0.8);
}

.service-row h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white-highlight);
}

.service-row h3 a {
  color: inherit;
  text-decoration: none;
}

.service-row h3 a:hover {
  color: var(--cyan-glass);
}

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

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row img {
    min-height: 180px;
    max-height: 220px;
  }
}

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

.spotlight img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.8) brightness(0.85);
}

.spotlight h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--white-highlight);
}

.spotlight p {
  color: var(--text-muted);
}

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

.feature-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 1px;
  background: var(--cyan-glass);
  box-shadow: 0 0 8px var(--cyan-glass);
}

@media (max-width: 800px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
}

/* Testimonials — quote strip, not metric cards */
.quote-strip {
  display: grid;
  gap: 1.75rem;
}

.quote-item blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--white-highlight);
}

.quote-item cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.blog-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.blog-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.blog-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.blog-item h3 a {
  color: var(--white-highlight);
  text-decoration: none;
}

.blog-item h3 a:hover {
  color: var(--cyan-glass);
}

.blog-meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--cyan-soft);
}

@media (max-width: 640px) {
  .blog-item {
    grid-template-columns: 1fr;
  }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
  filter: saturate(0.85);
}

.team-person h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white-highlight);
}

.team-person .role {
  margin: 0 0 0.5rem;
  color: var(--cyan-soft);
  font-size: 0.88rem;
}

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

@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Process timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline-step {
  position: relative;
  padding: 0 0 2rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan-glass);
  box-shadow: 0 0 0 4px rgba(94, 208, 230, 0.15), 0 0 16px rgba(94, 208, 230, 0.45);
}

.timeline-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white-highlight);
}

.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.form-panel {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--cyan-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(5, 14, 36, 0.55);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

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

.field-error {
  display: none;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--danger);
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger);
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

@media (max-width: 800px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal-wrap {
  padding: 3rem 0 4.5rem;
  max-width: 44rem;
}

.legal-wrap h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.legal-wrap h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--white-highlight);
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-muted);
}

.legal-wrap ul {
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 14, 36, 0.65);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--white-highlight);
}

.footer-tag,
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-label {
  margin: 0 0 0.55rem !important;
  color: var(--cyan-soft) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.footer-links li {
  margin-bottom: 0.35rem;
}

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

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

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

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(7, 26, 58, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
}

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white-highlight);
}

.content-block {
  padding: 2.5rem 0 4rem;
}

.content-block .prose {
  max-width: 42rem;
}

.content-block .prose p {
  color: var(--text-muted);
}

.detail-hero-img {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

.detail-hero-img img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  filter: saturate(0.85);
}

.cta-band {
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white-highlight);
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}
