:root {
  --ink: #233342;
  --ink-deep: #1a2733;
  --sky: #7FC7F9;
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --grid: rgba(127, 199, 249, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(120% 90% at 50% 0%, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Decorative liquid layer; the body gradient remains as a no-WebGL fallback. */
.liquid-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  position: relative;
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 40px;
  padding: 48px 16px;
  text-align: center;
}
.brand-symbol {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  left: clamp(16px, 3vw, 36px);
  width: 64px;
  height: auto;
  z-index: 1;
}
.contact-open {
  position: absolute;
  top: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 36px);
  z-index: 1;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid rgba(127, 199, 249, .4);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.contact-open:hover { background: rgba(127, 199, 249, .1); border-color: var(--sky); }
.contact-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(127, 199, 249, .28);
  background: var(--ink-deep);
  color: var(--paper);
  overflow-y: auto;
}
.contact-dialog[open] { animation: rise .25s ease-out; }
.contact-dialog::backdrop { background: rgba(9, 17, 24, .72); backdrop-filter: blur(6px); }
.contact-dialog h2 { margin: 0 36px 28px 0; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.contact-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border: 0;
  background: transparent; color: var(--muted); font-size: 28px; cursor: pointer;
}
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid rgba(127, 199, 249, .25); border-radius: 0;
  padding: 12px; background: rgba(255, 255, 255, .025); color: var(--paper);
  font: inherit; font-size: 16px;
}
.contact-form textarea { resize: vertical; min-height: 108px; }
.contact-send { min-height: 44px; border: 0; background: var(--sky); color: var(--ink-deep); font: inherit; font-size: 14px; }
.contact-send:disabled { opacity: .5; cursor: wait; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #ff9b9b; font-size: 12px; line-height: 1.4; }
.contact-form [aria-invalid="true"] { border-color: #ff9b9b; }
.contact-note.error { color: #ff9b9b; }
.contact-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-open:focus-visible, .contact-close:focus-visible,
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 3px;
}
.logo-wrap {
  position: relative;
  width: min(338px, 72vw);
  margin-bottom: -42px;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.logo { width: 100%; height: auto; display: block; }
h1 {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sky);
  animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both;
}
p {
  margin: -12px 0 0;
  max-width: 34ch;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both;
}
.services {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0; padding: 0; list-style: none;
  animation: rise .9s .45s cubic-bezier(.2, .7, .2, 1) both;
}
.services li {
  padding: 8px 14px;
  border: 1px solid rgba(127, 199, 249, .28);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
}
.services .service-info { padding: 0; }
.service-trigger {
  display: block;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.service-trigger:hover,
.service-trigger[aria-expanded="true"] {
  background: rgba(127, 199, 249, .1);
  color: var(--sky);
}
.service-trigger:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
}
.service-description {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(127, 199, 249, .28);
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.service-description::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%; height: 13px;
}
footer {
  position: fixed; left: 0; right: 0; bottom: 20px;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 0 16px;
  font-size: 12px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .38);
  text-align: center;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
@media (max-height: 560px) {
  body { overflow: auto; }
  main { padding-top: 112px; }
  footer { position: static; padding-bottom: 20px; }
}
