/* ============================================================
   Jack's Blog — atmospheric seasonal frontend (v4)
   - Titanic is BIG and clearly above the waterline
   - True multi-speed parallax per layer
   - Fish silhouettes (hero + underwater)
   - Massive iceberg section with light rays
   - Off-screen sections pause their animations
   - All animations transform/opacity only
   ============================================================ */

:root {
  --bg:     #0b1f3a;
  --bg-2:   #050d1c;
  --bg-3:   #1a2e4a;
  --accent: #c9a44c;
  --ink:    #f5f1e6;
  --muted:  #6b7a8f;
  --glow:   #9ec5ff;

  --font-heading: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-body:    'Libre Baskerville', Garamond, Georgia, serif;
  --font-script:  'Pinyon Script', 'Great Vibes', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ink); }

/* ============================================================
   PERF: pause animations in sections that aren't on-screen
   ============================================================ */
.hero:not(.is-visible) *,
.iceberg:not(.is-visible) * {
  animation-play-state: paused !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  contain: layout paint;
}

/* Sky — fixed, no parallax (background) */
.hero__sky {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(11,31,58,0.92), transparent),
    radial-gradient(ellipse 70% 60% at 80% 18%, rgba(158,197,255,0.10), transparent 60%),
    linear-gradient(180deg, #02060f 0%, #051428 38%, #0b1f3a 60%, #0a1d36 80%, #050d1c 100%);
}

/* Stars — slowest parallax */
.hero__stars {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background-image:
    radial-gradient(1px   1px   at 7%  12%, rgba(245,241,230,0.7),   transparent 50%),
    radial-gradient(1.5px 1.5px at 17% 14%, rgba(245,241,230,1),     transparent 50%),
    radial-gradient(1px   1px   at 22% 35%, rgba(158,197,255,0.85),  transparent 50%),
    radial-gradient(1px   1px   at 31% 8%,  rgba(245,241,230,0.95),  transparent 50%),
    radial-gradient(2px   2px   at 42% 22%, rgba(245,241,230,1),     transparent 50%),
    radial-gradient(1px   1px   at 47% 42%, rgba(245,241,230,0.7),   transparent 50%),
    radial-gradient(1.5px 1.5px at 56% 5%,  rgba(245,241,230,0.9),   transparent 50%),
    radial-gradient(1px   1px   at 64% 9%,  rgba(245,241,230,0.55),  transparent 50%),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(158,197,255,0.95),  transparent 50%),
    radial-gradient(1px   1px   at 73% 36%, rgba(245,241,230,0.6),   transparent 50%),
    radial-gradient(2px   2px   at 79% 11%, rgba(158,197,255,1),     transparent 50%),
    radial-gradient(1px   1px   at 88% 38%, rgba(245,241,230,0.45),  transparent 50%),
    radial-gradient(1.5px 1.5px at 92% 45%, rgba(245,241,230,1),     transparent 50%),
    radial-gradient(1px   1px   at 96% 16%, rgba(245,241,230,0.45),  transparent 50%);
  animation: twinkle 6s steps(2, end) infinite alternate;
  will-change: transform, opacity;
}

@keyframes twinkle {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* Moon — medium parallax */
.hero__moon {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fdf6e3, #d8cfa6 60%, #c0b27e 100%);
  z-index: 1;
  will-change: transform;
}
.hero__moon::after {
  content: '';
  position: absolute;
  inset: -200%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,246,227,0.18) 0%, rgba(253,246,227,0) 50%);
  pointer-events: none;
}

/* Moonbeam — column of light from moon to water */
.hero__moonbeam {
  position: absolute;
  top: 14%;
  right: -2%;
  width: 460px;
  height: 75vh;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(253,246,227,0.22), rgba(253,246,227,0) 65%);
  transform: rotate(14deg);
  transform-origin: top center;
  pointer-events: none;
  z-index: 1;
  animation: beam-pulse 7s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.55; transform: rotate(14deg) scaleX(1); }
  50%      { opacity: 1;    transform: rotate(14deg) scaleX(1.06); }
}

/* Distant gull silhouette gliding left to right */
.hero__gull {
  position: absolute;
  top: 30%;
  left: -8%;
  width: 32px;
  height: 14px;
  color: rgba(245,241,230,0.4);
  z-index: 1;
  animation: gull-glide 28s linear infinite;
  animation-delay: 4s;
  will-change: transform;
}
@keyframes gull-glide {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(60vw, -40px, 0); }
  100% { transform: translate3d(120vw, 0, 0); }
}

/* SHIP — BIG and clearly above the waterline */
.hero__ship-wrap {
  position: absolute;
  bottom: 30%;        /* sits on top of the ocean (which is 28% tall) */
  left: 50%;
  width: min(1500px, 130vw);
  transform: translate3d(-50%, 0, 0);
  z-index: 4;
  pointer-events: none;
  animation: ship-sail 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes ship-sail {
  0%, 100% { transform: translate3d(-50%, 0, 0)    rotate(-0.5deg); }
  50%      { transform: translate3d(-50%, -10px, 0) rotate(0.5deg); }
}

.hero__ship { width: 100%; height: auto; display: block; }

/* Smoke from funnels (4 puffs only — bigger, no blur) */
.hero__smoke {
  position: absolute;
  bottom: 38%;
  left: 50%;
  width: min(1500px, 130vw);
  height: 360px;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
  z-index: 3;
}

.hero__smoke-puff {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(140,150,165,0.55) 0%,
    rgba(140,150,165,0.22) 30%,
    rgba(140,150,165,0) 70%);
  opacity: 0;
  animation: smoke-rise 8s linear infinite;
  will-change: transform, opacity;
}

@keyframes smoke-rise {
  0%   { transform: translate3d(-50%, 60px, 0)   scale(0.4); opacity: 0; }
  20%  { opacity: 0.55; }
  60%  { opacity: 0.4; }
  100% { transform: translate3d(-50%, -300px, 0) scale(1.6); opacity: 0; }
}

/* OCEAN — bottom 28% */
.hero__ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  z-index: 5;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(158,197,255,0.14), transparent 70%),
    linear-gradient(180deg, rgba(11,31,58,0.65) 0%, rgba(5,13,28,1) 100%);
  overflow: hidden;
}

.hero__waves {
  position: absolute;
  bottom: -10px;
  left: -50%;
  width: 200%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}
.hero__waves svg { width: 100%; height: 100%; display: block; }

.wave-a { animation: wave-x 10s linear infinite; }
.wave-b { animation: wave-x 16s linear infinite reverse; opacity: 0.55; }
.wave-c { animation: wave-x 22s linear infinite; opacity: 0.32; }

@keyframes wave-x {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Moonshine column on the water — wide, animated waver */
.hero__shimmer {
  position: absolute;
  bottom: 0;
  right: 12%;
  width: 320px;
  height: 100%;
  background: radial-gradient(ellipse 38% 95% at 50% 0%,
    rgba(253,246,227,0.4), rgba(253,246,227,0) 75%);
  pointer-events: none;
  z-index: 6;
  animation: shimmer-sway 5s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes shimmer-sway {
  0%, 100% { opacity: 0.55; transform: scaleX(1)    skewX(0deg); }
  50%      { opacity: 1;    transform: scaleX(1.08) skewX(2deg); }
}

/* Surface ripples — concentric circles expanding from a point */
.hero__ripple {
  position: absolute;
  bottom: 22%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(158,197,255,0.6);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  animation: ripple 4.5s ease-out infinite;
  will-change: transform, opacity;
}
.hero__ripple--a { left: 18%; animation-delay: 0s; }
.hero__ripple--b { left: 32%; animation-delay: 1.8s; bottom: 18%; }
.hero__ripple--c { left: 70%; animation-delay: 3.2s; bottom: 24%; }

@keyframes ripple {
  0%   { transform: scale(0.2); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Distant fish silhouettes — small, in the foreground water */
.hero__fish {
  position: absolute;
  bottom: 8%;
  width: 40px;
  height: 18px;
  color: rgba(11,31,58,0.7);
  pointer-events: none;
  z-index: 6;
  animation: fish-swim 22s linear infinite;
  will-change: transform;
}
.hero__fish--a { bottom: 6%;  animation-delay: 0s;  width: 50px; height: 22px; opacity: 0.55; }
.hero__fish--b { bottom: 12%; animation-delay: 6s;  width: 32px; height: 14px; opacity: 0.4; }

@keyframes fish-swim {
  0%   { transform: translate3d(-12vw, 0, 0); }
  100% { transform: translate3d(112vw, -8px, 0); }
}

/* HERO TEXT */
.hero__content {
  position: relative;
  z-index: 8;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 0;
}

/* SEASON BANNER */
.season-banner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 2.75rem 1.4rem;
  border: 1px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(201,164,76,0.12), rgba(0,0,0,0.4)),
    rgba(11,31,58,0.65);
  border-radius: 2px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(201,164,76,0.22),
    0 12px 40px rgba(0,0,0,0.55);
  animation: banner-in 1.2s cubic-bezier(0.18, 0.9, 0.32, 1.2) both;
}

@keyframes banner-in {
  0%   { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.85); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.season-banner::before, .season-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: translateY(-50%) scaleX(0);
  animation: rule-extend 1s 0.4s ease-out forwards;
}
.season-banner::before { left: -100px; transform-origin: right center; }
.season-banner::after  { right: -100px; background: linear-gradient(270deg, transparent, var(--accent)); transform-origin: left center; }

@keyframes rule-extend {
  to { transform: translateY(-50%) scaleX(1); }
}

.season-banner__ornament {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
}
.season-banner__ornament.tl { top: -2px; left: -2px;  border-right: 0; border-bottom: 0; }
.season-banner__ornament.tr { top: -2px; right: -2px; border-left: 0;  border-bottom: 0; }
.season-banner__ornament.bl { bottom: -2px; left: -2px;  border-right: 0; border-top: 0; }
.season-banner__ornament.br { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; }

.season-banner__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.season-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}

.season-banner__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, -90px, 0) rotate(-12deg);
  animation: char-slam 0.7s cubic-bezier(0.18, 0.85, 0.3, 1.25) forwards;
  will-change: transform, opacity;
}
.season-banner__title .ch.space { width: 0.3em; }

@keyframes char-slam {
  0%   { opacity: 0; transform: translate3d(0, -120px, 0) rotate(-15deg); }
  60%  { opacity: 1; transform: translate3d(0, 8px, 0)    rotate(2deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0)      rotate(0); }
}

.season-banner__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade-up 1.1s 1.4s ease-out forwards;
}

.season-banner__meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 1; }
}

.hero__brand {
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 1.1s 1.6s ease-out forwards;
}

.hero__tagline {
  margin-top: 0.5rem;
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--accent);
  opacity: 0;
  animation: fade-up 1.1s 1.85s ease-out forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 0.9; transform: translate3d(0, 0, 0); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-up 1.1s 2.2s ease-out forwards;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, var(--muted), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   ICEBERG — full-height underwater scene
   ============================================================ */
.iceberg {
  position: relative;
  height: 100vh;
  min-height: 700px;
  margin: 0;
  overflow: hidden;
  contain: layout paint;
  background:
    linear-gradient(180deg,
      #050d1c 0%,
      #06182f 18%,
      #051a36 35%,
      #04182d 60%,
      #02080f 100%);
}

/* Light rays from above */
.iceberg__rays {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  pointer-events: none;
  z-index: 1;
}
.iceberg__ray {
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(180deg, rgba(158,197,255,0.18) 0%, rgba(158,197,255,0) 80%);
  transform-origin: top center;
  animation: ray-sway 9s ease-in-out infinite;
  will-change: transform, opacity;
}
.iceberg__ray--a { left: 18%; animation-delay: 0s; transform: skewX(-6deg); }
.iceberg__ray--b { left: 38%; animation-delay: 2.5s; transform: skewX(-3deg); width: 80px; opacity: 0.7; }
.iceberg__ray--c { left: 58%; animation-delay: 1.2s; transform: skewX(2deg); }
.iceberg__ray--d { left: 78%; animation-delay: 3.8s; transform: skewX(6deg); width: 100px; opacity: 0.6; }

@keyframes ray-sway {
  0%, 100% { opacity: 0.5; transform: skewX(var(--sx, 0deg)) translateX(0); }
  50%      { opacity: 0.9; transform: skewX(var(--sx, 0deg)) translateX(20px); }
}

/* Particles drifting */
.iceberg__particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245,241,230,0.5);
  pointer-events: none;
  animation: particle-rise 18s linear infinite;
  will-change: transform, opacity;
}
.iceberg__particle:nth-child(1) { left: 15%; bottom: 0; animation-delay: 0s; }
.iceberg__particle:nth-child(2) { left: 25%; bottom: 0; animation-delay: 4s; width: 2px; height: 2px; }
.iceberg__particle:nth-child(3) { left: 45%; bottom: 0; animation-delay: 8s; }
.iceberg__particle:nth-child(4) { left: 60%; bottom: 0; animation-delay: 12s; width: 4px; height: 4px; }
.iceberg__particle:nth-child(5) { left: 78%; bottom: 0; animation-delay: 2s; }
.iceberg__particle:nth-child(6) { left: 88%; bottom: 0; animation-delay: 6s; width: 2px; height: 2px; }

@keyframes particle-rise {
  0%   { transform: translate3d(0, 0, 0)       scale(1);   opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translate3d(20px, -90vh, 0) scale(0.4); opacity: 0; }
}

/* Underwater fish — more of them, varied */
.iceberg__fish {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  color: rgba(20,40,72,0.8);
  will-change: transform;
}
.iceberg__fish--a { top: 30%; left: -10%; width: 60px; height: 26px; animation: fish-swim 28s linear infinite; opacity: 0.55; }
.iceberg__fish--b { top: 55%; left: -8%;  width: 90px; height: 38px; animation: fish-swim 38s linear infinite; animation-delay: 6s; opacity: 0.7; color: rgba(15,30,55,0.85); }
.iceberg__fish--c { top: 72%; left: -12%; width: 45px; height: 18px; animation: fish-swim 22s linear infinite; animation-delay: 11s; opacity: 0.45; }
.iceberg__fish--d { top: 42%; left: 110%; width: 70px; height: 30px; animation: fish-swim-rev 32s linear infinite; animation-delay: 3s; opacity: 0.6; transform: scaleX(-1); }
.iceberg__fish--e { top: 85%; left: 110%; width: 55px; height: 22px; animation: fish-swim-rev 26s linear infinite; animation-delay: 9s; opacity: 0.5; transform: scaleX(-1); }

@keyframes fish-swim-rev {
  0%   { transform: scaleX(-1) translate3d(0, 0, 0); }
  100% { transform: scaleX(-1) translate3d(130vw, -20px, 0); }
}

/* The MASSIVE iceberg svg fills most of the section */
.iceberg__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.iceberg__svg svg { width: 100%; height: 100%; display: block; }

/* Distant ship in the iceberg scene — small, ominous, on the horizon */
.iceberg__distant-ship {
  position: absolute;
  top: 16%;
  left: 14%;
  width: 120px;
  height: auto;
  opacity: 0.45;
  z-index: 2;
  animation: ship-distant 8s ease-in-out infinite;
  will-change: transform;
}
@keyframes ship-distant {
  0%, 100% { transform: translateY(0)    rotate(-0.3deg); }
  50%      { transform: translateY(-3px) rotate(0.3deg); }
}

/* Iceberg caption */
.iceberg__caption {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--glow);
  opacity: 0;
  text-shadow: 0 0 20px rgba(158,197,255,0.6);
  pointer-events: none;
  z-index: 4;
  text-align: center;
  white-space: nowrap;
}
.iceberg.is-seen .iceberg__caption {
  animation: caption-in 1.6s 0.4s cubic-bezier(0.18,0.9,0.3,1.2) forwards;
}
@keyframes caption-in {
  to { opacity: 0.95; transform: translate3d(-50%, 0, 0) scale(1); }
}

/* The big bright flash when iceberg comes into view */
.iceberg__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(207,226,255,0.6), transparent 65%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.iceberg.is-seen .iceberg__flash {
  animation: ice-flash 1.4s ease-out forwards;
}
@keyframes ice-flash {
  0%   { opacity: 0; transform: scale(0.85); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}

/* ============================================================
   DECK SECTIONS
   ============================================================ */
.deck-section {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  background: var(--bg-2);
}

.section-inner { max-width: 800px; margin: 0 auto; }

.deck-header {
  text-align: center;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.85, 0.3, 1);
}
.deck-header.is-seen { opacity: 1; transform: translate3d(0, 0, 0); }

.deck-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  position: relative;
  padding: 0 2.5rem;
  margin: 0 0 0.5rem;
}

.deck-eyebrow::before, .deck-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.deck-eyebrow::before { left: 0; }
.deck-eyebrow::after  { right: 0; }

.deck-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.deck-subtitle {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--muted);
  margin: 0;
}

.filigree {
  display: block;
  margin: 1rem auto 0;
  opacity: 0.6;
  color: var(--accent);
  width: 120px;
  height: 16px;
}

/* ============================================================
   POSTS — journal cards
   ============================================================ */
.post {
  background:
    linear-gradient(180deg, rgba(245,241,230,0.97), rgba(245,241,230,0.92)),
    repeating-linear-gradient(0deg, rgba(140,110,60,0.03) 0, transparent 2px, transparent 28px);
  color: #2a2419;
  padding: clamp(2rem, 5vw, 3.5rem);
  margin: 0 auto 3rem;
  max-width: 760px;
  position: relative;
  border: 1px solid rgba(201,164,76,0.4);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 10px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.85, 0.3, 1);
}
.post.is-seen { opacity: 1; transform: translate3d(0, 0, 0); }

.post::before, .post::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,164,76,0.6), transparent);
}
.post::before { top: 0.6rem; }
.post::after  { bottom: 0.6rem; }

.post__seal {
  position: absolute;
  top: -18px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d63a3a, #8a1717 70%, #4a0c0c 100%);
  color: #f5e6c2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 -4px 8px rgba(0,0,0,0.35),
    inset 0 2px 3px rgba(255,255,255,0.15);
  transform: rotate(-12deg);
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.post__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.post__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a6e2f;
  border: 1px solid #c9a44c;
  background: rgba(201,164,76,0.08);
  padding: 0.25rem 0.6rem 0.3rem;
  border-radius: 1px;
}

.post__deck {
  border-color: #6b7a8f;
  color: #4a5a72;
  background: rgba(107,122,143,0.08);
}

.post__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #1a1410;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.post__meta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7e6a;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,164,76,0.3);
}

.post__summary {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #5d4f33;
  text-align: center;
  margin: 0 0 2rem;
  line-height: 1.4;
}

.post__body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2a2419;
}

.post__body > *:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 4.75rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 0.45rem 0.6rem 0 0;
  color: #8a6e2f;
}

.post__body p { margin: 0 0 1.25rem; }
.post__body h2, .post__body h3 { font-family: var(--font-heading); color: #1a1410; margin: 2rem 0 0.75rem; }
.post__body h2 { font-size: 1.65rem; }
.post__body h3 { font-size: 1.3rem; }

.post__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  padding: 0.5rem;
  background: #f5f1e6;
  border: 1px solid rgba(201,164,76,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.post__body pre {
  background: #1a1410;
  color: #d8cfa6;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid rgba(201,164,76,0.4);
  margin: 1.5rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post__body code {
  background: rgba(201,164,76,0.15);
  color: #5d4f33;
  padding: 0.1rem 0.35rem;
  border-radius: 1px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

.post__body pre code { background: transparent; color: inherit; padding: 0; }

.post__body blockquote {
  font-family: var(--font-script);
  font-size: 1.4rem;
  text-align: center;
  margin: 2rem 0;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(201,164,76,0.4);
  border-bottom: 1px solid rgba(201,164,76,0.4);
  color: #5d4f33;
}

.post__body a { color: #8a6e2f; border-bottom: 1px dotted #8a6e2f; }
.post__body a:hover { color: #5d4f33; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  background: linear-gradient(180deg, #02080f 0%, #000000 100%);
  text-align: center;
  overflow: hidden;
}

.site-footer__compass {
  display: inline-block;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  color: var(--accent);
  opacity: 0.7;
  animation: compass-spin 40s linear infinite;
  will-change: transform;
}

@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}

.site-footer__quote {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--accent);
  margin: 1rem 0 2rem;
  opacity: 0.85;
}

.site-footer__copy {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

/* ============================================================
   STATES
   ============================================================ */
.state {
  text-align: center;
  padding: 4rem 1rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.8;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .hero__ship-wrap { bottom: 32%; width: 150vw; }
  .hero__moonbeam, .hero__shimmer { width: 220px; }
  .iceberg { min-height: 560px; }
  .iceberg__caption { font-size: 1.2rem; }
  .iceberg__distant-ship { width: 80px; }
  .season-banner { padding: 0.85rem 1.5rem 1.1rem; }
  .season-banner::before, .season-banner::after { display: none; }
  .hero__brand { font-size: 1rem; letter-spacing: 0.2em; }
  .deck-section { padding: 4rem 1rem; }
  .post { padding: 2rem 1.5rem; }
  .post__body > *:first-child::first-letter { font-size: 3.5rem; }
}

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