:root {
  color-scheme: dark;
  --depth: 0;
  --ink: #f8fcff;
  --muted: rgba(239, 249, 255, 0.76);
  --line: rgba(235, 253, 255, 0.28);
  --aqua: #7eeaf2;
  --glow: #24b7ff;
  --header-ink: #071320;
  --nav-ink: rgba(4, 14, 24, 0.92);
  --logo-dark-opacity: 1;
  --logo-light-opacity: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #020815;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

#ocean-canvas,
.ocean-video,
.depth-meter,
.grain {
  display: none;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background: #020815;
}

.scene-canvas,
.scene-vignette,
.bubble-field {
  position: absolute;
  inset: 0;
}

.scene-canvas {
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 500ms ease;
}

.scene.frames-ready .scene-canvas {
  opacity: 1;
}

.scene-vignette {
  z-index: 3;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 255, 255, calc((1 - var(--depth)) * 0.1)), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(1, 5, 18, calc(0.08 + var(--depth) * 0.12)) 68%, rgba(0, 0, 0, 0.2));
}

.bubble-field {
  z-index: 4;
  pointer-events: none;
  opacity: calc(0.18 + var(--depth) * 0.52);
}

.bubble-field span {
  position: absolute;
  left: var(--x);
  bottom: -40px;
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(201, 250, 255, 0.55);
  border-radius: 50%;
  background: rgba(191, 250, 255, 0.18);
  box-shadow: 0 0 18px rgba(54, 211, 255, 0.18);
  opacity: var(--o);
  animation: bubble-rise var(--d) linear infinite;
  animation-delay: var(--l);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 74px);
  color: var(--nav-ink);
  mix-blend-mode: normal;
}

.brand {
  position: relative;
  display: block;
  width: clamp(180px, 18vw, 292px);
  height: clamp(44px, 5.4vw, 66px);
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 220ms ease;
}

.brand-logo-dark {
  opacity: var(--logo-dark-opacity);
}

.brand-logo-light {
  opacity: var(--logo-light-opacity);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 42px);
  color: var(--nav-ink);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 220ms ease;
}

nav a {
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.28);
}

.nav-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #020815;
  color: white;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.section {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(96px, 12vw, 160px) clamp(18px, 6vw, 96px);
}

.hero-section {
  min-height: 100vh;
  padding-top: 112px;
}

.hero-center {
  width: min(760px, 100%);
  margin-top: 18vh;
  text-align: center;
  color: #071320;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.34);
}

.kicker,
.section-label {
  margin: 0 0 22px;
  color: rgba(234, 253, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

.hero-center .kicker {
  color: rgba(2, 18, 28, 0.72);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.4vw, 5.9rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-center p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: rgba(3, 16, 26, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.35;
}

.dive-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.12);
  color: #061623;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease;
}

.dive-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.down-cue {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 10px auto 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: white;
}

.services-section {
  min-height: 78vh;
  align-content: start;
  padding-top: clamp(90px, 13vw, 140px);
}

.service-grid {
  display: grid;
  width: min(940px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.service-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 54, 73, 0.16);
  text-align: center;
  transition: background 220ms ease, transform 220ms ease;
}

.service-card:nth-child(4n) {
  border-right: 0;
}

.service-card:nth-child(n + 5) {
  border-bottom: 0;
}

.service-card:hover {
  transform: translateY(-3px);
  background: rgba(126, 234, 242, 0.11);
}

.service-card svg,
.journey-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.18;
}

.service-card p {
  max-width: 190px;
  margin: 0;
  color: rgba(233, 250, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.45;
}

.about-section {
  place-items: start;
  align-items: center;
}

.about-copy {
  width: min(430px, 100%);
  margin-left: min(16vw, 260px);
  color: rgba(249, 253, 255, 0.94);
}

.align-left {
  text-align: left;
}

.about-copy p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.process-section {
  min-height: 92vh;
  align-content: center;
}

.journey {
  position: relative;
  display: grid;
  gap: 24px;
  width: min(470px, 100%);
}

.journey::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 91px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(87, 216, 255, 0.44));
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 18px 1fr;
  gap: 16px;
  align-items: center;
}

.journey-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(231, 253, 255, 0.42);
  border-radius: 50%;
  background: rgba(1, 14, 28, 0.22);
  color: white;
  backdrop-filter: blur(10px);
}

.journey-icon svg {
  width: 28px;
  height: 28px;
}

.journey-node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  background: rgba(31, 169, 217, 0.9);
  box-shadow: 0 0 18px rgba(71, 220, 255, 0.42);
}

.journey-item span:not(.journey-icon):not(.journey-node) {
  color: rgba(232, 249, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
}

.journey-item h2 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.journey-item p {
  margin: 0;
  color: rgba(233, 249, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-section {
  min-height: 76vh;
  align-content: center;
}

.lead-form {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-form input,
.lead-form textarea,
.lead-form button {
  width: 100%;
  border: 1px solid rgba(236, 253, 255, 0.56);
  border-radius: 6px;
  outline: none;
  padding: 15px 17px;
  background: rgba(0, 8, 18, 0.24);
  color: white;
  backdrop-filter: blur(10px);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(235, 250, 255, 0.66);
}

.lead-form textarea,
.lead-form button {
  grid-column: 1 / -1;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lead-form button:hover {
  transform: translateY(-2px);
  background: rgba(68, 204, 242, 0.14);
}

.lead-form.submitted {
  filter: drop-shadow(0 0 28px rgba(55, 213, 255, 0.24));
}

footer {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 28px 18px 72px;
  color: rgba(248, 252, 255, 0.86);
  text-align: center;
}

.footer-logo {
  width: min(620px, 88vw);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(36, 183, 255, 0.2));
}

footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: rgba(240, 249, 255, 0.72);
  font-family: Georgia, "Times New Roman", serif;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms ease, transform 760ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bubble-rise {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(14px, -112vh, 0);
  }
}

@media (max-width: 980px) {
  nav {
    gap: 18px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-child(n + 5) {
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-child(n + 7) {
    border-bottom: 0;
  }

  .about-copy {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    width: 138px;
    height: 42px;
  }

  nav {
    display: none;
  }

  .section {
    min-height: auto;
    padding: 96px 18px;
  }

  .hero-section {
    min-height: 100vh;
    place-items: start center;
    padding-top: 118px;
  }

  .hero-center {
    margin-top: 0;
    color: white;
    text-align: left;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
  }

  .hero-center .kicker,
  .hero-center p,
  .dive-button {
    color: white;
  }

  .down-cue {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.2rem);
  }

  .service-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 150px;
    border-right: 0;
  }

  .service-card:nth-child(n) {
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .about-section {
    place-items: center start;
  }

  .journey::before {
    left: 76px;
  }

  .journey-item {
    grid-template-columns: 50px 18px 1fr;
    gap: 12px;
  }

  .journey-icon {
    width: 50px;
    height: 50px;
  }

  .lead-form textarea,
  .lead-form button {
    grid-column: auto;
  }

  footer strong {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
