/* Hero sections and decorative photo scenes */

.hero {
  background:
    linear-gradient(180deg, rgba(14,43,56,.92), rgba(14,43,56,.78)),
    radial-gradient(circle at 70% 35%, rgba(230,199,121,.2), transparent 26rem),
    var(--navy-deep);
  color: var(--cream-light);
  padding: 76px 0 84px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(90deg, rgba(240,228,208,.08) 1px, transparent 1px),
    linear-gradient(rgba(240,228,208,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* Homepage hero — photographic background */
.hero--photo-bg {
  background: var(--navy-deep);
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  padding: 96px 0;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero--photo-bg::before {
  z-index: 1;
  opacity: 1;
  mask-image: none;
  background:
    linear-gradient(90deg, rgba(14,43,56,.93) 0%, rgba(14,43,56,.82) 34%, rgba(14,43,56,.42) 58%, rgba(14,43,56,.18) 100%),
    linear-gradient(180deg, rgba(14,43,56,.28) 0%, transparent 42%, rgba(14,43,56,.34) 100%);
}

.hero--photo-bg .wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  grid-template-columns: minmax(0, .92fr);
  justify-items: start;
}

.hero--photo-bg h1 {
  text-shadow: 0 8px 28px rgba(8, 22, 30, .45);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.hero p.lead {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 22px 0 16px;
  max-width: 660px;
  color: rgba(248,242,231,.93);
}

.hero p.copy {
  margin: 0 0 30px;
  max-width: 600px;
  color: rgba(248,242,231,.74);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.stamp-row,
.launch-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  color: rgba(248,242,231,.72);
}

.stamp {
  border: 2px solid rgba(230,199,121,.55);
  border-radius: 18px;
  padding: 12px 15px;
  transform: rotate(-2deg);
  color: var(--tan);
  font-family: var(--capstone);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
  flex: 0 0 auto;
}

.stamp-row span,
.launch-note span { font-size: 14px; max-width: 340px; }

.photo-shell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(240,228,208,.12);
  border: 1px solid rgba(240,228,208,.22);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.photo-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(230,199,121,.38);
  border-radius: 28px;
  pointer-events: none;
  z-index: 4;
}

.photo-credit {
  position: absolute;
  bottom: 30px;
  left: 32px;
  z-index: 5;
  background: rgba(14,43,56,.78);
  color: var(--cream-light);
  border: 1px solid rgba(240,228,208,.2);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}

.photo-scene,
.ocean-photo {
  height: 560px;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,229,161,.85) 0 7%, rgba(255,229,161,.42) 8% 17%, transparent 28%),
    linear-gradient(180deg, #e7b877 0%, #eecb8a 19%, #9fb5aa 20%, #587e82 44%, #224657 100%);
  isolation: isolate;
}

.ocean-photo {
  background:
    radial-gradient(circle at 74% 16%, rgba(255,229,161,.95) 0 6%, rgba(255,229,161,.45) 7% 18%, transparent 29%),
    linear-gradient(180deg, #e5a86b 0%, #efc787 17%, #a3b4aa 18%, #587e82 42%, #224657 100%);
}

.photo-scene::before,
.ocean-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 35%),
    repeating-linear-gradient(176deg, rgba(255,255,255,.22) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(2deg, transparent 0 13px, rgba(14,43,56,.16) 13px 16px);
  mix-blend-mode: soft-light;
  opacity: .9;
  z-index: 1;
}

.photo-scene::after,
.ocean-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 52%, transparent 0 36%, rgba(8,26,35,.42) 80%);
  z-index: 6;
  pointer-events: none;
}

.horizon,
.horizon-line {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 32%;
  height: 2px;
  background: rgba(248,242,231,.38);
  z-index: 2;
}

.horizon-line { left: 0; right: 0; top: 37%; background: rgba(248,242,231,.23); }

.gull {
  position: absolute;
  z-index: 5;
  color: #183949;
  font-size: 42px;
  font-family: Georgia, serif;
  opacity: .82;
  transform: rotate(-8deg);
}

.gull.g1 { top: 88px; right: 118px; }
.gull.g2 { top: 132px; right: 70px; font-size: 27px; opacity: .55; }

.ocean-photo .gull {
  width: 70px;
  height: 26px;
  border-top: 4px solid rgba(248,242,231,.86);
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

.ocean-photo .gull::after {
  content: "";
  position: absolute;
  left: 34px;
  top: -4px;
  width: 54px;
  height: 24px;
  border-top: 4px solid rgba(248,242,231,.74);
  border-radius: 50%;
  transform: rotate(22deg);
}

.rope {
  position: absolute;
  z-index: 5;
  width: 240px;
  height: 240px;
  border: 13px solid rgba(217,190,137,.72);
  border-radius: 50%;
  right: -78px;
  bottom: -72px;
  box-shadow: inset 0 0 0 5px rgba(112,70,56,.18), 0 10px 24px rgba(0,0,0,.18);
}

.bale {
  position: absolute;
  z-index: 4;
  width: 132px;
  height: 92px;
  border-radius: 18px 15px 20px 16px;
  background:
    radial-gradient(circle at 27% 24%, rgba(255,245,213,.28), transparent 32%),
    linear-gradient(115deg, rgba(112,70,56,.12), transparent 28%),
    linear-gradient(90deg, #b29361, #d1b57a 48%, #92714f);
  box-shadow: 0 28px 30px rgba(10,31,40,.42), inset 0 0 0 2px rgba(255,255,255,.12), inset 0 -18px 28px rgba(83,56,40,.16);
  transform: rotate(var(--r, -7deg));
}

.bale::before {
  content: "COFFEE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) rotate(-5deg);
  color: rgba(23,57,73,.62);
  font-family: var(--capstone);
  font-size: 15px;
  letter-spacing: .12em;
  border: 2px solid rgba(23,57,73,.38);
  padding: 4px 7px;
  border-radius: 4px;
}

.b1 { left: 70px; top: 304px; --r: -7deg; }
.b2 { left: 238px; top: 255px; --r: 8deg; width: 156px; height: 102px; }
.b3 { left: 422px; top: 323px; --r: -4deg; width: 120px; height: 84px; }
.b4 { right: 78px; top: 240px; --r: 12deg; width: 112px; height: 80px; opacity: .82; }

.wake {
  position: absolute;
  z-index: 3;
  height: 7px;
  border-radius: 999px;
  background: rgba(248,242,231,.42);
  filter: blur(.4px);
}

.w1 { left: 30px; top: 405px; width: 220px; }
.w2 { left: 210px; top: 366px; width: 260px; }
.w3 { right: 42px; top: 333px; width: 180px; opacity: .55; }

.hero-page .wrap,
.hero-logbook-single .wrap { grid-template-columns: 1fr; }