/* ---------- Design tokens ---------- */
:root {
  --shadow-color: 220 60% 2%;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0F0D0B;
  color: #F7F4EE;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(201, 138, 59, 0.35);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0F0D0B; }
::-webkit-scrollbar-thumb { background: #2D2721; border-radius: 8px; border: 2px solid #0F0D0B; }
::-webkit-scrollbar-thumb:hover { background: #C98A3B; }

/* ---------- Focus states (accessible, on-brand) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E0A458;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Grain texture overlay ---------- */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layered radial gradient backdrops (animated aurora mesh) ---------- */
.field-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.field-glow::before,
.field-glow::after,
.field-glow .blob {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.field-glow::before {
  width: 55%;
  height: 55%;
  left: -10%;
  top: -15%;
  background: radial-gradient(circle, rgba(201, 138, 59, 0.30), transparent 70%);
  animation: drift-a 22s var(--ease-spring) infinite alternate;
}
.field-glow::after {
  width: 45%;
  height: 45%;
  right: -8%;
  top: 5%;
  background: radial-gradient(circle, rgba(199, 98, 60, 0.20), transparent 70%);
  animation: drift-b 26s var(--ease-spring) infinite alternate;
}
.field-glow .blob {
  width: 50%;
  height: 50%;
  left: 25%;
  bottom: -25%;
  background: radial-gradient(circle, rgba(161, 92, 98, 0.16), transparent 70%);
  animation: drift-c 30s var(--ease-spring) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 8%) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8%, 6%) scale(1.1); }
}
@keyframes drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, -6%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .field-glow::before, .field-glow::after, .field-glow .blob { animation: none; }
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(24, 20, 15, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Tilt-ready surfaces ---------- */
[data-tilt] {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Magnetic buttons ---------- */
.btn-primary, .btn-coho, .btn-secondary {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.4s var(--ease-spring), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- Cursor spotlight ---------- */
[data-spotlight] {
  position: relative;
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(224, 164, 88, 0.14), transparent 70%);
}
[data-spotlight]:hover::before {
  opacity: 1;
}

/* ---------- Custom cursor dot ---------- */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E0A458;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), opacity 0.25s ease, background-color 0.25s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
#cursor-dot.is-active { opacity: 1; }
#cursor-dot.is-hovering {
  width: 34px;
  height: 34px;
  background: #E08059;
}
@media (pointer: coarse) {
  #cursor-dot { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 6, 5, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-spring);
}
.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
.lightbox-overlay.is-open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
[data-lightbox] { cursor: zoom-in; }

/* ---------- Liquid metal ---------- */
.btn-primary, .btn-coho {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-coho::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-spring);
}
.btn-primary:hover::after, .btn-coho:hover::after {
  left: 130%;
}

.metal-ring {
  background: conic-gradient(from 180deg, #6b6058, #ece4d8, #a89c8c, #f7f0e4, #6b6058);
  padding: 2px;
}
.metal-border {
  border: 1px solid transparent;
  background: linear-gradient(#18140F, #18140F) padding-box, linear-gradient(135deg, rgba(255,255,255,0.35), rgba(178,170,155,0.08) 40%, rgba(255,255,255,0.2) 70%, rgba(178,170,155,0.05)) border-box;
}

/* ---------- Layered, color-tinted shadows (depth system) ---------- */
.shadow-elevated {
  box-shadow:
    0 1px 1px rgba(0,0,0,0.3),
    0 8px 20px -8px rgba(0,0,0,0.55),
    0 2px 10px -4px rgba(201, 138, 59, 0.18);
}
.shadow-floating {
  box-shadow:
    0 2px 2px rgba(0,0,0,0.35),
    0 20px 45px -14px rgba(0,0,0,0.65),
    0 8px 24px -8px rgba(201, 138, 59, 0.25);
}
.shadow-warm {
  box-shadow:
    0 1px 1px rgba(0,0,0,0.3),
    0 8px 20px -8px rgba(0,0,0,0.55),
    0 2px 10px -4px rgba(199, 98, 60, 0.22);
}

/* ---------- Surfaces (depth layering) ---------- */
.surface {
  background: #18140F;
  border: 1px solid rgba(255,255,255,0.08);
}
.surface-2 {
  background: #221D17;
  border: 1px solid rgba(255,255,255,0.09);
}

section.surface, section.surface-2 {
  border-left: 0;
  border-right: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), background-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(180deg, #E0A458, #C98A3B);
  color: #241505;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -8px rgba(201,138,59,0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 28px -10px rgba(201,138,59,0.65);
}

.btn-secondary {
  background: transparent;
  color: #F7F4EE;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
}

.btn-coho {
  background: linear-gradient(180deg, #E08059, #C7623C);
  color: #240D02;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -8px rgba(199,98,60,0.55);
}
.btn-coho:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 14px 28px -10px rgba(199,98,60,0.65);
}

/* ---------- Nav link underline ---------- */
.nav-link {
  position: relative;
  color: #B2AA9B;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, #E0A458, #E08059);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
}
.nav-link:hover, .nav-link.is-active { color: #F7F4EE; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* ---------- Image treatment ---------- */
.img-treated {
  position: relative;
  overflow: hidden;
}
.img-treated img {
  transition: transform 0.8s var(--ease-spring);
}
.img-treated:hover img {
  transform: scale(1.045);
}
.img-treated::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,7,5,0.75) 0%, rgba(9,7,5,0.05) 45%, transparent 65%);
  pointer-events: none;
}
.img-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(201,138,59,0.20), rgba(199,98,60,0.12));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- Card lift ---------- */
.card-lift {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.4s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-spring), transform 0.55s var(--ease-spring);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] { transform: none; }

/* ---------- Timeline ---------- */
.timeline-line {
  background: linear-gradient(180deg, rgba(224,164,88,0.05), rgba(224,164,88,0.5) 15%, rgba(224,164,88,0.5) 85%, rgba(224,164,88,0.05));
}
.timeline-dot {
  box-shadow: 0 0 0 4px #0F0D0B, 0 0 0 5px rgba(224,164,88,0.4), 0 0 16px rgba(224,164,88,0.5);
}

/* ---------- Home hero: photo shown at natural size (crisp), soft blurred backdrop ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;            /* clears the fixed nav */
  background: #0F0D0B;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(34px) saturate(1.15) brightness(0.62);
  transform: scale(1.25);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 60% at 20% 30%, rgba(201,138,59,0.10), transparent 70%),
    linear-gradient(to bottom, rgba(15,13,11,0.35), rgba(15,13,11,0.10) 40%, #0F0D0B 100%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; }
.hero-photo { position: relative; width: 100%; max-width: 30rem; margin: 0 auto; aspect-ratio: 685 / 663; }
.hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 100%);
}
.hero-copy { position: relative; padding: 0 1.5rem 3.5rem; margin-top: 0.25rem; max-width: 40rem; }
@media (min-width: 640px) { .hero-copy { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) {
  .hero { height: clamp(520px, 74vh, 660px); padding-top: 5rem; }
  .hero-inner {
    height: 100%; max-width: 72rem; margin: 0 auto; padding: 0 2rem;
    flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 2.5rem;
  }
  .hero-photo { flex: 0 0 auto; height: 100%; width: auto; max-width: none; margin: 0; align-self: flex-end; }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 76%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 76%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero-copy { align-self: flex-end; margin-top: 0; padding: 0 0 4rem; flex: 1 1 0; min-width: 0; max-width: 36rem; }
}

/* ---------- Species cards (highlight on hover/focus only) ---------- */
.species-card {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.35s ease, background-color 0.35s ease;
}
.species-card:hover, .species-card:focus-visible {
  border-color: rgba(224, 128, 89, 0.55);
  background-color: rgba(199, 98, 60, 0.12);
  box-shadow: 0 1px 1px rgba(0,0,0,0.3), 0 12px 26px -10px rgba(0,0,0,0.6), 0 4px 14px -4px rgba(199, 98, 60, 0.35);
}
.species-card .species-name { transition: color 0.3s ease; }
.species-card:hover .species-name, .species-card:focus-visible .species-name { color: #E08059; }
.species-card:hover .species-nick, .species-card:focus-visible .species-nick { color: #F2AD8C; }
.species-fish { transition: transform 0.6s var(--ease-spring), filter 0.4s ease; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35)); }
.species-card:hover .species-fish, .species-card:focus-visible .species-fish { transform: scale(1.08) translateY(-2px); }

/* ---------- Contact form status ---------- */
.form-status { min-height: 1.5rem; color: #B2AA9B; }
.form-status[data-state="ok"] { color: #E0A458; }
.form-status[data-state="error"] { color: #E08059; }
#contact-form button:disabled { opacity: 0.7; cursor: progress; }

/* ---------- Globe steps ---------- */
.globe-step {
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}
.globe-step:hover { transform: translateX(6px); border-color: rgba(255,255,255,0.2); }
.globe-step:active { transform: translateX(3px) scale(0.99); }
.globe-step.is-active {
  border-color: rgba(224,164,88,0.6);
  background: linear-gradient(135deg, rgba(224,164,88,0.14), #18140F 65%);
  box-shadow: 0 10px 30px -12px rgba(224,164,88,0.35);
}
.cursor-grabbing { cursor: grabbing; }

/* ---------- Marquee / running water line accent ---------- */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ---------- Sticky nav blur ---------- */
.nav-blur {
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-spring);
}
#mobile-menu.is-open {
  max-height: 420px;
}

/* ---------- Misc ---------- */
.text-balance { text-wrap: balance; }
.font-display { font-family: 'Fraunces', serif; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float-slow 6s var(--ease-spring) infinite; }
