:root {
  --sapphire: #0f2b6b;
  --sapphire-mid: #1a3a8a;
  --sapphire-deep: #0a1c48;
  --cyan-glass: #7ec8d8;
  --cyan-soft: #a8e4ef;
  --indigo: #1a1840;
  --indigo-mid: #2a2760;
  --foam: #f4fbff;
  --mist: #e8f4f8;
  --ink: #12142a;
  --ink-soft: #3a4060;
  --line: rgba(15, 43, 107, 0.14);
  --glass: rgba(244, 251, 255, 0.72);
  --glass-deep: rgba(26, 58, 138, 0.08);
  --radius: 0.35rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;
  --shell: min(1100px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(126, 200, 216, 0.35), transparent 55%),
    radial-gradient(800px 420px at 92% 5%, rgba(26, 58, 138, 0.18), transparent 50%),
    linear-gradient(180deg, #eef6fa 0%, #e3eef6 40%, #d8e6f2 100%);
  min-height: 100vh;
  line-height: 1.65;
}

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

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

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

.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(16px);
  background: rgba(238, 246, 250, 0.82);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--foam), transparent 45%),
    radial-gradient(circle at 70% 70%, var(--cyan-glass), var(--sapphire));
  box-shadow: inset 0 0 0 1px rgba(244, 251, 255, 0.35);
  animation: mark-pulse 4.5s ease-in-out infinite;
}

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

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

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

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--sapphire);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  color: var(--foam) !important;
  background: var(--sapphire);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 228, 239, 0.45), transparent 65%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.nav-cta:hover::after {
  transform: scale(2.2);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sapphire-mid), var(--sapphire-deep));
  color: var(--foam);
}

.btn-primary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(168, 228, 239, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn-primary:hover::before {
  animation: crystal-wave 1.1s ease-out;
}

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

.btn-ghost {
  background: rgba(244, 251, 255, 0.55);
  border-color: rgba(15, 43, 107, 0.22);
  color: var(--sapphire-deep);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--cyan-glass);
  background: rgba(168, 228, 239, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero — stacked brand over full-bleed plane */
.hero-crystal {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-crystal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 72, 0.35) 0%, rgba(10, 28, 72, 0.15) 35%, rgba(10, 28, 72, 0.78) 100%),
    radial-gradient(600px 300px at 70% 20%, rgba(126, 200, 216, 0.25), transparent 60%);
}

.hero-crystal-copy {
  padding: 4.5rem 0 3.5rem;
  color: var(--foam);
  max-width: 38rem;
  animation: rise-in 0.9s ease-out both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 24px rgba(10, 28, 72, 0.35);
}

.hero-line {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  margin: 0 0 0.65rem;
  color: var(--cyan-soft);
}

.hero-support {
  margin: 0;
  color: rgba(244, 251, 255, 0.88);
  max-width: 32rem;
}

.hero-crystal .btn-row .btn-ghost {
  background: rgba(244, 251, 255, 0.12);
  border-color: rgba(244, 251, 255, 0.35);
  color: var(--foam);
}

.hero-crystal .btn-row .btn-ghost:hover {
  background: rgba(168, 228, 239, 0.22);
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2,
.page-hero h1,
.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--sapphire-deep);
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 0.65rem;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

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

.glass-panel {
  background:
    linear-gradient(145deg, rgba(244, 251, 255, 0.78), rgba(168, 228, 239, 0.12)),
    var(--glass);
  border: 1px solid rgba(126, 200, 216, 0.35);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.service-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
}

.service-feature img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--sapphire-mid);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-glass), var(--sapphire-mid));
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.offer-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.4rem;
}

.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.35rem 0 0;
  color: var(--sapphire-deep);
}

.offer-item p {
  margin: 0;
  color: var(--ink-soft);
}

.offer-meta {
  font-weight: 600;
  color: var(--sapphire-mid) !important;
}

.quote-band {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: var(--sapphire-deep);
  max-width: 42rem;
}

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

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

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

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

.atlas-item {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--cyan-glass);
  background: linear-gradient(90deg, rgba(126, 200, 216, 0.12), transparent 70%);
}

.atlas-item h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--sapphire-deep);
}

.atlas-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Bleed hero for detail pages */
.bleed-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.bleed-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.bleed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 28, 72, 0.2), rgba(10, 28, 72, 0.82));
}

.bleed-copy {
  padding: 3rem 0 2.25rem;
  color: var(--foam);
}

.bleed-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.bleed-copy p {
  margin: 0;
  max-width: 36rem;
  color: rgba(244, 251, 255, 0.9);
}

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

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

.blog-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.4rem;
}

.blog-row h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.35rem 0;
  color: var(--sapphire-deep);
}

.blog-row h2 a {
  text-decoration: none;
  color: inherit;
}

.prose {
  max-width: 42rem;
}

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

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

.service-index article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
}

.service-index img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
}

.service-index h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--sapphire-deep);
}

.service-index h2 a {
  text-decoration: none;
  color: inherit;
}

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

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(15, 43, 107, 0.22);
  border-radius: var(--radius);
  background: rgba(244, 251, 255, 0.85);
  color: var(--ink);
}

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-status[data-state="success"] {
  background: rgba(126, 200, 216, 0.25);
  color: var(--sapphire-deep);
}

.form-status[data-state="error"] {
  background: rgba(139, 30, 63, 0.12);
  color: #8b1e3f;
}

.legal-body {
  max-width: 44rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  color: var(--sapphire-deep);
  margin-top: 2rem;
}

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

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(15, 43, 107, 0.06)),
    linear-gradient(135deg, rgba(26, 24, 64, 0.04), transparent);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--sapphire-deep);
}

.footer-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sapphire-mid);
  margin: 0 0 0.65rem;
}

.footer-text {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

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

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(135deg, rgba(15, 43, 107, 0.96), rgba(26, 24, 64, 0.96));
  color: var(--foam);
  padding: 1rem 0;
  border-top: 1px solid rgba(126, 200, 216, 0.35);
}

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

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

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

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

.cookie-banner .btn-ghost {
  background: transparent;
  border-color: rgba(244, 251, 255, 0.35);
  color: var(--foam);
}

.cookie-error {
  width: var(--shell);
  margin: 0.5rem auto 0;
  color: #ffb4c4;
  font-size: 0.9rem;
}

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

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

@media (max-width: 900px) {
  .service-feature,
  .grid-2,
  .blog-row,
  .service-index article,
  .footer-grid,
  .offer-list,
  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(238, 246, 250, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-crystal {
    min-height: 78vh;
  }
}
