/* ==========================================================================
   ATOMIK OCEAN — photography-dominant Y2K editorial scrapbook
   Palette: pink / magenta / lavender / violet / plum
   ========================================================================== */

:root {
  --plum-950: #1c0f1c;
  --plum-900: #26132a;
  --plum-800: #341b3b;
  --violet-600: #6d3fa0;
  --violet-500: #8a53c4;
  --lavender-400: #b79fe0;
  --lavender-200: #e4d9f5;
  --magenta-600: #b0208f;
  --magenta-500: #d6299f;
  --pink-500: #ec5cb6;
  --pink-300: #f6a9d6;
  --cream: #f7eef2;
  --ink: #1a1120;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;

  --edge: 2px solid var(--ink);
  --shadow-card: 6px 6px 0 rgba(28, 15, 28, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 41, 159, 0.14), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(109, 63, 160, 0.18), transparent 45%),
    var(--plum-950);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ----------------------------- ocean archive ----------------------------- */

.archive-page {
  --ocean-deep: #062f46;
  --ocean-mid: #0b6f8c;
  --ocean-bright: #47c9d4;
  --sea-glass: #c9f4ef;
  --foam: #f5fffd;
  position: relative;
  min-height: 100%;
  color: var(--foam);
  /* Deep ocean field behind the archive. The centre stays dark enough for
     the photography while the outer water tones keep the line art legible. */
  background-color: #052f48;
  /* high-definition crashing-ocean photo as the top background layer — the
     gradient wash stays underneath as a legibility tint over the photo. */
  background-image:
    url("public/images/atomik/ocean-background-hd.jpg"),
    radial-gradient(52% 34% at 5% 14%, rgba(71, 201, 212, 0.42), transparent 68%),
    radial-gradient(48% 32% at 96% 72%, rgba(17, 128, 157, 0.42), transparent 68%),
    linear-gradient(165deg, #0b718d, #052f48 45%, #031b2d 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, auto, auto, auto;
  background-position: center top, 5% 14%, 96% 72%, center;
  background-attachment: fixed;
}

.archive-page .site-header {
  background: rgba(52, 27, 59, 0.82);
  border-bottom-color: rgba(246, 169, 214, 0.38);
}

.archive-page .site-nav a,
.archive-page .spread-head h2,
.archive-page .footer-note {
  color: var(--foam);
}

.archive-page .intro-strip span {
  color: var(--pink-500);
}

.archive-page .site-nav a:hover,
.archive-page .site-nav a:focus-visible {
  color: var(--pink-300);
  border-color: var(--magenta-500);
}

.archive-page .site-nav a[aria-current="page"] {
  color: var(--pink-300);
  border-color: var(--magenta-500);
}

.archive-page .photoshoot-intro,
.archive-page .intro-strip,
.archive-page .spread,
.archive-page .site-footer {
  position: relative;
  z-index: 0;
}

.archive-page .photoshoot-intro::before,
.archive-page .spread::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20px 0;
  background: rgba(3, 42, 62, 0.48);
  border: 1px solid rgba(201, 244, 239, 0.25);
  backdrop-filter: blur(4px);
}

.archive-page .photoshoot-intro {
  margin-top: 54px;
}

/* recoloured plum/magenta to match the hero — covers both the top-of-page
   panel and the per-gallery panels further down the page (.spread::before),
   overriding the ocean-teal shared default above for every section. */
.archive-page .photoshoot-intro::before,
.archive-page .spread::before {
  background: rgba(58, 15, 66, 0.5);
  border-color: rgba(246, 169, 214, 0.28);
  border-left: none;
  border-right: none;
  /* torn-edge scrapbook panel: jagged top/bottom instead of a clean rectangle */
  clip-path: polygon(
    0% 3%, 4% 0%, 9% 2%, 14% 0%, 19% 3%, 24% 1%, 29% 3%, 34% 0%, 39% 2%, 44% 0%,
    49% 3%, 54% 1%, 59% 3%, 64% 0%, 69% 2%, 74% 0%, 79% 3%, 84% 1%, 89% 3%, 94% 0%, 100% 2%,
    100% 98%, 96% 100%, 91% 98%, 86% 100%, 81% 97%, 76% 100%, 71% 98%, 66% 100%, 61% 97%, 56% 100%,
    51% 98%, 46% 100%, 41% 97%, 36% 100%, 31% 98%, 26% 100%, 21% 97%, 16% 100%, 11% 98%, 6% 100%, 0% 97%
  );
}

.archive-page .photoshoot-intro h2,
.archive-page .photoshoot-intro > p:last-child,
.archive-page .spread-note,
.archive-page .intro-strip {
  color: var(--foam);
  text-shadow: 0 2px 12px rgba(0, 27, 42, 0.9);
}

.archive-page .section-kicker,
.archive-page .spread-index {
  color: var(--lavender-400);
}

.archive-page .spread-index {
  border-color: var(--lavender-400);
  background: rgba(52, 27, 59, 0.66);
}

.archive-page .spread--alt {
  background: none;
}

.archive-page .intro-strip,
.archive-page .site-footer {
  background: rgba(2, 37, 55, 0.72);
  border-color: rgba(201, 244, 239, 0.34);
  backdrop-filter: blur(5px);
}

/* recoloured plum/magenta — covers both the top-of-page stats strip and the
   footer, overriding the ocean-teal shared default above for both. */
.archive-page .intro-strip,
.archive-page .site-footer {
  background: rgba(46, 15, 54, 0.68);
  border-color: rgba(246, 169, 214, 0.3);
}

.archive-page .photo {
  border-color: var(--ocean-deep);
  box-shadow: 7px 7px 0 rgba(0, 35, 51, 0.62);
}

.archive-page .photo:hover {
  box-shadow: 11px 11px 0 rgba(0, 35, 51, 0.52);
}

.archive-page .lightbox {
  background: rgba(28, 15, 28, 0.96);
}

.archive-page .back-to-top {
  color: var(--violet-500);
  border-color: var(--violet-500);
}

/* Illustrated Art Nouveau border, left and right — gold filigree cap,
   dense fine-line rose vine (thorn-rose-vine-v4.png), a thin teal
   wave/shell trim on the inner edge, and the approved full-colour mermaid
   mirrored across both sides so the pair faces inward symmetrically.

   --safe-gutter is the true worst-case empty margin outside the photo
   grid: below 1120px viewport the .spread section fills the viewport
   edge-to-edge and even the tightest layout (the 3-up Gothic Boots
   gallery) leaves only its own 24px side padding spare, so the border
   is fully hidden there. Above 1120px it grows with the real margin the
   grid always has around every Polaroid at every gallery width (checked
   against the 2-up and 3-up grids down to 1120px, with a subtracted
   safety buffer) — so it can widen enough on ordinary laptop screens
   (1280–1440px) to actually read as an illustration, while staying
   mathematically unable to reach a photo, heading, nav item, or the
   lightbox. The vine/cap/wave trim keep to a slim 176px lane hugging the
   true page edge; the mermaid — the focal figure — is allowed the fuller
   width so it isn't shrunk to an unrecognisable sliver. Both are capped
   by the same --safe-gutter, so neither can ever exceed it. */
.page-border {
  --safe-gutter: clamp(0px, calc((100vw - 1120px) / 2 - 6px), 240px);
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--safe-gutter);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.page-border--left { left: 0; }
.page-border--right { right: 0; }

@media (max-width: 1140px) {
  .archive-page .page-border {
    display: block;
    --safe-gutter: 56px;
    opacity: .78;
  }
}

.border-cap {
  position: absolute;
  top: 0;
  left: 0;
  width: min(176px, 100%);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .25)) drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
}
.page-border--right .border-cap { left: auto; right: 0; }

/* The rose vine is see-through and grows forever. The art lives in two
   pseudo-element layers, each one tile taller than the lane, so they can
   climb upward by exactly one tile (--vine-tile, the PNG's 180x440 ratio at
   the lane width) and loop without a seam. ::before is the main vine,
   climbing steadily. ::after is a mirrored second growth that climbs faster
   and blooms in and out, so new stems keep visibly pushing up through the
   old ones instead of the border reading as a scrolling strip. Only
   transform and opacity animate (compositor-only), and the drop-shadow
   sits on each layer rather than the lane so it isn't re-filtered each frame. */
.border-vine {
  --vine-w: min(176px, var(--safe-gutter));
  --vine-tile: calc(var(--vine-w) * 440 / 180);
  --vine-offset: 0px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--vine-w);
  overflow: hidden;
  opacity: .58;
}
.border-vine::before,
.border-vine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--vine-tile));
  background-image: url("public/images/atomik/thorn-rose-vine-v4.png");
  background-repeat: repeat-y;
  background-size: var(--vine-w) auto;
  background-position: center var(--vine-offset);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .22)) drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
  will-change: transform;
}
.border-vine::after {
  background-position: center calc(var(--vine-offset) + var(--vine-tile) / 2);
  transform: scaleX(-1);
  opacity: 0;
}
.page-border--right .border-vine {
  left: auto;
  right: 0;
  transform: scaleX(-1);
  --vine-offset: 210px;
}

@media (prefers-reduced-motion: no-preference) {
  .border-vine::before { animation: vine-climb 16s linear infinite; }
  .border-vine::after {
    animation: vine-climb-mirror 10s linear infinite, vine-bloom 9s ease-in-out infinite;
  }
  .page-border--right .border-vine::before { animation-delay: -7s; }
  .page-border--right .border-vine::after { animation-delay: -4s, -4.5s; }
}
@keyframes vine-climb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-1 * var(--vine-tile)), 0); }
}
@keyframes vine-climb-mirror {
  from { transform: translate3d(0, 0, 0) scaleX(-1); }
  to { transform: translate3d(0, calc(-1 * var(--vine-tile)), 0) scaleX(-1); }
}
@keyframes vine-bloom {
  0%, 100% { opacity: 0; }
  50% { opacity: .7; }
}

.border-wave {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  background-image: url("public/images/atomik/wave-shell-trim.svg");
  background-repeat: repeat-y;
  background-size: 10px auto;
  opacity: .8;
}
.page-border--left .border-wave { right: 0; }
.page-border--right .border-wave { left: 0; transform: scaleX(-1); }

.border-mermaid {
  position: absolute;
  left: 0;
  width: min(240px, 100%);
  height: auto;
  aspect-ratio: 873 / 1802;
  opacity: .88;
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, .18)) drop-shadow(0 10px 18px rgba(0, 8, 18, .55));
}
.border-mermaid--left {
  top: 16%;
  transform: translateY(-25%) rotate(-2deg);
}
.border-mermaid--right {
  left: auto;
  right: 0;
  top: 16%;
  transform: translateY(-25%) scaleX(-1) rotate(2deg);
}

@media (max-width: 1000px) {
  .border-mermaid { opacity: .7; }
}

/* unrelated mobile tuning carried over from the previous vine rules:
   fixed-attachment backgrounds are costly on mobile Safari, the mobile nav
   drawer needs a solid backing, and the intro/spread panels get a smaller
   inset once the border illustration itself has already faded out above. */
@media (max-width: 720px) {
  .archive-page .page-border {
    --safe-gutter: 32px;
    opacity: .68;
    overflow: visible;
  }
  .archive-page .border-mermaid {
    width: 96px;
    max-width: none;
    opacity: .92;
  }
  .archive-page {
    background-attachment: scroll;
    background-position: 58% center;
  }
  .archive-page .site-nav {
    background: rgba(3, 35, 55, 0.97);
  }
  .archive-page .photoshoot-intro::before,
  .archive-page .spread::before {
    inset-inline: 10px;
  }
}


/* -------------------------------- splash entry -------------------------------- */

.splash-page {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #050505;
}

.splash {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: #050505;
}

.splash-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* biased toward the top of the frame so the emblem/wordmark above has
     clear headroom above the hairline instead of sitting on the face */
  object-position: 50% 15%;
}

.splash-logo {
  position: absolute;
  top: clamp(6px, 2vh, 22px);
  left: 50%;
  /* the approved hand-drawn lockup (gothic wordmark + fine-line fairy +
     wave/pearl flourish) — this is the first thing a visitor should see,
     so it gets real room on desktop. Width is capped by vh as well as vw
     so it can never grow tall enough on short/landscape viewports to
     reach down into the face in the photo below it. */
  width: min(560px, 72vw, 34vh);
  aspect-ratio: 981 / 587;
  transform: translateX(-50%);
  /* soft dark backdrop so the pale linework stays legible over whichever
     part of the photo sits behind it, without a hard box or heavy glow */
  filter: drop-shadow(0 0 26px rgba(4, 10, 20, .45)) drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
}

.splash-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 0;
}

/* the full wordmark+fairy lockup is the default; only on genuinely tiny
   or short/landscape viewports (where the full lettering would compress
   past legibility) does it hand off to the standalone fairy/wave/pearl
   symbol mark instead — see the two media queries below. */
.splash-logo-img--symbol { display: none; }

/* immersive touch: three copies of the same fairy/wave/pearl mark, set
   drifting slowly over the photo — kept small, low-opacity and slow so it
   reads as atmosphere rather than clutter, and placed in the open middle
   band so it never crosses the wordmark above or the action bar below. */
.splash-spirits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.splash-spirit {
  position: absolute;
  /* the artwork is fine-line and mostly negative space, so it needs real
     size and a soft glow to read at all — bare hairline strokes at low
     opacity measurably vanish against a busy photo (checked by pixel-
     sampling a render). The glow is what actually carries it: same idea
     as the drop-shadow already on .splash-logo for the same reason. */
  width: clamp(56px, 9vw, 96px);
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.splash-spirit--a { top: 40%; left: 9%; }
.splash-spirit--b { top: 53%; right: 11%; }
.splash-spirit--c { top: 65%; left: 18%; }

@media (max-width: 720px) {
  .splash-spirit { width: clamp(46px, 13vw, 66px); opacity: 0.8; }
  .splash-spirit--c { display: none; } /* keep the band uncluttered on short phone viewports */
}

@media (prefers-reduced-motion: no-preference) {
  .splash-spirit--a { animation: splash-drift 17s ease-in-out infinite; }
  .splash-spirit--b { animation: splash-drift 21s ease-in-out infinite 2.5s reverse; }
  .splash-spirit--c { animation: splash-drift 14s ease-in-out infinite 1s; }

  /* site-wide, not just the splash: every border mermaid on every page
     breathes gently around its existing resting pose. */
  .border-mermaid--left { animation: splash-bob-left 12s ease-in-out infinite; }
  .border-mermaid--right { animation: splash-bob-right 13s ease-in-out infinite; }
}

/* reusable version of the same drifting fairy/wave/pearl mark for other
   "arrival" moments on the site (currently: the portfolio intro) — same
   asset, same glow technique, its own position variants per placement. */
.spirit-mark {
  position: absolute;
  pointer-events: none;
  width: clamp(50px, 7vw, 84px);
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}
@media (prefers-reduced-motion: no-preference) {
  .spirit-mark--left { animation: splash-drift 18s ease-in-out infinite; }
  .spirit-mark--right { animation: splash-drift 20s ease-in-out infinite 2s reverse; }
}

@keyframes splash-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(9px, -16px) rotate(4deg); }
}

/* same base transforms as the static .border-mermaid--left/--right rules
   below, just breathing gently around them */
@keyframes splash-bob-left {
  0%, 100% { transform: translateY(-25%) rotate(-2deg); }
  50% { transform: translateY(-31%) rotate(-4deg); }
}
@keyframes splash-bob-right {
  0%, 100% { transform: translateY(-25%) scaleX(-1) rotate(2deg); }
  50% { transform: translateY(-31%) scaleX(-1) rotate(4deg); }
}

/* Same illustrated border as the archive page (.page-border — gold cap,
   rose vine, wave trim, mermaid), reused here so the two pages read as one
   book. The splash has no fixed content column to measure a safe margin
   against (the photo is always full-bleed), so its border is sized in vw
   against the centred logo/wordmark/enter button instead of the archive's
   px-threshold formula — proven clear of them at every width down to the
   existing 720px mobile breakpoint, where it hands off to a smaller size
   the same way the rest of the splash scales down. z-index keeps it above
   the photo/tint but below the logo, wordmark and ENTER button. */
.splash .page-border {
  --safe-gutter: clamp(30px, 8vw, 140px);
  /* auto, not the archive's positive z-index: relies on DOM order instead
     (border markup sits before .splash-logo/.splash-enter in index.html)
     so the logo, wordmark and ENTER button always paint above it. */
  z-index: auto;
}
.splash .border-mermaid { opacity: .8; }

@media (max-width: 720px) {
  .splash .page-border {
    --safe-gutter: clamp(32px, 8vw, 54px);
  }
  .splash .border-mermaid { opacity: .55; }
}

/* Living border, opening page only: a soft gold/teal glow that endlessly
   grows and reshapes behind the cap/vine/wave/mermaid art — illusion only.
   .page-border's own box (--safe-gutter) never changes, so nothing reflows;
   this is a painted ::before pulsing via `transform: scale` and morphing
   via `border-radius`, both paint-only properties. It's first in the box so
   it paints behind the real border art without needing z-index. */
.splash .page-border::before {
  content: "";
  position: absolute;
  inset: -6% -45% -6% -8%;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 130, .35), rgba(140, 90, 190, .2) 55%, transparent 78%);
  filter: blur(20px);
  opacity: .8;
  pointer-events: none;
}
.splash .page-border--right::before { inset: -6% -8% -6% -45%; }

@media (prefers-reduced-motion: no-preference) {
  .splash .page-border::before {
    animation: border-grow 9s ease-in-out infinite, border-morph 16s ease-in-out infinite;
  }
  .splash .page-border--right::before {
    animation-name: border-grow, border-morph;
    animation-duration: 9s, 16s;
    animation-delay: -4.5s, -8s; /* opposite phase so the two sides never breathe in lockstep */
    animation-iteration-count: infinite, infinite;
    animation-timing-function: ease-in-out, ease-in-out;
  }
}

@keyframes border-grow {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.22); opacity: 1; }
}
@keyframes border-morph {
  0%, 100% { border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%; }
  33% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
  66% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
}

/* Bottom action bar: the portfolio CTA, a compact link to every other page,
   and the full social row (OnlyFans included — this is the one place on the
   site it appears). Anchored to the bottom of the full-bleed photo behind a
   dark scrim of its own, so contrast never depends on what part of the photo
   happens to be underneath — the exact problem the old plain-text OnlyFans
   link on archive.html had. */
.splash-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 16px);
  padding: clamp(18px, 5vh, 36px) clamp(16px, 6vw, 40px) clamp(14px, 3vh, 26px);
  background: linear-gradient(to top, rgba(5, 4, 8, 0.9) 0%, rgba(5, 4, 8, 0.68) 48%, rgba(5, 4, 8, 0) 100%);
}

.splash-enter {
  position: relative;
  padding: 12px 21px 12px 25px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(38, 13, 46, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: color 0.18s ease, background 0.18s ease;
}

.splash-enter:hover,
.splash-enter:focus-visible {
  color: #1c0f1c;
  background: #f6a9d6;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.splash-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
}

.splash-pages a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.splash-pages a:hover,
.splash-pages a:focus-visible {
  color: var(--pink-300);
  border-color: var(--pink-300);
}

.splash-socials {
  color: rgba(255, 255, 255, 0.85);
}
.splash-socials .social-icon {
  color: rgba(255, 255, 255, 0.85);
}
.splash-socials .social-icon:hover,
.splash-socials .social-icon:focus-visible {
  color: var(--pink-300);
}

@media (max-width: 720px) {
  .splash-photo {
    object-position: 50% 15%;
  }
  .splash-logo {
    top: 6px;
    /* wide enough on ordinary tall portrait phones that the wordmark
       never runs past the viewport edge — the vh figure only bites on
       short/landscape mobile screens, same as the original intent. */
    width: min(320px, 90vw, 42vh);
  }
  .splash-actions {
    gap: 9px;
    padding: 14px 14px 16px;
  }
  .splash-enter {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    padding: 11px 16px 11px 19px;
  }
  .splash-pages {
    gap: 4px 14px;
  }
  .splash-pages a {
    font-size: 0.6rem;
  }
  .splash-socials {
    gap: 14px;
  }
}

/* genuinely tiny or short/landscape viewports: the full wordmark would
   compress past legibility here, so hand off to the standalone fairy
   symbol instead of shrinking the lettering further */
@media (max-width: 340px), (max-height: 480px) and (orientation: landscape) {
  .splash-logo {
    width: min(120px, 34vw, 22vh);
    aspect-ratio: 1 / 1.27;
  }
  .splash-logo-img--full { display: none; }
  .splash-logo-img--symbol { display: block; }
}

/* subtle film grain — restrained, not a gimmick */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------------------------- header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 15, 28, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(231, 180, 219, 0.25);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 13px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
}

.wordmark {
  grid-column: 2;
  grid-row: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wordmark img {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 24, 36, .55));
}

.site-nav {
  display: flex;
  /* tightened from the original 28px now that the nav carries the full
     site link set (Home/Music/Portfolio/Videos/About/Archive/Contact)
     instead of a single "Photoshoot Portfolio" link */
  gap: 18px;
}
.site-nav a {
  color: var(--lavender-200);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav a[aria-current="page"] {
  color: var(--pink-300);
  border-color: var(--pink-500);
}

.header-actions {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--pink-500);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--pink-500);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon svg .solid {
  fill: currentColor;
  stroke: none;
}

.social-icon--letters {
  width: auto;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.social-icon--x {
  font-size: 1rem;
  font-weight: 500;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--pink-300);
  transform: translateY(-2px);
}
.social-icon:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 3px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--pink-300);
  border-color: var(--magenta-500);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 2px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  display: block;
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - 69px);
  padding: 70px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(246, 169, 214, 0.35);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #190b1b;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: none;
}

.hero-copy {
  position: absolute;
  top: 7%;
  left: 5%;
  width: min(440px, 38vw);
  padding: 0;
  text-align: left;
  transform: rotate(-4deg);
  text-shadow: 0 5px 24px rgba(12, 2, 16, 0.95);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--pink-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
}

.hero-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 0.68;
  filter: drop-shadow(4px 6px 0 rgba(70, 26, 95, 0.78));
}
.hero-title .line {
  display: block;
  font-size: clamp(4.6rem, 8vw, 8rem);
  letter-spacing: -0.055em;
  color: #ff8bd0;
  -webkit-text-stroke: 1px #ffe7f6;
}
.hero-title .accent {
  color: #d990ff;
  margin-left: 0.42em;
  -webkit-text-stroke: 1px #ffe7f6;
  text-shadow: 0 0 24px rgba(236, 92, 182, 0.7);
}

.hero-butterfly {
  width: 76px;
  margin: 0 0 -9px 14px;
  overflow: visible;
  fill: rgba(236, 92, 182, 0.2);
  stroke: #fbc5e5;
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(236, 92, 182, 0.8));
}

.hero-sub {
  max-width: 520px;
  margin: 26px auto 0;
  color: #fff6fc;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tape {
  position: absolute;
  top: 30px;
  background: var(--pink-300);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  font-weight: 600;
}
.tape-left { left: 6%; transform: rotate(-8deg); }
.tape-right { right: 6%; transform: rotate(7deg); background: var(--lavender-400); }

.hero-enter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.68);
  padding: 12px 20px 12px 24px;
  background: rgba(23, 4, 28, 0.46);
  backdrop-filter: blur(6px);
}
.hero-enter:hover,
.hero-enter:focus-visible {
  color: var(--plum-950);
  background: var(--pink-300);
  border-color: var(--pink-300);
}

.photoshoot-intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 24px 42px;
  text-align: center;
}
.portfolio-logo {
  display: block;
  width: min(300px, 68%);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.photoshoot-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.94;
  color: var(--cream);
  letter-spacing: 0.025em;
}
.photoshoot-intro > p:last-child {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--lavender-200);
}

/* the same drifting fairy/wave/pearl mark used on the splash, set loose
   around the portfolio wordmark — this page's own "arrival" moment. */
.photoshoot-intro .spirit-mark--left { top: 4%; left: 4%; }
.photoshoot-intro .spirit-mark--right { top: 46%; right: 3%; }
@media (max-width: 640px) {
  .photoshoot-intro .spirit-mark { width: clamp(38px, 11vw, 52px); opacity: 0.45; }
  .photoshoot-intro .spirit-mark--left { top: 13%; left: 9%; }
  .photoshoot-intro .spirit-mark--right { top: 46%; right: 8%; }
}

/* ---------------------------------- intro strip ---------------------------------- */

.intro-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 24px;
  border-bottom: 1px dashed rgba(231, 180, 219, 0.3);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-200);
}
.intro-strip span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--pink-500);
  margin-right: 6px;
  letter-spacing: 0.02em;
}

/* ---------------------------------- cta row (spotify primary / onlyfans secondary) ---------------------------------- */

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 24px 8px;
  text-align: center;
}

.cta-primary {
  display: inline-block;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--magenta-500), var(--violet-500));
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 9px 9px 0 rgba(28, 15, 28, 0.5);
  outline: 2px solid var(--pink-300);
  outline-offset: 3px;
}

.cta-secondary {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lavender-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 159, 224, 0.5);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-secondary:hover,
.cta-secondary:focus-visible {
  color: var(--pink-300);
  border-color: var(--pink-300);
  opacity: 1;
}

/* Portfolio sea-life interludes. Each lane owns its space above the next
   heading; clipping prevents illustrations from ever covering a photograph. */
.archive-page .portfolio-header-wordmark img {
  height: 40px;
}
.archive-page .portfolio-logo,
.archive-page .portfolio-footer-logo {
  height: auto;
  object-fit: contain;
  /* Recolour the existing light artwork without touching its source file. */
  filter: brightness(0) saturate(100%) invert(83%) sepia(27%) saturate(959%) hue-rotate(285deg) brightness(102%) contrast(93%) drop-shadow(0 3px 9px #062f46);
}
.portfolio-footer-logo { width: min(280px, 66vw); }
.footer-logo-link { display: inline-block; }
.footer-logo-link:focus-visible,
.sea-life-toggle:focus-visible { outline: 2px solid var(--pink-300); outline-offset: 6px; }
/* One discreet control for every swimmer on the page. */
.sea-life-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sea-glass);
  background: rgba(6, 47, 70, .55);
  border: 1px solid rgba(201, 244, 239, .35);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.sea-life-toggle:hover { color: var(--pink-300); border-color: rgba(246, 169, 214, .6); }
/* Pause glyph (two bars) while swimming; play triangle once paused. */
.sea-life-toggle-icon {
  width: 8px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.sea-life-toggle.is-paused .sea-life-toggle-icon {
  border-right: 0;
  border-left: 9px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  width: 0;
}
/* Each lane is its own gap in the page flow, above a spread heading, and is
   kept inside the content column so no swimmer can reach the side border
   art, a Polaroid or a heading. --lane-inset tracks the .page-border
   --safe-gutter at each breakpoint plus a small buffer. */
.swim-lane {
  --lane-inset: 24px;
  position: relative;
  z-index: 3;
  width: min(1072px, 100% - 2 * var(--lane-inset));
  height: var(--lane-height);
  margin: 22px auto;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  contain: layout paint;
  container-type: inline-size;
}
.swim-lane--mermaid { --lane-height: clamp(116px, 13vw, 164px); }
.swim-lane--turtle { --lane-height: clamp(92px, 9.5vw, 128px); }
.swim-lane--dolphin { --lane-height: clamp(100px, 10.5vw, 138px); }
.swim-lane--hammerhead { --lane-height: clamp(84px, 8.5vw, 112px); }
.swimmer {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--swimmer-width);
  display: grid;
  align-items: center;
  opacity: 0;
  /* Slow, bounded crossing: fades in at the lane's left edge, glides to the
     right edge and fades out, never leaving the lane. */
  animation: sea-crossing var(--crossing) linear infinite;
  animation-delay: var(--arrival);
  filter: drop-shadow(0 4px 5px rgba(0, 22, 40, .5));
}
/* Scale, largest to smallest: mermaid > dolphin > turtle > hammerhead
   (hammerhead about finger-length). Durations and delays differ slightly so
   the four lanes never move in lockstep. */
.swimmer--mermaid { --swimmer-width: clamp(112px, 15vw, 190px); --crossing: 34s; --arrival: -4s; --rest-x: 30%; }
.swimmer--turtle { --swimmer-width: clamp(68px, 7.5vw, 104px); --crossing: 42s; --arrival: -17s; --rest-x: 68%; }
.swimmer--dolphin { --swimmer-width: clamp(86px, 10vw, 136px); --crossing: 30s; --arrival: -9s; --rest-x: 38%; }
.swimmer--hammerhead { --swimmer-width: clamp(58px, 5.5vw, 84px); --crossing: 36s; --arrival: -22s; --rest-x: 62%; }
.swim-body { width: 100%; overflow: visible; }
.swim-body--mermaid { position: relative; aspect-ratio: 1; animation: mermaid-glide 7s ease-in-out infinite; }
.swim-body--mermaid img {
  position: absolute;
  left: 50%; top: 50%;
  width: 44%; height: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}
.swim-body--turtle { animation: turtle-glide 7.5s ease-in-out infinite; }
.swim-body--dolphin { animation: dolphin-dive 6s ease-in-out infinite; }
.swim-body--hammerhead { animation: shark-cruise 5s ease-in-out infinite; }
.sea-outline { stroke: #24364f; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sea-skin { fill: #88cdd7; }
.sea-fin { fill: #afa5da; }
.sea-shell { fill: #5099af; }
.sea-lavender { fill: #c0bae7; }
.sea-pink { fill: #f1b6d6; }
.sea-eye { fill: #153446; stroke: #e5e8ff; stroke-width: 1; }
.sea-detail { fill: none; stroke: #48607e; stroke-width: 1; }
.turtle-flipper { transform-box: fill-box; transform-origin: 15% 15%; animation: turtle-paddle 5s ease-in-out infinite; }
.turtle-flipper--far { transform-origin: 15% 90%; animation-delay: -2.5s; }
.turtle-flipper--rear { animation-delay: -1.25s; }
.dolphin-tail { transform-box: fill-box; transform-origin: 100% 40%; animation: dolphin-kick 3s ease-in-out infinite; }
.dolphin-flipper { transform-box: fill-box; transform-origin: 10% 10%; animation: turtle-paddle 4s ease-in-out infinite; }
.shark-tail { transform-box: fill-box; transform-origin: 100% 50%; animation: shark-sweep 2.6s ease-in-out infinite; }
.archive-page .swim-lane + .spread { padding-top: 12px; padding-bottom: 36px; }
.archive-page .spread-head { margin-bottom: clamp(42px, 6vw, 76px); }
@keyframes sea-crossing {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(calc(100cqw - var(--swimmer-width))); opacity: 0; }
}
@keyframes mermaid-glide { 0%,100% { transform: translateY(3px) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes turtle-glide { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-2px); } }
@keyframes dolphin-dive { 0%,100% { transform: translateY(3px) rotate(1.5deg); } 50% { transform: translateY(-3px) rotate(-1.5deg); } }
@keyframes shark-cruise { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes turtle-paddle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes dolphin-kick { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes shark-sweep { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.sea-life-paused .swim-lane *,
.lightbox-open .swim-lane * { animation-play-state: paused !important; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 1140px) {
  .swim-lane { --lane-inset: 72px; }
}
@media (max-width: 720px) {
  /* the 96px border mermaid overflows the 32px gutter here */
  .swim-lane { --lane-inset: 44px; }
  .swimmer--mermaid { --swimmer-width: 104px; }
}
/* Reduced motion: each creature rests in a fixed spot in its own lane,
   alternating sides down the page. */
@media (prefers-reduced-motion: reduce) {
  .swim-lane .swimmer { left: var(--rest-x); opacity: 1; transform: translateX(-50%); }
  .swim-lane * { animation: none !important; }
  .sea-life-toggle { display: none; }
}

/* ---------------------------------- spreads ---------------------------------- */

.spread {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 24px;
}
.spread--alt {
  background: linear-gradient(180deg, rgba(109, 63, 160, 0.08), transparent);
}

.spread-head {
  text-align: center;
  margin-bottom: 46px;
}
.spread-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--violet-500);
  border: 1px solid var(--violet-500);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.spread-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.spread-note {
  color: var(--lavender-200);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ---------------------------------- gallery / photo cards ---------------------------------- */

.gallery {
  display: grid;
  gap: 36px;
  justify-items: center;
  align-items: start;
  position: relative;
  isolation: isolate;
}

.seahorse-pair {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.seahorse-pair span {
  position: absolute;
  top: 50%;
  width: clamp(68px, 7vw, 98px);
  aspect-ratio: 1024 / 1536;
  background: url("public/images/atomik/seahorse-colour-v4.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 9px rgba(0, 15, 28, .65));
}
.gallery--duo .seahorse-pair span:first-child {
  left: calc(50% - clamp(90px, 7.5vw, 112px));
  transform: translateY(-50%) scaleX(-1) rotate(-4deg);
}
.gallery--duo .seahorse-pair span:last-child {
  left: calc(50% + clamp(20px, 2vw, 32px));
  transform: translateY(-50%) rotate(-4deg);
}
.gallery--trio .seahorse-pair span:first-child {
  left: calc(33.333% - 44px);
  transform: translateY(-50%) scaleX(-1) rotate(-4deg);
}
.gallery--trio .seahorse-pair span:last-child {
  left: calc(66.666% - 44px);
  transform: translateY(-50%) rotate(-4deg);
}

.gallery .photo {
  position: relative;
  z-index: 1;
}

/* fine-line black/charcoal rose + vine, hugging each Polaroid's opposite
   corners — sits in the card gutter (negative offset), never over the
   photo, caption, or an adjacent card's own sprig (18px + 18px = the
   36px gallery gap). */
.photo::before,
.photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  background-image: url("public/images/atomik/rose-vine-sprig.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: .7;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .4)) drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}
.photo::before {
  top: -18px;
  left: -18px;
  transform: rotate(-6deg);
}
.photo::after {
  bottom: -18px;
  right: -18px;
  transform: scale(-1) rotate(-6deg);
}
.photo--tilt-right::before { transform: rotate(4deg); }
.photo--tilt-right::after { transform: scale(-1) rotate(4deg); }
.gallery--duo {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}
.gallery--trio {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

/* A .gallery--duo that only ever got one photo (Red Room frame 23, Water
   After Dark frame 22) otherwise sits in the grid's left column instead of
   centred, so the seahorse pair — placed for two flanking photos — reads as
   misaligned against the single one. Recentre the card and re-anchor the
   pair to its actual edges via translate(-100%), which hugs them regardless
   of the seahorse's own clamp() width. Desktop only: below 760px every
   gallery is already a centred single column with its own tighter offsets
   (see the media query below), which already suit a solo photo too. */
@media (min-width: 761px) {
  .gallery--duo:has(.photo:only-of-type) {
    grid-template-columns: minmax(240px, 340px);
    justify-content: center;
  }
  .gallery--duo:has(.photo:only-of-type) .seahorse-pair span:first-child {
    left: calc(50% - 170px - 12px);
    transform: translate(-100%, -50%) scaleX(-1) rotate(-4deg);
  }
  .gallery--duo:has(.photo:only-of-type) .seahorse-pair span:last-child {
    left: calc(50% + 170px + 12px);
    transform: translateY(-50%) rotate(-4deg);
  }
}

@media (max-width: 760px) {
  .gallery--duo,
  .gallery--trio {
    grid-template-columns: 1fr;
  }

  /* smaller corner sprigs on mobile so stacked single-column Polaroids
     keep a clear 36px gap between cards instead of crowding it */
  .photo::before,
  .photo::after {
    width: 24px;
    height: 24px;
    opacity: .6;
  }
  .photo::before { top: -16px; left: -16px; }
  .photo::after { bottom: -16px; right: -16px; }

  .seahorse-pair span { width: 62px; }
  .gallery--duo .seahorse-pair span:first-child,
  .gallery--trio .seahorse-pair span:first-child {
    left: calc(50% - 68px);
  }
  .gallery--duo .seahorse-pair span:last-child,
  .gallery--trio .seahorse-pair span:last-child {
    left: calc(50% + 6px);
  }
}

.photo {
  margin: 0;
  background: var(--cream);
  padding: 12px 12px 40px;
  border: var(--edge);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 340px;
}
.photo:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 10px 10px 0 rgba(28, 15, 28, 0.5);
}
.photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}
.photo figcaption {
  color: var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  padding-top: 10px;
}

.photo--tilt-left { transform: rotate(-3deg); }
.photo--tilt-right { transform: rotate(3deg); }

/* stacked single-column cards (below 760px, see .gallery--duo/.gallery--trio
   above) render straight instead of tilted: rotation pushes each card's
   visual top edge a few px off its own layout box, which is what let the
   seahorse pair — centred on the layout gap, not the rotated visual one —
   dip onto the photo below it. Untilted, the gap math is exact again and
   every ocean graphic stays clear of the photos. Placed after the base
   tilt rule so it wins the cascade at equal specificity. */
@media (max-width: 760px) {
  .photo--tilt-left,
  .photo--tilt-right {
    transform: none;
  }
}

/* ---------------------------------- lightbox ---------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }

.lightbox-img {
  max-width: min(90vw, 620px);
  max-height: 74vh;
  object-fit: contain;
  border: var(--edge);
  box-shadow: var(--shadow-card);
  background: var(--cream);
}

.lightbox-caption {
  color: var(--lavender-200);
  margin-top: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: 1px solid var(--lavender-400);
  color: var(--cream);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--magenta-500);
  color: var(--ink);
  border-color: var(--magenta-500);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 2px;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------------------------------- footer ---------------------------------- */

.site-footer {
  text-align: center;
  padding: 70px 24px 60px;
  border-top: 1px dashed rgba(231, 180, 219, 0.3);
}
.footer-wordmark {
  margin: 0;
}
.footer-wordmark img {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
}
.footer-note {
  color: var(--lavender-200);
  font-size: 0.85rem;
  margin: 10px 0 26px;
}
.back-to-top {
  color: var(--violet-500);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--violet-500);
  padding-bottom: 2px;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--pink-500);
  border-color: var(--pink-500);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--pink-300);
  outline-offset: 3px;
}

/* ---------------------------------- responsive nav ---------------------------------- */

/* Tablet / compact-desktop: same collapsible hamburger treatment as the
   mobile block below, just without its small-screen-only tweaks (hero
   sizing etc). Needed now that the nav carries the full site link set
   instead of one label — at ~900-1140px a flat horizontal nav plus the
   social icons would collide with the centered wordmark. Reuses the
   existing 1140px cutoff already established for the page-border system,
   so header and border collapse at the same point. Below 720px the more
   specific block further down overrides top/min-height for the shorter
   mobile header bar. */
@media (max-width: 1140px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
  }
  .wordmark { order: 1; }
  .menu-toggle { order: 2; display: flex; }
  .header-actions {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--plum-900);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .header-actions.is-open {
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 22px;
  }
  .site-nav { display: block; }
  .site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(231, 180, 219, 0.15);
    width: 100%;
    display: block;
    text-align: center;
  }
  .social-links { justify-content: center; gap: 20px; }
  .archive-page .header-actions { background: rgba(3, 35, 55, 0.97); }
}

@media (max-width: 720px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    min-height: 64px;
  }
  .wordmark {
    font-size: 1.6rem;
    order: 1;
  }
  .menu-toggle {
    order: 2;
  }
  .header-actions {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--plum-900);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .header-actions.is-open {
    /* was a fixed 220px sized for the old single-link nav; the full
       7-link nav plus the social row no longer fits that cap, so this
       scales with viewport height and scrolls instead of clipping */
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 22px;
  }
  .site-nav { display: block; }
  .site-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(231, 180, 219, 0.15);
    width: 100%;
    display: block;
    text-align: center;
  }
  .social-links { justify-content: center; gap: 20px; }
  .menu-toggle { display: flex; }

  .hero {
    min-height: calc(100svh - 64px);
    padding-inline: 12px;
  }
  .hero-photo {
    object-position: 50% center;
  }
  .hero-copy { padding-inline: 0; }
  .hero-copy {
    top: 4%;
    left: 5%;
    width: 58vw;
  }
  .hero-title .line { font-size: clamp(3.4rem, 17vw, 5.4rem); }
  .hero-butterfly { width: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo { transition: none; }
}

.vampire-bites {
  position: absolute;
  bottom: -3px;
  right: 9px;
  display: flex;
  gap: 18px;
  pointer-events: none;
}
.vampire-bites i {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #600916;
  box-shadow: 0 0 3px #e43c51, inset 1px 1px 1px #26030a;
}
.vampire-bites i::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  width: 2px;
  height: 9px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(#670817, #c51c36);
}
.vampire-bites i::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 1px;
  width: 4px;
  height: 6px;
  border-radius: 60% 40% 65% 55%;
  background: #c51c36;
  box-shadow: inset 1px -1px 1px #ee6471;
  transform-origin: top;
  animation: fang-drip 3.8s ease-in infinite;
}
.vampire-bites i:nth-child(2)::after { animation-delay: 1.4s; }
@keyframes fang-drip {
  0%, 30% { transform: translateY(0) scale(.65); opacity: 1; }
  65% { transform: translateY(2px) scale(1); opacity: 1; }
  90%, 100% { transform: translateY(14px) scale(.7, 1.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vampire-bites i::after { animation: none; }
}

/* ---------- a held pearl / a rare weather shift ---------- */
/* .splash-logo is already position: absolute (a containing block for the
   whisper); forcing it to relative here pushed the opening-page logo below
   the full-screen photo, out of sight. */
.wordmark { position: relative; }

.dropdown-ready .header-inner { position: relative; display: flex; justify-content: space-between; gap: 16px; }
.dropdown-ready .wordmark { order: 0; }
.dropdown-ready .menu-toggle {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 16px; min-height: 48px; padding: 10px 20px; order: 1;
  border: 1px solid #c9f4ef; background: #062f46; color: #f5fffd;
  font: 600 15px var(--font-body); letter-spacing: .06em;
  box-shadow: 0 0 18px rgba(71, 201, 212, .18);
}
.dropdown-ready .menu-toggle::after { content: "⌄"; font-size: 22px; line-height: 1; }
.dropdown-ready .menu-toggle[aria-expanded="true"]::after { content: "×"; }
.dropdown-ready .menu-toggle:hover { background: #0b6f8c; }
.dropdown-ready .header-actions[hidden] { display: none; }
.dropdown-ready .header-actions {
  position: absolute; top: 100%; right: 24px; left: auto; width: min(640px, calc(100vw - 48px));
  display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 24px;
  max-height: calc(100dvh - 100px); overflow-y: auto; padding: 28px;
  background: #062f46; color: #f5fffd; border: 1px solid #c9f4ef;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .65);
}
.dropdown-ready .explore-logo { width: 160px; height: auto; }
.dropdown-ready .site-nav { display: flex; flex-direction: column; gap: 0; }
.dropdown-ready .site-nav a {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 10px 12px; min-height: 44px; text-align: left; color: #f5fffd;
  font-family: "DM Serif Display", Georgia, serif; font-size: 23px;
  text-transform: none; letter-spacing: 0; border-bottom: 1px solid rgba(201, 244, 239, .22);
}
.dropdown-ready .site-nav a::after { content: "↗"; font: 16px var(--font-body); color: #c9f4ef; }
.dropdown-ready .site-nav a:hover, .dropdown-ready .site-nav a:focus-visible,
.dropdown-ready .site-nav a[aria-current="page"] { color: #fff; background: #0b6f8c; border-color: #c9f4ef; }
.dropdown-ready .site-nav a:focus-visible { outline: 2px solid #f6a9d6; outline-offset: -2px; }
.dropdown-ready .social-links { grid-column: 1 / -1; justify-content: center; gap: 24px; }
.dropdown-ready .social-icon { color: #c9f4ef; min-width: 32px; min-height: 32px; }
@media (max-width: 600px) {
  .dropdown-ready .header-inner { padding-inline: 16px; }
  .dropdown-ready .menu-toggle { padding-inline: 14px; gap: 10px; }
  .dropdown-ready .header-actions { right: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .dropdown-ready .explore-logo { width: 110px; margin-inline: auto; }
  .dropdown-ready .site-nav a { font-size: 21px; padding-block: 8px; }
}
.tide-whisper {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 4px);
  margin-top: 6px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-style: italic;
  color: var(--lavender-200);
  background: var(--plum-950);
  border: 1px solid var(--violet-500);
  padding: 6px 10px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s ease;
}
.tide-whisper.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tide-whisper { transition: none; }
}

.mood-overcast::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(120, 130, 160, 0.16), rgba(28, 15, 28, 0.28));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  animation: overcast-settle 1.8s ease forwards;
}
@keyframes overcast-settle {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mood-overcast::before { animation: none; opacity: 1; }
}

.splash-page .splash-photo {
  object-position: 50% 30%;
  filter: brightness(.8);
}
@media (max-width: 720px) {
  .splash-page .splash-photo { object-position: 50% 44%; }
}

body:not(.splash-page) .page-border {
  position: fixed;
  --safe-gutter: clamp(24px, 6vw, 110px);
  opacity: .85;
  z-index: 4;
}
body:not(.splash-page) .border-vine { opacity: .8; }
body:not(.splash-page) .border-mermaid { top: 28%; }
@media (max-width: 720px) {
  body:not(.splash-page) .page-border { --safe-gutter: 22px; opacity: .65; }
  body:not(.splash-page) .border-mermaid { opacity: .7; }
}
.splash-enter,
.cta-primary,
.cta-secondary,
.dropdown-ready .menu-toggle {
  background: rgba(3, 18, 32, .35);
  border: 1px solid rgba(201, 244, 239, .38);
  border-radius: 0;
  box-shadow: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: none;
  text-decoration: none;
}
.splash-enter { font-size: .9rem; min-height: 44px; padding: 10px 28px; }
.splash-enter .vampire-bites { display: none; }
.splash-enter:hover,
.cta-primary:hover,
.cta-secondary:hover,
.dropdown-ready .menu-toggle:hover {
  background: rgba(201, 244, 239, .1);
  color: #f5fffd;
  transform: none;
  box-shadow: none;
}
.splash-enter:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.dropdown-ready .menu-toggle:focus-visible {
  outline: 2px solid #c9f4ef;
  outline-offset: 4px;
}
.ocean-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.ocean-bubbles span {
  position: absolute;
  bottom: -24px;
  left: 5%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(201, 244, 239, .3);
  border-radius: 50%;
  opacity: 0;
}
.ocean-bubbles span:nth-child(2) { left: 9%; width: 4px; height: 4px; }
.ocean-bubbles span:nth-child(3) { left: 3%; width: 11px; height: 11px; }
.ocean-bubbles span:nth-child(4) { left: 94%; width: 6px; height: 6px; }
.ocean-bubbles span:nth-child(5) { left: 89%; width: 9px; height: 9px; }
.ocean-bubbles span:nth-child(6) { left: 97%; width: 4px; height: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .ocean-bubbles span { animation: ocean-rise 24s linear infinite; }
  .ocean-bubbles span:nth-child(2) { animation-duration: 31s; animation-delay: -12s; }
  .ocean-bubbles span:nth-child(3) { animation-duration: 28s; animation-delay: -19s; }
  .ocean-bubbles span:nth-child(4) { animation-duration: 26s; animation-delay: -8s; }
  .ocean-bubbles span:nth-child(5) { animation-duration: 34s; animation-delay: -25s; }
  .ocean-bubbles span:nth-child(6) { animation-duration: 29s; animation-delay: -15s; }
}
@keyframes ocean-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15%, 75% { opacity: .65; }
  100% { transform: translate3d(12px, -105vh, 0); opacity: 0; }
}
