/* ==========================================================================
   PACIFIC WAVE — BASE / RESET / TYPOGRAPHY
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-pearl);
}
::-webkit-scrollbar-thumb {
  background: var(--color-mist);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-pearl);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Custom Text Selection */
::selection {
  background: var(--color-brand);
  color: var(--color-white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-slate);
  background: var(--color-pearl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Cursor Primitives */
@media (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor * {
    cursor: none !important;
  }
  
  .custom-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--color-brand);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s;
    will-change: transform;
  }
  
  .custom-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--color-brand);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-standard), height 0.3s var(--ease-standard), border-color 0.3s, background-color 0.3s;
    will-change: transform;
  }

  .has-custom-cursor .custom-cursor-ring.is-hovering {
    width: 56px;
    height: 56px;
    background-color: rgba(41, 181, 232, 0.12);
    border-color: var(--color-brand-hover);
  }
  .has-custom-cursor .custom-cursor-dot.is-hovering {
    background-color: var(--color-brand-hover);
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Ambient Blur Blobs */
.blur-blob {
  position: absolute;
  width: clamp(250px, 45vw, 600px);
  height: clamp(250px, 45vw, 600px);
  border-radius: 50%;
  background: var(--grad-ambient);
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  will-change: transform;
}


img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0; }

.text-lead { font-size: var(--fs-body-lg); color: var(--color-slate); }
.text-caption {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
}

/* Layout primitives */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--gutter-desktop); }
}

.section {
  padding: var(--section-pad-mobile) 0;
  position: relative;
  background-color: var(--color-pearl);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
@media (min-width: 768px) {
  .section { padding: var(--section-pad-desktop) 0; }
}

.section--tint { background: var(--color-blue-tint); }
.section--ocean { background: var(--color-ocean); color: var(--color-white); }
.section--ocean h2, .section--ocean h3 { color: var(--color-white); }

.grid {
  display: grid;
  gap: var(--gutter-mobile);
  grid-template-columns: repeat(12, 1fr);
}
@media (min-width: 768px) {
  .grid { gap: var(--gutter-desktop); }
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 12px; }

/* Visually hidden (a11y) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
