/* ==========================================================================
   Lilo Socials — Component library
   ========================================================================== */

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 1.05rem 2.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--duration-base) var(--ease-premium),
              box-shadow var(--duration-base) var(--ease-premium),
              color var(--duration-base) var(--ease-soft);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

/* Magnetic buttons (hero/CTA) — JS drives x/y/translateY entirely via GSAP,
   so the CSS transform/hover rules above are intentionally not applied here. */
.btn-magnetic {
  transition: box-shadow var(--duration-base) var(--ease-premium),
              color var(--duration-base) var(--ease-soft);
}

.btn-magnetic:hover,
.btn-magnetic:active {
  transform: none;
}

/* wave-fill sweep, sits behind label, z-index via isolation */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-water);
  border-radius: inherit;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  background: var(--brand-primary-hover);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow), var(--shadow-glow-sun);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--border-subtle);
}

.btn-secondary::before {
  background: var(--brand-ink);
}

.btn-secondary:hover {
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 1.5px var(--brand-ink), var(--shadow-md);
}

.btn-ghost {
  padding: 0.5rem 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.btn-ghost::before {
  display: none;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.4rem;
  height: 2px;
  background: currentColor;
  transition: right var(--duration-base) var(--ease-premium);
}

.btn-ghost:hover::after {
  right: 0;
}

.btn-ghost:hover {
  transform: none;
}

/* ripple ping on click, toggled via JS adding .is-rippling + --ripple-x/--ripple-y */
.btn[data-ripple]::after {
  content: '';
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.btn[data-ripple].is-rippling::after {
  animation: ripple 0.6s var(--ease-water);
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
  0% {
    opacity: 0.6;
  }
}

/* ---------------------------------- Cards ---------------------------------- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease-premium),
              box-shadow 0.6s var(--ease-premium);
  will-change: transform;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-float {
  animation: float var(--duration-float) ease-in-out infinite;
}

.card:nth-child(2n).card-float {
  animation-delay: -2s;
}

.card:nth-child(3n).card-float {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.card-icon {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--sky-soft), var(--brand-sky));
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  color: var(--brand-primary);
  transition: transform var(--duration-base) var(--ease-premium);
}

.card-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-sky) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-soft);
  z-index: -1;
}

/* Alternate every other card's icon to sand — keeps the grid from reading
   as one flat blue block and brings more of the brand's yellow through. */
.card:nth-child(even) .card-icon {
  background: linear-gradient(150deg, var(--sand-soft), var(--brand-sand));
  color: var(--brand-ink);
}

.card:nth-child(even) .card-icon::before {
  background: radial-gradient(circle, var(--brand-sand) 0%, transparent 70%);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card:hover .card-icon::before {
  opacity: 0.6;
}

.card-title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.card-body {
  color: var(--text-muted);
}

/* ---------------------------------- Forms ---------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.field label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-primary);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-soft),
              box-shadow var(--duration-fast) var(--ease-soft);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(83, 83, 222, 0.15);
}

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

/* ---------------------------------- Nav ---------------------------------- */
.nav {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2.5rem), 1180px);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: transparent;
  backdrop-filter: none;
  transition: background var(--duration-base) var(--ease-soft),
              box-shadow var(--duration-base) var(--ease-soft),
              backdrop-filter var(--duration-base) var(--ease-soft);
}

.nav.is-scrolled {
  background: rgba(246, 244, 241, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
}

/* Minimal persistent bar: logo left, CTA + hamburger right. All nav links
   live in the full-screen overlay instead of a permanently-visible link row —
   this sidesteps the whole "balance the gaps around a centered logo" problem
   entirely, since there's nothing to balance.
   The homepage hero is now a dark photo, so the nav starts light and flips
   to ink once scrolled past it (when the frosted light background appears). */
.nav-logo {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: 1.4rem;
  color: var(--text-inverse);
  white-space: nowrap;
  /* Deliberately no color transition — a mid-fade blend between white and
     ink lands on a muddy, low-contrast color, and that in-between state
     was measured to persist rather than settle. Snap instantly instead. */
}

.nav.is-scrolled .nav-logo {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--text-inverse);
  /* No color transition here either — same reasoning as .nav-logo above. */
}

.nav.is-scrolled .nav-actions {
  color: var(--text-primary);
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle svg {
  pointer-events: none;
}

.nav-toggle .bar {
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-soft),
              opacity var(--duration-fast) var(--ease-soft);
}

.nav.is-open .nav-toggle .bar-1 { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-toggle .bar-2 { opacity: 0; }
.nav.is-open .nav-toggle .bar-3 { transform: translateY(-5px) rotate(-45deg); }

/* Full-screen editorial overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--brand-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-premium),
              visibility var(--duration-slow);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  max-width: 900px;
}

.nav-overlay-links a {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: clamp(2rem, 1.5rem + 3vw, 4rem);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  transition: color var(--duration-base) var(--ease-soft), opacity var(--duration-base) var(--ease-soft);
  opacity: 0;
  transform: translateY(16px);
}

.nav-overlay.is-open .nav-overlay-links a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-links a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay-links a:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay-links a:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay-links a:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay-links a:nth-child(5) { transition-delay: 0.32s; }

.nav-overlay-links a:hover {
  color: var(--brand-primary);
}

.nav-overlay-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-small);
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-soft);
}

.nav-overlay.is-open .nav-overlay-footer {
  opacity: 1;
  transition-delay: 0.3s;
}

.nav-overlay-footer .footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-section-alt);
  color: var(--text-primary);
}

.nav-overlay-footer .footer-social a:hover {
  background: var(--brand-primary);
  color: var(--text-inverse);
}

@media (max-width: 720px) {
  .nav-actions .btn { display: none; }
  .nav-overlay-links a {
    font-size: clamp(1.75rem, 1.4rem + 4vw, 2.5rem);
  }
}

/* ==========================================================================
   Shared decorative + layout components — used across the homepage AND
   interior pages (About, Services, Our Work, Contact), which is
   why these live here rather than in home.css.
   ========================================================================== */

/* ---------------------------------- Lilo ring (floating pool-float motif) ---------------------------------- */
.lilo-ring {
  position: absolute;
  aspect-ratio: 1;
  will-change: transform;
}

.lilo-ring-inner {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 24px rgba(32, 31, 77, 0.22));
  will-change: transform;
}

/* Realistic inflatable-float face: alternating pie-slice segments (conic-gradient)
   punched into a donut via mask, plus a soft-light/shadow overlay for tube volume
   and gloss — an original graphic, not a traced photo. */
.lilo-ring-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, transparent 0 36%, black 38% 100%);
  mask-image: radial-gradient(circle, transparent 0 36%, black 38% 100%);
}

/* thin dark "stitch" line at each segment boundary, layered over the colour
   bands — reads as a seamed inflatable tube instead of a flat pie chart */
.lilo-ring-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    repeating-conic-gradient(rgba(80, 62, 16, 0.22) 0deg 1deg, transparent 1deg 45deg),
    conic-gradient(
      var(--ring-a, #f0daa5) 0deg 45deg,
      var(--ring-b, #f6f4f1) 45deg 90deg,
      var(--ring-a, #f0daa5) 90deg 135deg,
      var(--ring-b, #f6f4f1) 135deg 180deg,
      var(--ring-a, #f0daa5) 180deg 225deg,
      var(--ring-b, #f6f4f1) 225deg 270deg,
      var(--ring-a, #f0daa5) 270deg 315deg,
      var(--ring-b, #f6f4f1) 315deg 360deg
    );
}

/* rim highlight (inner curve of the tube catching light) + rim shadow
   (outer curve falling into shadow), on top of the existing diagonal
   gloss/shadow — gives the flat disc a rounded, inflated cross-section. */
.lilo-ring-face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 35%, rgba(255, 255, 255, 0.5) 38%, transparent 45%),
    radial-gradient(circle, transparent 91%, rgba(20, 20, 45, 0.3) 97%, transparent 100%),
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.8), transparent 42%),
    radial-gradient(circle at 68% 78%, rgba(20, 20, 45, 0.3), transparent 55%);
}

/* Neutral cream/grey plastic valve — the old brown-to-black version read as
   a stray dirt smudge against the blue/yellow tube, not a moulded part. */
.lilo-ring-valve {
  position: absolute;
  width: 8%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cream-soft), var(--sky-deep) 80%);
  box-shadow: inset 0 -1.5px 2px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lilo-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------------------------- Decorative backgrounds ---------------------------------- */
/* Luxury cabana-towel stripes — wide, vertical, warm-only (cream/sand),
   low contrast. Never blue/seafoam here; that's what makes it read as
   "resort towel" rather than "beach ball." */
.bg-stripes {
  position: relative;
  background-color: var(--stripe-a);
  background-image: repeating-linear-gradient(90deg,
    var(--stripe-a) 0px, var(--stripe-a) 130px,
    var(--stripe-b) 130px, var(--stripe-b) 260px
  );
}

/* subtle woven/linen crosshatch — reads as fabric, not a flat digital fill */
.bg-stripes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(80, 62, 16, 0.05) 0px 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(80, 62, 16, 0.045) 0px 1px, transparent 1px 5px);
  pointer-events: none;
}

.bg-sand {
  position: relative;
  background: var(--brand-cream);
  /* fixed px offset (not %) keeps the glow's peak well clear of the top
     edge regardless of section height — a %-based center sits close enough
     to y:0 on most sections that it shows up as a visible seam against the
     flat-cream wave divider directly above it */
  background-image: radial-gradient(circle 480px at 15% 40px, var(--sand-soft) 0%, transparent 100%),
                     radial-gradient(circle at 85% 80%, var(--sky-soft) 0%, transparent 55%);
}

/* wave divider anchored to the bottom of a `position: relative` section,
   filled with the color of whatever comes next — avoids hard section seams */
.section-wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  /* Small offsets (-1px, -3px) weren't reliably enough to close the subpixel
     gap against the next section on every display/zoom level, leaving a
     hairline of whatever's behind visible right at the seam. Overshooting by
     a lot is imperceptible here since the fill color matches the section
     it's overlapping into, so err generous rather than exact. */
  bottom: -10px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.section-wave-bottom svg {
  width: 100%;
  height: auto;
  display: block;
}

/* soft ambient bubble */
.bg-bubble {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.6), transparent 70%),
              radial-gradient(circle at 60% 65%, var(--brand-sky) 0%, transparent 70%);
  opacity: 0.5;
  will-change: transform;
}

/* sparkle */
.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--brand-sand);
  opacity: 0;
}

.sparkle svg { width: 100%; height: 100%; display: block; }

/* Organic panel — a soft, hand-cut-feeling shape (never a perfect rectangle)
   that holds content on top of a striped background. Asymmetric border-radius
   is what gives it the "flowing fabric" edge instead of a card corner. */
.organic-panel {
  position: relative;
  z-index: 1;
  background: var(--cream-soft);
  border-radius: 4rem 2rem 5rem 1.5rem / 2rem 4rem 1.5rem 5rem;
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-5);
}

/* simple arch / half-circle motif — a recurring circular accent */
.arch-motif {
  width: 64px;
  height: 32px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 64px 64px 0 0;
  opacity: 0.4;
}

/* ---------------------------------- Water scene (hero + final CTA) ---------------------------------- */
.water-scene {
  position: relative;
}

/* Flat water colour — movement comes from the caustic lights and ripples,
   not a stripe/line texture on the surface itself. */
.water-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--sky-deep);
}

.caustic-light {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 240, 0.5) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  will-change: transform, opacity;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
}

.ring-reflection {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 96%;
  height: 40%;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.28;
  transform: scaleY(0.35);
  transform-origin: top center;
  pointer-events: none;
}

/* ---------------------------------- Section headers ---------------------------------- */
.section-head {
  max-width: 620px;
  margin-bottom: var(--space-7);
  position: relative;
  z-index: 1;
}

.section-head h2 {
  margin-top: var(--content-gap);
}

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

/* Bigger, more eye-catching treatment for Services / Process / Work —
   pairs with .eyebrow--statement on the label above it. */
.section-head--large {
  max-width: 780px;
}

.section-head--large h2 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
}

/* ---------------------------------- Image card: photo on top, underlined label below ---------------------------------- */
/* First built for the homepage's "Our Services" quick links, reused as-is
   on the services page's own card grid — kept in one shared place so both
   stay visually identical without copy-pasted CSS drifting apart. */
.quicklink-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quicklink-image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.quicklink-image .image-placeholder,
.quicklink-image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  box-shadow: none;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-premium);
}

.quicklink-card:hover .quicklink-image img {
  transform: scale(1.04);
}

.quicklink-label {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
}

/* Underline lives on this inner span, not on .quicklink-label itself:
   text-decoration set on an ancestor still paints across a nested
   .quicklink-label-sub block even when the sub explicitly sets
   text-decoration:none (a block-in-inline rendering quirk — the sub isn't
   an atomic box, so the parent's line bleeds through regardless). Scoping
   the underline to a sibling span the sub never sits inside removes the
   line from its own box entirely, not just its own decoration. */
.quicklink-label-title {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.quicklink-label-sub {
  display: block;
  font-size: 0.5em;
  font-style: italic;
  letter-spacing: normal;
}

/* ---------------------------------- About-style image + list pattern ---------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

/* Generic image placeholder — swap for a real <img> once photography is ready */
.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--sky-soft), var(--brand-sky));
  border-radius: var(--radius-lg);
  color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.about-image {
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-values {
  list-style: none;
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.about-values li {
  padding-left: var(--space-3);
  position: relative;
  color: var(--text-muted);
}

.about-values li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
}

/* ---------------------------------- Contact CTA (final water scene) ---------------------------------- */
/* Pulled up over .testimonials by the wave height and masked into the wave
   curve along its own top edge — same technique used for #work,
   .testimonials and the "Meet the Team" split section. The curve reveals
   the real photo underneath instead of a flat swatch or a plain fade. */
.contact-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--cream-soft);
  --wave-h: clamp(70px, 8vw, 140px);
  margin-top: calc(-1 * var(--wave-h));
  padding-top: calc(var(--section-pad-y) + var(--wave-h));
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C240,75 480,5 720,35 C960,65 1200,75 1440,35 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C240,75 480,5 720,35 C960,65 1200,75 1440,35 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h));
  mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h));
}

.contact-cta-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-cta-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-cta-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 41, 0.35) 0%, rgba(15, 15, 41, 0.3) 45%, rgba(15, 15, 41, 0.55) 100%);
}

.contact-cta .lilo-ring {
  z-index: 1;
}

@media (max-width: 600px) {
  /* The 290px/210px inline widths are sized for desktop's much wider canvas -
     at phone width they dominate the screen and crowd the headline, so scale
     both down (keeping their ~1.4:1 size ratio) purely for this breakpoint. */
  .contact-cta .lilo-ring:nth-of-type(1) {
    width: 160px !important;
  }
  .contact-cta .lilo-ring:nth-of-type(2) {
    width: 115px !important;
  }
}

.contact-cta-content {
  position: relative;
  z-index: 2;
}

.contact-cta h2 {
  font-size: var(--text-h1);
  margin-top: var(--space-3);
  color: var(--text-inverse);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.contact-cta .eyebrow {
  color: var(--brand-sand);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 2px 14px rgba(0, 0, 0, 0.55);
}

.contact-cta .eyebrow .label-wave path {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.contact-cta .text-lead {
  margin-top: var(--space-4);
  color: rgba(246, 244, 241, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.contact-cta .hero-ctas {
  margin-top: var(--space-6);
}

/* Purple reads as blue against this blue-toned water photo and loses
   contrast — sand/yellow is complementary and pops instead. */
.contact-cta .accent {
  color: var(--brand-sand);
}

/* ---------------------------------- Footer ---------------------------------- */
/* Pulled up over whatever section precedes it (a photo on the homepage,
   flat colours on interior pages) and masked into the wave curve along its
   own top edge — same technique used throughout home.css. Works regardless
   of what's above since the curve just reveals this footer's own navy,
   rather than trying to fake-match the previous section's colour. */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: var(--text-inverse);
  overflow: hidden;
  --wave-h: clamp(70px, 8vw, 140px);
  margin-top: calc(-1 * var(--wave-h));
  padding-top: calc(var(--space-7) + var(--wave-h));
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,90 480,0 720,40 C960,80 1200,90 1440,45 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,90 480,0 720,40 C960,80 1200,90 1440,45 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h));
  mask-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h));
}

.footer-waves svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(246, 244, 241, 0.12);
}

.footer-logo {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 100;
  font-size: var(--text-h2);
  color: var(--text-inverse);
  display: inline-block;
}

.footer-tag {
  margin-top: var(--space-2);
  color: rgba(246, 244, 241, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.footer-col a {
  display: block;
  padding-block: 0.35rem;
  color: rgba(246, 244, 241, 0.7);
  transition: color var(--duration-fast) var(--ease-soft);
}

.footer-col a:hover {
  color: var(--brand-sand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-4);
  font-size: var(--text-caption);
  color: rgba(246, 244, 241, 0.5);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 244, 241, 0.08);
  color: var(--text-inverse);
  transition: background var(--duration-fast) var(--ease-soft), transform var(--duration-fast) var(--ease-premium);
}

.footer-social a:hover {
  background: var(--brand-primary);
  transform: translateY(-3px);
}

/* ---------------------------------- Interior page hero ---------------------------------- */
/* Simpler header band for subpages — the big photo-led hero is a homepage-only
   flourish; interior pages get a calmer, text-led intro on the brand's warm
   palette instead, with room at the top to clear the fixed floating nav. */
.page-hero {
  position: relative;
  padding-top: calc(var(--section-pad-y) + 3rem);
  /* matches the default `section` bottom padding other pages rely on to
     clear their wave divider — a smaller fixed value here let the wave
     overlap the lead paragraph at wider viewports. */
  padding-bottom: var(--section-pad-y);
  overflow: hidden;
  text-align: center;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--text-h1);
  margin-top: var(--content-gap);
}

.page-hero .text-lead {
  max-width: 620px;
  margin: var(--space-4) auto 0;
}

/* Interior pages have no dark photo hero for the nav to sit on, so it starts
   in its "scrolled" light-pill state immediately instead of fading in late. */
.nav.nav--on-light {
  background: rgba(246, 244, 241, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.nav.nav--on-light .nav-logo,
.nav.nav--on-light .nav-actions {
  color: var(--text-primary);
}

/* ---------------------------------- Shared responsive rules ---------------------------------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---------------------------------- Reveal / motion utility classes (GSAP hooks) --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
}

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