/* ==========================================================================
   Uncle George Bottling Company — Components
   Buttons, navigation, cursor, bottle gauge, loader, tide, footer, forms.
   Built by Aniwene Solutions International · © 2026
   ========================================================================== */

/* --- Buttons: pill, water fills from the bottom on hover ----------------- */
.btn {
  --btn-bg: var(--accent-grad);
  --btn-fg: var(--on-accent);
  --btn-hover-bg: linear-gradient(120deg, #00aeef 0%, #56d6ff 100%);
  --btn-hover-fg: #021a33;
  --btn-shine: 0.75;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  isolation: isolate;
  white-space: nowrap;
  box-shadow: 0 12px 28px -12px rgba(var(--copper-rgb), 0.7), inset 0 1px 1px rgba(255,255,255,0.45), inset 0 -7px 14px rgba(2,13,26,0.28);
  transition: color 500ms var(--ease) 150ms, box-shadow 600ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* the glossy highlight of a water globe */
  content: ""; position: absolute; left: 10%; right: 10%; top: 1px; height: 55%;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0) 72%);
  opacity: var(--btn-shine);
}
.btn::after { /* the colour it settles into */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--btn-hover-bg); opacity: 0;
  transition: opacity 600ms var(--ease) 180ms;
}
.btn > * { position: relative; z-index: 2; }
@media (hover: hover) {
  .btn:hover { color: var(--btn-hover-fg); animation: drop-wobble 900ms cubic-bezier(0.3, 0.7, 0.4, 1) both; }
  .btn:hover::after { opacity: 1; }
}
.btn:focus-visible { color: var(--btn-hover-fg); }
.btn:focus-visible::after { opacity: 1; }
.btn:active { transform: scale(0.97, 1.03); }
@keyframes drop-wobble {
  0% { transform: scale(1, 1); }
  16% { transform: scale(1.09, 0.9); }
  34% { transform: scale(0.94, 1.07); }
  52% { transform: scale(1.04, 0.97); }
  70% { transform: scale(0.985, 1.015); }
  100% { transform: scale(1, 1); }
}
@keyframes wave-run { to { -webkit-mask-position: 60px 0; mask-position: 60px 0; } }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-shine: 0.35;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
}
.on-dark .btn--ghost, .hero .btn--ghost, .btn--ghost.on-dark { --btn-hover-bg: var(--glacier); --btn-hover-fg: var(--abyss); }
.on-light .btn--ghost, .on-white .btn--ghost, .q-actions .btn--ghost { --btn-fg: var(--spring); --btn-hover-bg: var(--accent-grad); --btn-hover-fg: #ffffff; }
.btn--light { --btn-bg: var(--glacier); --btn-fg: var(--abyss); --btn-hover-bg: var(--abyss); --btn-hover-fg: var(--glacier); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn .arrow { width: 16px; height: 16px; transition: transform 500ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* click ripple from the cursor point */
.ripple-dot {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1px solid currentColor;
  animation: ripple-out 900ms var(--ease) forwards;
  z-index: 2;
}
@keyframes ripple-out { from { transform: scale(0); opacity: 0.8; } to { transform: scale(18); opacity: 0; } }

/* Cap-twist icon used on closing CTAs */
.cap-icon { width: 18px; height: 22px; overflow: visible; }
.cap-icon .cap { transform-origin: 9px 6px; transition: transform 900ms var(--ease); }
.btn:hover .cap-icon .cap { transform: translateY(2px) rotate(-200deg) scaleX(0.92); }

.link {
  position: relative;
  color: var(--accent-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 600ms var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  color: var(--ink);
  transition: transform 700ms var(--ease), color 500ms var(--ease);
}
.nav.is-over-dark { color: var(--glacier); }
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(238, 245, 246, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
          backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--hairline-light);
  opacity: 0;
  transition: opacity 500ms var(--ease), background-color 500ms var(--ease);
}
.nav.is-frosted::before { opacity: 1; }
.nav.is-frosted.is-over-dark::before { background: rgba(4, 19, 27, 0.6); border-bottom-color: var(--hairline-dark); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  position: relative;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.brand__mark { width: auto; height: 48px; flex: none; filter: drop-shadow(0 4px 10px rgba(2,13,26,0.25)); }
@media (max-width: 767px) { .brand__mark { height: 40px; } }
.brand__name { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.005em; display: block; }
.brand__sub { display: block; font-size: 0.5625rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; font-weight: 500; }

.nav__inner > nav { margin-left: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 0.9375rem; }
.nav__links a { position: relative; padding: 8px 0; opacity: 0.82; transition: opacity var(--t-micro) var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 600ms var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__links + .nav__actions { margin-left: 8px; }

.sound-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: border-color var(--t-micro) var(--ease);
}
.sound-toggle:hover { border-color: currentColor; }
.sound-toggle svg { width: 20px; height: 14px; }
.sound-toggle .bar { transform-origin: center; transform-box: fill-box; transform: scaleY(0.25); transition: transform 400ms var(--ease); }
.sound-toggle[aria-pressed="true"] .bar { animation: eq 1.1s var(--ease) infinite alternate; }
.sound-toggle[aria-pressed="true"] .bar:nth-child(2) { animation-delay: -0.4s; }
.sound-toggle[aria-pressed="true"] .bar:nth-child(3) { animation-delay: -0.8s; }
.sound-toggle[aria-pressed="true"] .bar:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  place-items: center; align-content: center; grid-auto-rows: max-content;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform 500ms var(--ease); }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav__inner > nav { display: none; }
  .menu-toggle { display: grid; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 479px) {
  .brand__sub { display: none; }
  .sound-toggle { display: none; }
  .nav .btn { padding: 0 18px; }
}

/* Mobile menu: the screen fills with water, links float up */
.menu {
  position: fixed; inset: 0; z-index: 55;
  color: var(--glacier);
  pointer-events: none;
  visibility: hidden;
}
.menu__water {
  position: absolute; inset: -40px 0 0 0;
  background: linear-gradient(180deg, #0b3456, var(--abyss) 80%);
  transform: translateY(100%);
  transition: transform 900ms var(--ease);
}
.menu__water::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: #0b3456;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath d='M0 12 C40 2 80 2 120 12 S200 22 240 12 V24 H0Z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'%3E%3Cpath d='M0 12 C40 2 80 2 120 12 S200 22 240 12 V24 H0Z'/%3E%3C/svg%3E") 0 0 / 240px 24px repeat-x;
  animation: menu-wave 3s linear infinite;
}
@keyframes menu-wave { to { -webkit-mask-position: 240px 0; mask-position: 240px 0; } }
.menu__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
}
.menu__links a {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1.15;
  opacity: 0; transform: translateY(40px);
  transition: opacity 600ms var(--ease), transform 900ms var(--ease);
}
.menu__links a[aria-current="page"] { font-style: normal; color: var(--copper-soft); }
.menu__foot { margin-top: 48px; display: grid; gap: 8px; color: var(--mineral); opacity: 0; transition: opacity 600ms var(--ease) 500ms; }
.menu-open .menu { pointer-events: auto; visibility: visible; }
.menu-open .menu__water { transform: translateY(0); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__foot { opacity: 1; }
.menu-open .menu__links li:nth-child(1) a { transition-delay: 250ms; }
.menu-open .menu__links li:nth-child(2) a { transition-delay: 320ms; }
.menu-open .menu__links li:nth-child(3) a { transition-delay: 390ms; }
.menu-open .menu__links li:nth-child(4) a { transition-delay: 460ms; }
.menu-open .menu__links li:nth-child(5) a { transition-delay: 530ms; }
.menu-open .nav { color: var(--glacier); }
.menu-open .nav::before { opacity: 0; }
.menu:not(.is-ready) { transition: none; }

/* --- Droplet cursor (desktop only) --------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9000;
  pointer-events: none;
  display: none;
}
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-lens] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__drop {
  position: absolute; left: -7px; top: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(var(--aqua-rgb),0.55) 45%, rgba(18,59,77,0.55));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 6px 18px rgba(4,19,27,0.25);
  transition: width 500ms var(--ease), height 500ms var(--ease), left 500ms var(--ease), top 500ms var(--ease), opacity 300ms, background 500ms;
}
.cursor__ring {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid rgba(238,245,246,0.7);
  -webkit-backdrop-filter: blur(0.6px) saturate(1.5) contrast(1.08) brightness(1.08);
          backdrop-filter: blur(0.6px) saturate(1.5) contrast(1.08) brightness(1.08);
  box-shadow: inset 0 0 22px rgba(var(--aqua-rgb),0.35), inset 0 -10px 18px rgba(255,255,255,0.18), 0 10px 40px rgba(4,19,27,0.3);
  display: grid; place-items: center;
  font-size: 0.625rem; letter-spacing: 0.3em; font-weight: 600; color: var(--white);
  transform: scale(0.1); opacity: 0;
  transition: transform 600ms var(--ease), opacity 400ms var(--ease);
}
.cursor.is-lens .cursor__ring { transform: scale(1); opacity: 1; }
.cursor.is-lens .cursor__drop { opacity: 0; }
.cursor.is-link .cursor__drop { width: 34px; height: 34px; left: -17px; top: -17px; background: rgba(var(--copper-rgb),0.18); box-shadow: 0 0 0 1px rgba(var(--copper-rgb),0.75); }
.cursor.is-text .cursor__drop { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* --- Bottle gauge: scroll progress --------------------------------------- */
.gauge {
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; z-index: 50;
  width: 22px; height: 92px; margin-top: -46px;
  opacity: 0; transform: translateX(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.gauge.is-visible { opacity: 1; transform: none; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .g-glass { fill: rgba(238,245,246,0.08); stroke: currentColor; stroke-width: 1; opacity: 0.75; }
.gauge .g-liquid { fill: url(#g-liquid-grad); }
.gauge .g-cap { fill: var(--copper); transform-box: fill-box; transform-origin: center; transition: transform 900ms var(--ease); }
.gauge.is-full .g-cap { transform: translateY(2px) scaleX(1.08); }
.gauge .g-cap-ridge { stroke: rgba(4,19,27,0.35); stroke-width: 0.6; }
.gauge { color: var(--spring); }
.gauge.is-over-dark { color: var(--glacier); }
.gauge button { position: absolute; inset: -10px; border-radius: 12px; }
@media (max-width: 767px) { .gauge { display: none; } }

/* --- Canvases ------------------------------------------------------------ */
.drops-layer, .tide-layer {
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none;
}
.drops-layer { z-index: 40; }
.tide-layer { z-index: 8000; }
.tide-veil {
  position: fixed; inset: 0; z-index: 7999; background: var(--abyss);
  display: none;
}
.tide-incoming .tide-veil { display: block; }
.tide-message {
  position: fixed; inset: 0; z-index: 8001;
  display: grid; place-items: center; text-align: center;
  color: var(--glacier); padding: var(--gutter);
  pointer-events: none; opacity: 0;
  transition: opacity 900ms var(--ease);
}
.tide-message.is-on { opacity: 1; pointer-events: auto; }
.tide-message .h1 { max-width: 14em; margin: 18px auto 20px; }
.tide-message p { color: var(--mineral); max-width: 30em; margin: 0 auto 32px; }

/* --- Loader: first visit only ------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 9500;
  background: radial-gradient(120% 80% at 50% 30%, #0a2848, var(--abyss) 70%);
  display: none; place-items: center;
}
.first-visit .loader { display: grid; }
.loader__stage { position: relative; width: 240px; height: 240px; }
.loader__drop {
  position: absolute; left: 50%; top: 0; width: 14px; height: 20px; margin-left: -7px;
  background: radial-gradient(circle at 40% 60%, #d9f3f6, #5cc8f2 55%, #1d5a6d);
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  clip-path: path("M7 0 C7 0 0 9 0 13 A7 7 0 0 0 14 13 C14 9 7 0 7 0Z");
  animation: loader-drop 700ms var(--ease-in) 150ms forwards;
  transform: translateY(-120px); opacity: 0;
}
@keyframes loader-drop {
  0% { transform: translateY(-140px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(112px) scaleY(1.15); opacity: 1; }
}
.loader__ring {
  position: absolute; left: 50%; top: 128px; width: 200px; height: 56px; margin-left: -100px; margin-top: -28px;
  border-radius: 50%; border: 1px solid rgba(143,179,188,0.7);
  transform: scale(0); opacity: 0;
  animation: loader-ring 1300ms var(--ease) forwards;
}
.loader__ring:nth-child(2) { animation-delay: 830ms; }
.loader__ring:nth-child(3) { animation-delay: 960ms; }
.loader__ring:nth-child(4) { animation-delay: 1090ms; }
@keyframes loader-ring { 0% { transform: scale(0.05); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.loader__logo {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--glacier); opacity: 0; transform: translateY(10px);
  animation: loader-logo 900ms var(--ease) 1050ms forwards;
}
.loader__logo .brand__mark { height: 120px; width: auto; margin: 0 auto; }
.loader__logo span { font-family: var(--serif); font-size: 1.75rem; }
@keyframes loader-logo { to { opacity: 1; transform: none; } }
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s 700ms; }

/* --- Caustic light (texture generated in caustics.js) ------------------- */
.caustic { position: relative; isolation: isolate; overflow: hidden; }
.caustic::before, .caustic::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background-image: var(--caustic-img, none);
  background-size: 420px 420px;
  mix-blend-mode: screen;
  opacity: var(--caustic-opacity, 0.07);
  animation: caustic-a 26s linear infinite;
}
.caustic::after {
  background-size: 560px 560px;
  animation: caustic-b 34s linear infinite;
  opacity: calc(var(--caustic-opacity, 0.07) * 0.7);
}
@keyframes caustic-a { from { transform: translate3d(0, 0, 0) rotate(0.001deg); } to { transform: translate3d(-420px, 210px, 0); } }
@keyframes caustic-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(560px, -280px, 0); } }
.caustic > * { position: relative; }

/* --- Cards & glass -------------------------------------------------------- */
.glass-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-l);
  box-shadow: var(--glow-soft);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.on-dark .glass-card {
  background: rgba(238,245,246,0.04);
  border-color: var(--hairline-dark);
  box-shadow: var(--glow-deep);
}

/* --- Closing CTA band (copper) ------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #22c3ff 0%, var(--copper) 30%, var(--copper-deep) 70%, var(--sapphire) 100%);
  color: var(--on-accent);
  padding-block: clamp(88px, 9vw, 150px);
  text-align: center;
}
.cta-band .h1 { max-width: 13em; margin: 18px auto 36px; }
.cta-band .label { color: var(--on-accent); opacity: 0.8; }
.cta-band .btn { --btn-bg: var(--abyss); --btn-fg: var(--glacier); --btn-hover-bg: var(--glacier); --btn-hover-fg: var(--abyss); box-shadow: 0 16px 40px -14px rgba(2,13,26,0.7), inset 0 1px 1px rgba(255,255,255,0.2); }
.cta-band__waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; pointer-events: none; }
.cta-band__waves i { position: absolute; inset: 0; opacity: 0.16; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 40'%3E%3Cpath d='M0 20 C80 4 160 4 240 20 S400 36 480 20 V40 H0Z' fill='%23fff'/%3E%3C/svg%3E") 0 100% / 480px 40px repeat-x; animation: tile-run 11s linear infinite; }
.cta-band__waves i + i { opacity: 0.12; background-size: 620px 52px; animation: tile-run-back 15s linear infinite; }

/* --- Footer: the spring --------------------------------------------------- */
.footer {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 100%, #0a2a4a 0%, var(--abyss) 70%);
  color: var(--glacier);
  padding-top: clamp(80px, 8vw, 140px);
  --caustic-opacity: 0.08;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer h4 { font-size: var(--fs-label); letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; color: var(--copper-soft); margin-bottom: 20px; }
.footer li + li { margin-top: 10px; }
.footer a { color: var(--glacier); opacity: 0.86; transition: opacity var(--t-micro); }
.footer a:hover { opacity: 1; color: var(--white); }
.footer p { color: var(--mineral); }
.footer .tagline { font-family: var(--serif); font-style: normal; font-size: 1.5rem; line-height: 1.3; color: var(--glacier); max-width: 14em; margin-top: 24px; }
.newsletter { display: flex; border-bottom: 1px solid rgba(238,245,246,0.3); margin-top: 8px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; color: var(--glacier); }
.newsletter input::placeholder { color: var(--mineral); }
.newsletter button { color: var(--copper-soft); padding: 0 4px 0 12px; font-weight: 500; min-height: 44px; }
.newsletter-note { font-size: var(--fs-small); margin-top: 10px; min-height: 1.6em; color: var(--aqua) !important; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--hairline-dark);
  transition: border-color var(--t-micro), background-color var(--t-micro);
}
.socials a:hover { border-color: var(--copper); background: rgba(var(--copper-rgb),0.12); }
.socials svg { width: 18px; height: 18px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 24px 0; font-size: 0.8125rem; color: var(--mineral);
}
.footer__water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0; /* set exactly by UG.calmWater */
  pointer-events: none;
}
/* the surface itself is drawn by UG.calmWater (thirst.js) */
.footer > .container { position: relative; z-index: 1; }
.footer__staff { margin-top: 18px; }
@keyframes tile-run { to { background-position: 240px 0; } }
@keyframes tile-run-back { to { background-position: -240px 0; } }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* --- Forms: no boxes, a waterline that fills ---------------------------- */
.field { position: relative; padding-top: 22px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(18,59,77,0.25);
  padding: 10px 0 12px;
  font-size: 1.0625rem;
  color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field label {
  position: absolute; left: 0; top: 32px;
  color: var(--muted-ink); pointer-events: none;
  transform-origin: left top;
  transition: transform 600ms var(--ease), color 400ms var(--ease);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-28px) scale(0.78);
  color: var(--spring);
}
.field .line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--aqua), #9fe7ef);
  transform: scaleX(0); transform-origin: left;
  transition: transform 900ms var(--ease);
}
.field input:focus ~ .line, .field textarea:focus ~ .line { transform: scaleX(1); }
.field .error { display: block; min-height: 1.4em; font-size: 0.8125rem; color: #b5452f; margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b5452f; }
.field .optional { font-size: 0.75em; opacity: 0.7; margin-left: 6px; }
.on-dark .field input, .on-dark .field textarea { color: var(--glacier); border-bottom-color: rgba(238,245,246,0.25); }
.on-dark .field label { color: var(--mineral); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(18,59,77,0.22);
  color: var(--spring);
  font-size: 0.9375rem;
  transition: background-color 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease);
}
.chip:hover { border-color: var(--spring); }
.chip[aria-pressed="true"] { background: var(--spring); color: var(--glacier); border-color: var(--spring); }

/* --- Watch view (< 280 px): a glance, not a website -------------------- */
.watch { display: none; }
@media (max-width: 279px) {
  body > *:not(.watch):not(script) { display: none !important; }
  body { background: var(--abyss); }
  .watch {
    display: grid; place-items: center; align-content: center; gap: 14px;
    min-height: 100vh; padding: 12px 8px; text-align: center; color: var(--glacier);
  }
  .watch__drop { height: 76px; width: auto; animation: watch-drop 1.4s var(--ease) both; }
  @keyframes watch-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .watch__name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
  .watch a {
    display: grid; place-items: center;
    width: 100%; min-height: 48px; border-radius: 999px;
    font-size: 0.875rem; font-weight: 500;
  }
  .watch .w-order { background: var(--accent-grad); color: var(--on-accent); }
  .watch .w-call { border: 1px solid rgba(238,245,246,0.35); }
}

/* --- Shared bits ----------------------------------------------------------- */
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent);
  font-size: 0.8125rem;
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--fs-label); letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600;
  color: var(--mineral);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--mineral), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--glacier); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

.direct-rows { display: grid; gap: 12px; }
.direct-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 14px 22px;
  border-radius: var(--radius-m);
  background: var(--white);
  border: 1px solid var(--hairline-light);
  transition: border-color 500ms var(--ease), transform 500ms var(--ease);
}
.direct-row:hover { border-color: var(--copper); transform: translateY(-2px); }
.direct-row svg { width: 26px; height: 26px; flex: none; color: var(--accent-ink); }
.direct-row small { display: block; color: var(--muted-ink); font-size: 0.8125rem; }
.direct-row strong { font-weight: 500; }

/* --- Small looping illustration motions (journey, process, film) ------- */
.seep { animation: seep 3.2s var(--ease-in) infinite; }
@keyframes seep { 0% { transform: translateY(-30px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(220px); opacity: 0; } }
.cap-press { animation: cap-press 2.8s var(--ease) infinite; }
@keyframes cap-press { 0%, 20% { transform: translateY(-26px); } 45%, 70% { transform: translateY(0); } 100% { transform: translateY(-26px); } }
.belt { animation: belt 2.8s linear infinite; }
@keyframes belt { to { transform: translateX(-60px); } }
.flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.8s ease-in-out infinite alternate; }
.flicker:nth-of-type(2n) { animation-duration: 2.3s; animation-delay: -0.6s; }
@keyframes flicker { 0% { transform: scale(1, 1); opacity: 0.95; } 50% { transform: scale(0.9, 1.08); opacity: 0.8; } 100% { transform: scale(1.05, 0.94); opacity: 1; } }
.drift-x { animation: drift-x 18s ease-in-out infinite alternate; }
@keyframes drift-x { to { transform: translateX(-30px); } }
.shimmer { animation: shimmer 4s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: 0.35; } to { opacity: 0.85; } }


/* --- Premium touches for the blue family ------------------------------- */

.on-dark .display em, .on-dark .h1 em, .on-dark .h2 em, .on-dark .h3 em,
.hero .display em, .uw-hero .display em, .team-hero .display em, .tide-message .h1 em, .pool__thanks em, .founder em {
  color: #3cc4ff;
}

.hero .label, .uw-hero .label, .team-hero .label, .founder .label, .pool .label,
.tide-message .label, .moment .label { color: var(--copper-soft); }
.cta-band .h1 em { color: #021a33; }
.cta-band .label { color: rgba(255,255,255,0.86); opacity: 1; }

/* --- "Get a Quote": a water-tanker on a rough road ---------------------- */
.btn--quote {
  --btn-bg: linear-gradient(180deg, #0d4f94 0%, #082b4f 100%);
  --btn-fg: #ffffff;
  --btn-shine: 0.55;
  padding: 0 22px 0 20px; min-height: 44px;
  margin-bottom: 6px; /* room for the wheels */
  border: 1px solid rgba(var(--aqua-rgb), 0.55);
  box-shadow: 0 10px 26px -12px rgba(var(--copper-rgb), 0.8), inset 0 1px 1px rgba(255,255,255,0.4);
  transform: translateY(var(--bump, 0px)) rotate(var(--rock, 0deg));
  text-shadow: 0 1px 6px rgba(2,13,26,0.45);
}
.nav:not(.is-over-dark) .btn--quote { border-color: rgba(10,58,102,0.45); }
.btn--quote .tank { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0; pointer-events: none; }
.btn--quote .tank canvas { width: 100%; height: 100%; display: block; }
.btn--quote .wheels { position: absolute; left: 16%; right: 16%; bottom: -7px; height: 10px; display: flex; justify-content: space-between; z-index: -2; pointer-events: none; }
.btn--quote .wheels i {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #c9d6df 0 2px, #1b2733 2.5px 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  animation: wheel-roll 0.9s linear infinite;
}
.btn--quote .wheels i::after { content: ""; position: absolute; }
@keyframes wheel-roll { to { transform: rotate(360deg); } }
.btn--quote .wheels i { background: conic-gradient(from 0deg, #1b2733 0 22%, #3a4a58 22% 28%, #1b2733 28% 72%, #3a4a58 72% 78%, #1b2733 78%); }
.btn--quote .wheels i::before { content: ""; position: absolute; }
.btn--quote span:last-child { font-weight: 600; letter-spacing: 0.02em; }
@media (hover: hover) {
  .btn--quote:hover { --btn-hover-fg: #021a33; text-shadow: none; }
}
@media (max-width: 419px) { .brand__name { display: none; } }
.footer__staff a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hairline-dark); }
.footer__staff a:hover { border-color: var(--copper); }
.footer__staff svg { width: 16px; height: 16px; color: var(--copper-soft); }

/* the loader lifts by itself even if a script never runs */
.first-visit .loader { animation: loader-out 700ms var(--ease) 2.6s forwards; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* --- Official logo: dark-background version on dark, full colour on light */
.logo-pair { position: relative; display: inline-block; aspect-ratio: 1065 / 777; }
.logo-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 500ms var(--ease); }
.logo-pair .logo-on-dark { opacity: 0; }
.nav.is-over-dark .logo-pair .logo-on-dark, .menu-open .nav .logo-pair .logo-on-dark,
.footer .logo-pair .logo-on-dark, .loader .logo-pair .logo-on-dark, .watch .logo-pair .logo-on-dark { opacity: 1; }
.nav.is-over-dark .logo-pair .logo-on-light, .menu-open .nav .logo-pair .logo-on-light,
.footer .logo-pair .logo-on-light, .loader .logo-pair .logo-on-light, .watch .logo-pair .logo-on-light { opacity: 0; }

/* footer: content clears the waterline; the legal row sits in the water */
.footer__grid { padding-bottom: clamp(88px, 9vw, 140px); }

.cta-band__waves { display: none; }
