@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color - Apple minimal marine */
  --bg-base: #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --accent-marine: #0058CC;

  --white: #FFFFFF;
  --black: #000000;

  /* Legacy mappings for other pages */
  --abyss: var(--text-primary);
  --deep: var(--text-primary);
  --ocean: var(--accent-marine);
  --current: var(--text-secondary);
  --tide: var(--accent-marine);
  --aqua: var(--accent-marine);
  --aqua-soft: var(--bg-base);
  --foam: var(--bg-base);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --line: #E5E5EA;
  --ok: #34C759;

  /* Type */
  --f-display: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --glow: 0 0 0 1px rgba(0, 88, 204, 0.15), 0 0 12px rgba(0, 88, 204, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Tighter letter spacing for display */
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 5vw + 2rem, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: none;
}

h2 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.5rem);
  text-shadow: none;
}


p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--current);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--aqua);
  display: inline-block;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent-marine);
  color: var(--white);
  font-weight: 600;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--glow);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.btn-outline-dark {
  border-color: rgba(29, 29, 31, 0.2);
  color: var(--text-primary);
}

.btn-outline-dark:hover {
  border-color: var(--text-primary);
  transform: scale(1.02);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 18px 0;
  background: transparent;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: rgba(245, 245, 247, 0.75);
  /* Light glass */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .nav {
  background: rgba(255, 255, 255, 0.2);
  /* Transparent glass */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  /* Bigger border */
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.home-page .brand {
  color: var(--white);
}

.home-page .brand-text span {
  color: var(--white);
}

.home-page .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.home-page .nav-links a:hover,
.home-page .nav-links a.active {
  color: var(--white);
  border-color: var(--white);
}

.home-page .nav-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Scrolled state on homepage */
.home-page .site-header.scrolled .nav {
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.home-page .site-header.scrolled .brand {
  color: var(--text-primary);
}

.home-page .site-header.scrolled .brand-text span {
  color: var(--text-primary);
}

.home-page .site-header.scrolled .nav-links a {
  color: var(--text-secondary);
}

.home-page .site-header.scrolled .nav-links a:hover,
.home-page .site-header.scrolled .nav-links a.active {
  color: var(--text-primary);
  border-color: var(--accent-marine);
}

.home-page .site-header.scrolled .nav-toggle {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-marine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 88, 204, 0.2);
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 2px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(3, 20, 32, .08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--f-display);
  font-size: 1.02rem;
  letter-spacing: .02em;
}

.brand-text span {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  border-color: var(--accent-marine);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-contact-link:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 992px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .nav {
    padding: 8px 12px 8px 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    max-height: 520px;
    padding: 12px 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
  }

  /* Fix invisible white text on white mobile dropdown for homepage */
  .home-page .nav-links a {
    color: var(--text-secondary);
  }

  .home-page .nav-links a:hover,
  .home-page .nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
  }

  .nav-toggle {
    display: block;
  }
}

.home-emergency-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 34, 56, .88), rgba(3, 20, 32, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 34px rgba(3, 20, 32, .35);
  color: var(--white);
  font-family: var(--f-mono);
  text-align: right;
}

.home-emergency-badge span {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.home-emergency-badge strong {
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--aqua-soft);
}

@media (max-width: 960px) {
  .home-emergency-badge {
    top: 18px;
    right: 18px;
    padding: 12px 16px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .home-emergency-badge {
    position: static;
    margin: 0 0 18px auto;
    width: fit-content;
  }

  .nav-contact-link {
    padding: 9px 14px;
    font-size: .7rem;
  }
}

@media (max-width: 480px) {
  .brand-text span {
    display: none;
  }

  .brand-text strong {
    font-size: .95rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: .88rem;
  }
}

/* ---------- Ocean Hero (Sticky Scroll Sequence) ---------- */
.scroll-sequence-container {
  height: 300vh;
  /* Plenty of scroll space to pause on the video */
  position: relative;
  background: var(--abyss);
  margin-top: -86px;
  /* Pulls the container up underneath the transparent header */
}

.scroll-overlap-content {
  position: relative;
  z-index: 10;
  background: var(--bg-base);
  margin-top: -100vh;
  /* Enters exactly during the last 100vh of the scroll container */
  min-height: 100vh;
  /* Fixes homepage footer layout bug */
}

.ocean-hero {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--abyss);
  color: var(--white);
  /* Use CSS variable set by JS for scroll animation */
  --scroll-progress: 0;
}

.ocean-hero video.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  z-index: 0;
  /* Gentle scale up as user scrolls */
  transform: scale(calc(1 + (var(--scroll-progress) * 0.08)));
  opacity: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(3, 20, 32, .70) 0%, rgba(4, 49, 79, .60) 50%, rgba(11, 76, 113, .65) 100%);
  z-index: 1;
  pointer-events: none;
  /* Lifts upward and fully exits in the first half of scroll, before content slides in */
  transform: translateY(calc(var(--scroll-progress) * -220%));
  transition: none;
}

.ocean-hero canvas,
.ocean-hero .bubble-field {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ocean-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 960px) {
  .ocean-hero {
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: -64px;
    padding-top: 64px;
  }

  .ocean-hero .container {
    padding-top: 40px;
    padding-bottom: 60px;
  }
}

/* ---------- Home hero — centered content ---------- */
.hero-grid--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-content--center {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Fades out very quickly (multiplier 4) so user can see the pure video */
  transform: translateY(calc(var(--scroll-progress) * -150px));
  opacity: calc(1 - (var(--scroll-progress) * 4));
}

.precision-glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.4);
}

.precision-glass-panel h1,
.precision-glass-panel h3,
.precision-glass-panel .hero-eyebrow,
.precision-glass-panel .status-line {
  color: var(--white);
}

/* Staggered smooth animation for hero elements */
.precision-glass-panel [class*="stagger-"] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.precision-glass-panel.in .stagger-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.precision-glass-panel.in .stagger-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.precision-glass-panel.in .stagger-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.precision-glass-panel.in .stagger-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.precision-glass-panel.in .stagger-5 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.hero-content--center .status-line,
.hero-content--center .eyebrow {
  justify-content: center;
  margin: 0;
}

.hero-grid--center .hero-content--center h1,
.hero-grid--center .hero-content--center p.lead {
  max-width: 100%;
  margin: 0;
}

.hero-content--center .hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

@media (max-width: 480px) {
  .hero-content--center .hero-cta {
    width: 100%;
  }
}

.ocean-hero h1 {
  color: var(--white);
  max-width: 640px;
}

.ocean-hero p.lead {
  color: rgba(255, 255, 255, .8);
  max-width: 540px;
  font-size: clamp(0.98rem, 1vw + 0.8rem, 1.12rem);
}

.ocean-hero .eyebrow {
  color: var(--aqua-soft);
}

.ocean-hero .eyebrow::before {
  background: var(--aqua-soft);
}

/* Rising bubbles */
.bubble-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: block;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .75), rgba(143, 243, 241, .08) 70%);
  border: 1px solid rgba(255, 255, 255, .22);
  animation: rise linear infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  8% {
    opacity: .7;
  }

  92% {
    opacity: .5;
  }

  100% {
    transform: translateY(-118vh) translateX(var(--drift, 20px));
    opacity: 0;
  }
}

/* Sonar ping */
.sonar {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(63, 224, 232, .6);
  animation: sonar-pulse 2.6s ease-out infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes sonar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: clamp(.65rem, 0.5vw + .6rem, .75rem);
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.status-line .sonar {
  width: 8px;
  height: 8px;
  background: #22c55e;
  /* vibrant green */
  border-radius: 50%;
  animation: sonar-pulse 2s infinite;
}

/* ---------- Page hero ---------- */
.page-hero {
  background: radial-gradient(120% 140% at 10% -10%, var(--ocean) 0%, var(--deep) 45%, var(--abyss) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  margin-top: -86px;
  padding-top: 166px;
}

.page-hero .bubble-field {
  opacity: .7;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -160px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(63, 224, 232, .14);
  border-radius: 50%;
}

.page-hero .eyebrow {
  color: var(--aqua-soft);
}

.page-hero .eyebrow::before {
  background: var(--aqua-soft);
}

.page-hero h1 {
  color: var(--white);
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.page-hero p.lead {
  color: rgba(255, 255, 255, .78);
  max-width: 620px;
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.08rem);
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .85);
}

.breadcrumb a:hover {
  color: var(--aqua-soft);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 44px;
  }
}

/* ---------- Section rhythm ---------- */
section {
  padding: clamp(48px, 6vw + 12px, 92px) 0;
}

.section-paper {
  background: var(--foam);
}

.section-navy {
  background: linear-gradient(160deg, var(--deep), var(--abyss));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.section-head-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 40px;
}

.section-logo-bubble {
  width: 320px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: floatBubble 6s ease-in-out infinite;
}

.section-logo-bubble img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes floatBubble {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@media (max-width: 768px) {
  .section-head-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .section-logo-bubble {
    width: 130px;
    height: 130px;
  }
}

.section-head p {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 0.8vw + 0.8rem, 1.05rem);
}

/* ---------- Work Order card ---------- */
.work-order {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.work-order::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--aqua), var(--current));
}

.wo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px dashed var(--line);
  background: var(--foam);
}

.wo-head .wo-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--deep);
  margin: 0;
}

.wo-head .wo-id {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .05em;
  word-break: break-word;
}

.wo-stamp {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1.5px solid var(--ok);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  transform: rotate(-6deg);
  white-space: nowrap;
  flex-shrink: 0;
}

.wo-body {
  padding: 24px;
}

.wo-steps {
  counter-reset: wo;
}

.wo-steps li {
  counter-increment: wo;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-soft);
}

.wo-steps li:last-child {
  border-bottom: none;
}

.wo-steps li::before {
  content: counter(wo, decimal-leading-zero);
  font-family: var(--f-mono);
  color: var(--current);
  font-size: .8rem;
  flex-shrink: 0;
  padding-top: 1px;
}

.wo-foot {
  padding: 16px 24px;
  background: var(--foam);
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

@media (max-width: 576px) {

  .wo-head,
  .wo-body,
  .wo-foot {
    padding: 16px;
  }
}

/* ---------- Cards & Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {

  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .num {
  font-family: var(--f-body);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
  opacity: 0.7;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* ---------- Photo Tiles ---------- */
.photo-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.photo-tile:hover img {
  transform: scale(1.04);
}

.photo-tile .photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}

.photo-tile .photo-caption span.pill {
  background: rgba(3, 20, 32, .65);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 32, 0) 35%, rgba(3, 20, 32, .85) 100%);
  z-index: 1;
  pointer-events: none;
}

.photo-tile .photo-topic {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.photo-tile .photo-topic h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  color: var(--aqua-soft, #aee2d9);
}

.photo-tile .photo-topic span {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ---------- Stats Strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: none;
  overflow: hidden;
  gap: 24px;
}

.stats div {
  padding: 24px 16px;
  text-align: center;
  border: none;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stats div:last-child {
  border-right: none;
}

.stats strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stats>div>span {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats div:nth-child(2) {
    border-right: none;
  }

  .stats div {
    border: none;
  }

  .stats div:nth-child(3),
  .stats div:nth-child(4) {
    border-bottom: none;
  }
}

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

  .stats div {
    border: none !important;
  }

  .stats div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 960px) {
  .page-hero {
    margin-top: -64px;
    padding-top: 124px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    margin-top: -58px;
    padding-top: 112px;
  }
}

/* ---------- Layout Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split>div[style*="order:2"] {
    order: 0 !important;
  }
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--aqua), var(--tide));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw + 12px, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 36px rgba(0, 88, 204, 0.12);
}

.cta-band h3 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 1.5vw + 0.8rem, 1.5rem);
}

.cta-band p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

.cta-band .btn {
  background: rgba(11, 15, 19, 0.96);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cta-band .btn:hover {
  background: rgba(9, 12, 17, 1);
}

@media (max-width: 600px) {
  .cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-band .btn {
    width: 100%;
  }
}

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--f-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 48px;
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(63, 224, 232, .15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item:first-child {
  border-top: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--f-display);
  font-size: clamp(0.98rem, 1vw + 0.7rem, 1.1rem);
  color: var(--deep);
}

.accordion-trigger .plus {
  font-family: var(--f-mono);
  color: var(--current);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.accordion-item.open .plus {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-panel p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

/* ---------- Tags & Utilities ---------- */
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--foam);
  border: 1px solid var(--line);
  color: var(--ocean);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin: 0 6px 8px 0;
}

.callout {
  background: var(--foam);
  border-left: 4px solid var(--aqua);
  padding: 20px 24px;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--deep), var(--abyss));
  color: rgba(255, 255, 255, .75);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 20px;
}

.site-footer .brand,
.site-footer .brand-text span {
  color: var(--white);
}

.footer-top {
  padding: 56px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
}

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

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

.footer-grid h4 {
  color: var(--white);
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: .9rem;
}

.footer-grid a:hover {
  color: var(--aqua-soft);
}

.footer-bottom {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: border-color .2s, color .2s, box-shadow .2s;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social a:hover {
  border-color: var(--aqua);
  color: var(--aqua-soft);
  box-shadow: var(--glow);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Mobile Responsive Overrides ---------- */
@media (max-width: 760px) {
  .nav {
    padding: 8px 12px;
  }

  .photo-tile {
    aspect-ratio: 3/2;
  }

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

  .btn {
    padding: 12px 22px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: .95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ocean-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 56px;
    margin-top: -56px;
  }

  .ocean-hero h1 {
    font-size: 1.6rem;
    line-height: 1.18;
  }

  .ocean-hero p.lead {
    font-size: .98rem;
  }

  .nav {
    padding: 8px;
  }

  .nav-links {
    gap: 12px;
  }

  .ocean-hero .container a.btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }

  .btn {
    font-size: .82rem;
    padding: 12px 16px;
    width: 100%;
  }

  .photo-tile {
    aspect-ratio: 4/3;
  }

  .card {
    padding: 22px;
  }

  .stats strong {
    font-size: 1.6rem;
  }
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] [class*="stagger-"] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-reveal].in .stagger-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

[data-reveal].in .stagger-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

[data-reveal].in .stagger-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

[data-reveal].in .stagger-4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

[data-reveal].in .stagger-5 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.40s;
}

/* ---------- Pro UI Scroll Reveals (Non-Homepage) ---------- */
body:not(.home-page) [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body:not(.home-page) [data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

body:not(.home-page) [data-reveal] [class*="stagger-"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body:not(.home-page) [data-reveal].in [class*="stagger-"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating WhatsApp Button ---------- */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  #whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* ---------- Gallery Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-caption {
  color: #1a2a35;
  background: #ffffff;
  text-align: left;
  padding: 16px 22px;
  margin-top: 18px;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  width: fit-content;
  max-width: min(560px, 90vw);
  border: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-topic {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b3d5c;
  letter-spacing: 0.01em;
}

.lb-description {
  display: block;
  font-size: 0.93rem;
  color: #3a4f5e;
  font-weight: 400;
  line-height: 1.6;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1002;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-img {
    max-height: 65vh;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 14px 18px;
    margin-top: 14px;
  }
}