/* ============================================================
   Joe's Harbor — dawn-at-sea memorial theme
   ============================================================ */

:root {
  --ink: #2b3a52;
  --ink-soft: #5c6b83;
  --ink-faint: #8d99ac;
  --gold: #b98d4f;
  --gold-bright: #d4a960;
  --gold-soft: #e9d7b2;
  --paper: #fbf8f2;
  --paper-warm: #f6efe2;
  --card: #fffdf8;
  --sky-top: #b9d2e8;
  --sky-mid: #dde9ee;
  --horizon: #f6e7cd;
  --sea-back: #b7cddb;
  --sea-front: #9db8c9;
  --hairline: rgba(43, 58, 82, 0.14);
  --shadow: 0 18px 45px -18px rgba(43, 58, 82, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

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

/* ---------- shared layout ---------- */

.section { padding: 96px 24px; }
.narrow { max-width: 720px; margin: 0 auto; text-align: center; }
.wide { max-width: 1080px; margin: 0 auto; text-align: center; }

.section h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 4px;
}

.gold-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--gold);
  margin: 22px auto 26px;
  width: min(320px, 70%);
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold));
}
.gold-rule::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
}
.gold-rule span { font-size: 1.05rem; line-height: 1; }
.gold-rule.small { margin: 14px auto 34px; width: min(220px, 55%); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #fffdf6;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px -10px rgba(185, 141, 79, 0.65);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(185, 141, 79, 0.75); }

/* a thin gleam that zips across the gold, then rests */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 253, 244, 0.3) 50%,
    rgba(255, 255, 255, 0) 80%);
  transform: translateX(-160%) skewX(-18deg);
  animation: btn-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0%        { transform: translateX(-160%) skewX(-18deg); }
  13%, 100% { transform: translateX(420%) skewX(-18deg); }
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-wide { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    #aecbe4 0%,
    #d9e6ec 38%,
    #f2ddc0 64%,
    #f8d0a2 84%,
    #f9c592 100%);
}

.sky { position: absolute; inset: 0; pointer-events: none; }

.sun-glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 130vmin;
  height: 70vmin;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center bottom,
    rgba(255, 236, 190, 0.95) 0%,
    rgba(255, 236, 190, 0.45) 34%,
    rgba(255, 236, 190, 0) 68%);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from { opacity: 0.8; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.07); }
}

/* the setting sun, half-sunk behind the waves */
.sun {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 130px;
  height: 130px;
  margin-left: -65px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff4d2 0%, #ffe4a2 55%, #ffd188 100%);
  box-shadow: 0 0 60px 22px rgba(255, 210, 140, 0.55);
  animation: sun-settle 11s ease-in-out infinite alternate;
}

/* soft rays slowly turning behind the sun */
.sun::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 224, 160, 0.28) 0deg 8deg,
    rgba(255, 224, 160, 0) 8deg 24deg);
  filter: blur(5px);
  animation: rays-turn 70s linear infinite;
}

@keyframes rays-turn {
  to { transform: rotate(360deg); }
}

@keyframes sun-settle {
  from { box-shadow: 0 0 52px 16px rgba(255, 210, 140, 0.45); }
  to   { box-shadow: 0 0 85px 32px rgba(255, 210, 140, 0.68); }
}

.cloud {
  position: absolute;
  color: #ffffff;
  fill: currentColor;
  filter: blur(1.5px);
  opacity: 0.85;
}
.cloud-1 { width: 320px; top: 12%; left: -340px; opacity: 0.9; animation: drift 95s linear infinite; animation-delay: -22s; }
.cloud-2 { width: 210px; top: 30%; left: -230px; opacity: 0.7; animation: drift 140s linear infinite; animation-delay: -80s; }
.cloud-3 { width: 260px; top: 6%;  left: -280px; opacity: 0.55; animation: drift 120s linear infinite; animation-delay: -55s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 400px)); }
}

.gull { position: absolute; width: 34px; color: rgba(43, 58, 82, 0.38); }
.gull-1 { top: 22%; right: 16%; animation: hover-drift 11s ease-in-out infinite alternate; }
.gull-2 { top: 15%; right: 26%; width: 24px; animation: hover-drift 13s ease-in-out infinite alternate 2s; }

@keyframes hover-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, 12px); }
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 0 24px clamp(150px, 14vh, 220px);
  animation: rise-in 1.6s ease-out both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: "Source Serif 4", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dates {
  margin-top: 14px;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.epitaph {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--ink-soft);
}

/* ---------- scroll cue ---------- */

.scroll-cue {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  opacity: 0.85;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--ink-soft);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 7px;
  animation: wheel-drop 2.2s ease-in-out infinite;
}

@keyframes wheel-drop {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(13px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

.scroll-chevron {
  width: 18px;
  color: var(--gold);
  animation: chevron-nudge 2.2s ease-in-out infinite;
}

@keyframes chevron-nudge {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ---------- the sea ---------- */

.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
}

.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 90px;
  animation: wave-roll 16s linear infinite;
  will-change: transform;
}
.waves-back  { fill: var(--sea-back); opacity: 0.75; bottom: 12px; animation-duration: 34s; }
.waves-front { fill: var(--sea-front); }

@keyframes wave-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* the sun's shimmer on the water, between the two wave layers */
.sun-reflection {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 210px;
  height: 100px;
  margin-left: -105px;
  background: linear-gradient(180deg, rgba(255, 219, 150, 0.65), rgba(255, 219, 150, 0));
  filter: blur(7px);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}

.duck-drift {
  position: absolute;
  width: 74px;
  left: 11%;
  bottom: 30px;
  animation: duck-sway 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes duck-sway {
  from { transform: translateX(0); }
  to   { transform: translateX(46px); }
}

.duck-float {
  width: 100%;
  animation: bob 5.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(43, 58, 82, 0.25));
}

/* the ship on the horizon, sailing slowly across */
.ship {
  position: absolute;
  width: 210px;
  left: 0;
  bottom: 42px;
  opacity: 0.9;
  animation: ship-sail 210s linear infinite;
  animation-delay: -150s;
  will-change: transform;
}

@keyframes ship-sail {
  from { transform: translateX(-30vw); }
  to   { transform: translateX(125vw); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3.5deg); }
}

/* ============================================================
   DUCK SECTION
   ============================================================ */

.duck-section {
  background: linear-gradient(180deg, #f9f1de 0%, var(--paper) 100%);
  padding-top: 110px;
}

.section-duck { display: inline-block; width: 64px; margin-bottom: 10px; }
.section-duck svg { width: 100%; animation: bob 6s ease-in-out infinite; }

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  margin: 8px 0 34px;
}

/* ============================================================
   STORY
   ============================================================ */

.story-section { background: var(--paper); padding-top: 40px; }

.story-body p {
  font-size: 1.12rem;
  text-align: left;
  margin-bottom: 22px;
  color: var(--ink);
}
.story-body p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  color: var(--gold);
  animation: letter-shine 3.8s ease-in-out infinite alternate;
}

@keyframes letter-shine {
  from {
    color: var(--gold);
    text-shadow: 0 0 6px rgba(212, 169, 96, 0.1);
  }
  to {
    color: #edcf9a;
    text-shadow: 0 0 16px rgba(237, 207, 154, 0.6);
  }
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.gallery-hint {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 4px 0 20px;
}

/* ---------- photo carousel ---------- */
.gallery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.gallery.is-empty {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.car-stage {
  position: relative;
  flex: 1;
  height: 400px;
  overflow: hidden;
}
.car-item {
  position: absolute;
  top: 50%; left: 50%;
  width: min(58%, 470px);
  height: 348px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  padding: 3px; /* the gold frame thickness */
  background: linear-gradient(120deg,
    var(--gold) 0%,
    var(--gold-soft) 20%,
    var(--gold-bright) 40%,
    #f6ead0 50%,
    var(--gold-bright) 60%,
    var(--gold-soft) 80%,
    var(--gold) 100%);
  background-size: 300% 300%;
  box-shadow: 0 6px 22px rgba(185, 141, 79, 0.25);
  cursor: pointer;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.85s ease, box-shadow 0.85s ease;
}
.car-item img {
  width: 100%; height: 100%;
  /* contain: every photo shown whole and centered, matted on the card
     cream inside its gold frame — like framed prints on a wall. */
  object-fit: contain;
  background: var(--card);
  display: block;
  border-radius: 13px;
}
/* the spotlight — center photo wears the travelling shine */
.pos-0 {
  transform: translate(-50%, -50%) scale(1);
  z-index: 5; opacity: 1;
  animation: goldShine 7s ease-in-out infinite;
  box-shadow: 0 16px 42px rgba(185, 141, 79, 0.42);
  cursor: zoom-in;
}
.pos-m1 { transform: translate(calc(-50% - 72%), -50%) scale(0.7); z-index: 3; opacity: 0.6; }
.pos-p1 { transform: translate(calc(-50% + 72%), -50%) scale(0.7); z-index: 3; opacity: 0.6; }
.pos-m2 { transform: translate(calc(-50% - 118%), -50%) scale(0.52); z-index: 2; opacity: 0.25; }
.pos-p2 { transform: translate(calc(-50% + 118%), -50%) scale(0.52); z-index: 2; opacity: 0.25; }
.pos-off {
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0; z-index: 1;
  pointer-events: none;
}

.car-nav {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink);
  background: linear-gradient(120deg,
    var(--gold) 0%, var(--gold-soft) 25%, #f6ead0 50%,
    var(--gold-bright) 75%, var(--gold) 100%);
  background-size: 300% 300%;
  box-shadow: 0 4px 14px rgba(185, 141, 79, 0.35);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  z-index: 6;
}
.car-nav:hover { transform: scale(1.1); }

/* ---------- photo lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 32, 46, 0.93);
  padding: 4vmin;
}
.lightbox img {
  max-width: 94vw; max-height: 90vh;
  border-radius: 12px;
  padding: 4px; /* the gold frame follows the photo fullscreen */
  background: linear-gradient(120deg,
    var(--gold) 0%, var(--gold-soft) 20%, var(--gold-bright) 40%,
    #f6ead0 50%, var(--gold-bright) 60%, var(--gold-soft) 80%, var(--gold) 100%);
  background-size: 300% 300%;
  animation: goldShine 7s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 16px;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  color: var(--ink);
  background: linear-gradient(120deg,
    var(--gold) 0%, var(--gold-soft) 25%, #f6ead0 50%,
    var(--gold-bright) 75%, var(--gold) 100%);
  background-size: 300% 300%;
  animation: goldShine 4s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.lightbox-close:hover { transform: scale(1.08); }
.lightbox img { transition: opacity 0.22s ease; }
.lightbox img.swapping { opacity: 0; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  color: var(--ink);
  background: linear-gradient(120deg,
    var(--gold) 0%, var(--gold-soft) 25%, #f6ead0 50%,
    var(--gold-bright) 75%, var(--gold) 100%);
  background-size: 300% 300%;
  animation: goldShine 5s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  z-index: 1001;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
body.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lightbox img, .lightbox-close, .lightbox-nav, .car-item, .pos-0 { animation: none; }
  .car-item { transition: opacity 0.3s ease; }
}

/* the light slowly travels around the gold frames */
@keyframes goldShine {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gallery .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 260px;
  color: var(--ink-faint);
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 253, 248, 0.6);
  font-style: italic;
  gap: 10px;
}
.gallery .placeholder .ph-icon { font-size: 2rem; opacity: 0.8; }

.gallery-empty {
  margin-top: 26px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   TRIBUTE WALL
   ============================================================ */

.wall-section { background: var(--paper-warm); }

.wall {
  columns: 3 300px;
  column-gap: 22px;
  margin-top: 8px;
  text-align: left;
}

.note-card {
  break-inside: avoid;
  background: var(--card);
  border: 1px solid rgba(185, 141, 79, 0.28);
  border-radius: 12px;
  padding: 26px 26px 20px;
  margin: 0 0 22px;
  box-shadow: 0 12px 30px -16px rgba(43, 58, 82, 0.25);
  position: relative;
  transition: transform 0.3s ease;
}
.note-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.note-card:nth-child(3n + 1) { transform: rotate(-0.5deg); }
.note-card:nth-child(3n + 2) { transform: rotate(0.4deg); }
.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
  opacity: 0.75;
}

.note-message {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 16px;
  white-space: pre-line;
}
.note-message::before { content: "“"; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.note-message::after  { content: "”"; color: var(--gold); font-family: "Cormorant Garamond", serif; }

.note-meta { font-size: 0.92rem; color: var(--ink-soft); }
.note-name { font-weight: 600; color: var(--ink); }
.note-loc { display: block; font-style: italic; margin-top: 2px; }
.note-loc::before { content: "🦆 "; font-style: normal; font-size: 0.85em; }

.wall-empty {
  margin-top: 26px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   FORM
   ============================================================ */

.form-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 215, 178, 0.5) 0%, rgba(233, 215, 178, 0) 60%),
    var(--paper);
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  padding: 46px 46px 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.form-card h2 { font-size: 2.1rem; margin-bottom: 10px; }
.form-sub { color: var(--ink-soft); font-style: italic; margin-bottom: 30px; font-size: 0.98rem; }

#note-form { text-align: left; }

#note-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 18px 0 6px;
  color: var(--ink);
}
#note-form .optional { font-weight: 400; color: var(--ink-faint); font-style: italic; }

#note-form input[type="text"],
#note-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
#note-form input:focus,
#note-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 141, 79, 0.18);
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-error {
  color: #a04545;
  font-size: 0.95rem;
  margin-top: 14px;
}

#form-submit { margin-top: 26px; }

.form-thanks { padding: 20px 0 6px; animation: rise-in 0.8s ease-out both; }
.thanks-icon { font-size: 2.6rem; margin-bottom: 10px; }
.form-thanks h3 { font-size: 1.7rem; margin-bottom: 8px; }
.form-thanks p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sea-back) 160%);
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 60px 24px 44px;
}

.footer-duck { width: 52px; margin: 0 auto 12px; animation: bob 6.5s ease-in-out infinite; }

.footer-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-small { font-size: 0.88rem; color: var(--ink-faint); }
.footer-admin { color: var(--ink-faint); text-decoration: none; border-bottom: 1px dotted var(--ink-faint); }
.footer-admin:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   SMALL SCREENS + MOTION
   ============================================================ */

@media (max-width: 640px) {
  .section { padding: 64px 18px; }
  .form-card { padding: 34px 22px 30px; }

  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.4rem); }
  .sun { width: 96px; height: 96px; margin-left: -48px; bottom: 26px; }
  .sun::before { inset: -32px; }
  .sun-reflection { width: 150px; margin-left: -75px; height: 80px; }
  .eyebrow { letter-spacing: 0.3em; font-size: 0.74rem; }
  .epitaph { font-size: 1.18rem; padding: 0 8px; }
  .dates { font-size: 1.02rem; }

  .sea { height: 96px; }
  .waves { height: 66px; }
  .waves-back { bottom: 10px; }
  .duck-drift { width: 54px; bottom: 22px; }
  .ship { width: 135px; bottom: 34px; }
  .cloud-1 { width: 220px; }
  .cloud-2 { width: 150px; }
  .cloud-3 { width: 180px; }

  .section h2 { font-size: 1.75rem; }
  .lede, .story-body p { font-size: 1.04rem; }
  .gallery { gap: 4px; }
  .gallery.is-empty { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery .placeholder { height: 170px; }
  .car-stage { height: 290px; }
  .car-item { width: 76%; height: 244px; }
  .pos-m1 { transform: translate(calc(-50% - 62%), -50%) scale(0.62); opacity: 0.45; }
  .pos-p1 { transform: translate(calc(-50% + 62%), -50%) scale(0.62); opacity: 0.45; }
  .pos-m2, .pos-p2 { opacity: 0; pointer-events: none; }
  .car-nav { width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-nav { width: 46px; height: 46px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .wall { columns: 1; }
  .note-card { padding: 20px 20px 16px; }

  .btn { padding: 13px 26px; font-size: 0.98rem; }
  .footer { padding: 46px 18px 36px; }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
