/* ==========================================================================
   Flukengroovin — shared styles (all pages)
   ========================================================================== */

:root {
  --deep: #06202a;
  --deep-2: #0a2f3b;
  --deep-3: #0f4150;
  --teal: #2b7d82;
  --sea: #3f9a9b;
  --foam: #eef7f4;
  --mist: #b8d3cf;
  --mist-2: #86a9a6;
  --sun: #ffcf7d;
  --sunset: #f6a46b;
  --coral: #ff7a3d;
  --coral-hi: #ff9861;
  --sand: #d8c49b;
  --line: rgba(184, 211, 207, 0.18);
  --glass: rgba(6, 32, 42, 0.6);
  --radius: 18px;

  --font-logo: 'Krona One', 'Arial Black', sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --nav-h: 68px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--sun);
  color: var(--deep);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The wordmark, with the accent ticks over the N and both O's like the hull */
.fg-logo {
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}
.fg-logo i {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.fg-logo i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.32em;
  width: 0.34em;
  height: 0.1em;
  background: currentColor;
  border-radius: 1px;
  transform: translateX(-30%) rotate(-28deg);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-hi);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: var(--coral);
  color: #1d0c03;
  box-shadow: 0 10px 28px -10px rgba(255, 122, 61, 0.7);
}
.btn--primary:hover { background: var(--coral-hi); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(238, 247, 244, 0.4); color: var(--foam); background: transparent; }
.btn--ghost:hover { border-color: var(--foam); background: rgba(255, 255, 255, 0.06); }
.btn[disabled] {
  cursor: not-allowed;
  background: rgba(238, 247, 244, 0.12);
  color: rgba(238, 247, 244, 0.7);
  box-shadow: none;
  transform: none;
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.is-scrolled,
.site-nav.is-open {
  background: rgba(6, 32, 42, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav__brand {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  padding-top: 6px;
}
.site-nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s, color 0.2s;
}
.site-nav__links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav__links a[aria-current="page"] { background: var(--sun); color: var(--deep); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s, background 0.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav.is-open .nav-toggle span { background: transparent; }
.site-nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-nav__brand { font-size: 14px; }
  .nav-toggle { display: inline-flex; }
  .site-nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 18px;
    background: rgba(6, 32, 42, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .site-nav.is-open .site-nav__links { opacity: 1; transform: none; visibility: visible; }
  .site-nav__links a { padding: 12px 14px; font-size: 20px; }
}

/* ---------- Footer (sub pages) ---------- */
.site-footer {
  position: relative;
  background: #041820;
  border-top: 1px solid var(--line);
  padding: 48px clamp(16px, 5vw, 64px) 32px;
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.site-footer .fg-logo { font-size: 22px; color: #fff; }
.site-footer__tagline {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
}
.footer-links a:hover { color: #fff; }
.site-footer__legal {
  max-width: 1180px;
  margin: 28px auto 0;
  font-size: 14px;
  color: var(--mist-2);
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Photo placeholder ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  color: var(--mist);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 207, 125, 0.18), transparent 60%),
    linear-gradient(160deg, #1b5664, #0c3442 70%);
  border: 1.5px dashed rgba(184, 211, 207, 0.35);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ph svg { width: 42px; height: 42px; opacity: 0.8; }

/* Ambient bubbles used on sub pages */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  border: 1px solid rgba(220, 245, 255, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 60%);
  animation: bubble-rise linear infinite;
}
@keyframes bubble-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(14px, -50vh); }
  100% { transform: translate(-8px, -105vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
