/* ==========================================================================
   Hero — live section built over painted cutouts (globe scene + leaf)
   Positions are percentages of the scene; sizes use container-query units
   so everything scales with the painted art.
   ========================================================================== */
.hero4 { position: relative; overflow: hidden; background: linear-gradient(180deg, #faf7f1 0%, #f6f1e8 100%); }
.hero4-leaf { position: absolute; left: 0; top: 36%; width: clamp(90px, 10vw, 170px); height: auto; opacity: .9; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 40%, transparent 100%); }
.hero4-grid { position: relative; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 0; align-items: center; padding: 28px 0 18px; }
.hero4-copy { max-width: 560px; padding-right: 24px; }
.hero4 .eyebrow { color: var(--gold-deep); margin-bottom: 14px; }
.hero4 h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 4.2vw, 3.9rem); line-height: 1.02; color: #233530; }
.hero4 h1 em { font-style: italic; color: #9c7f4f; font-weight: 400; }
.hero4 .lead { color: var(--ink-soft); max-width: 530px; margin-bottom: 28px; font-size: clamp(1rem, 1.15vw, 1.14rem); }
.hero4 .hero-actions { gap: 12px; }
.hero4 .hero-actions .btn-lg { padding: 15px 26px; font-size: .95rem; }
.hero4 .hero-actions .btn-outline { background: rgba(255, 255, 255, .7); border-color: rgba(27, 26, 23, .18); }

/* the painted scene */
.scene { position: relative; aspect-ratio: 982 / 666; container-type: inline-size; }
.scene-art, .scene-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }

/* portrait pins laid over the painted ones */
.spin { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; z-index: 3; }
.spin .av { position: absolute; left: -3.3cqw; top: -3.3cqw; width: 6.6cqw; height: 6.6cqw; border-radius: 50%; background: #fff; box-shadow: 0 .8cqw 2cqw rgba(30, 40, 60, .25); }
.spin .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: .38cqw solid #fff; display: block; transition: transform .3s var(--ease); }
.spin .av i { position: absolute; right: .2cqw; bottom: .3cqw; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #3fb36b; border: .25cqw solid #fff; }
.spin .lbl { position: absolute; top: 3.7cqw; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .97); border-radius: .9cqw; padding: .55cqw 1.1cqw; box-shadow: 0 .8cqw 2cqw rgba(30, 40, 60, .16); display: flex; flex-direction: column; align-items: center; white-space: nowrap; line-height: 1.15; }
.spin .lbl b { font-size: 1.25cqw; font-weight: 700; color: var(--ink); }
.spin .lbl small { font-size: 1.05cqw; color: var(--muted); }
.spin:hover .av img { transform: scale(1.08); }

/* polaroids with real photographs */
.spol { position: absolute; margin: 0; background: #fff; padding: .9cqw .9cqw 3.2cqw; border-radius: .5cqw; box-shadow: 0 2.4cqw 5cqw rgba(40, 30, 10, .2); z-index: 4; transition: transform .5s var(--ease); }
.spol img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: .25cqw; }
.spol figcaption { position: absolute; left: 1cqw; right: 1cqw; bottom: .5cqw; font-family: 'Caveat', 'Cormorant Garamond', cursive; font-size: 2.2cqw; color: #5b4a2f; display: flex; justify-content: space-between; align-items: center; }
.spol figcaption span { color: #c9a26a; font-size: 1.8cqw; }
.spol-1 { left: 73.2%; top: 4.4%; width: 21.6%; transform: rotate(5deg); }
.spol-2 { left: 76%; top: 48.6%; width: 22.6%; transform: rotate(-10deg); }
.spol-beach { left: .4%; top: 68.6%; width: 20.6%; padding-bottom: 1cqw; transform: rotate(-3deg); z-index: 2; }
.spol:hover { transform: rotate(0) translateY(-.6cqw); }

/* activity cards */
.scard { position: absolute; display: flex; align-items: center; gap: 1.2cqw; background: #fff; border-radius: 1.2cqw; padding: 1.1cqw 1.6cqw 1.1cqw 1.2cqw; box-shadow: 0 1.8cqw 4cqw rgba(40, 30, 10, .14); z-index: 5; border: 1px solid rgba(230, 221, 205, .8); animation: float 7s ease-in-out infinite; }
.scard .ico { width: 2.8cqw; height: 2.8cqw; color: #9c7f4f; flex: none; }
.scard .sc-av { width: 4.8cqw; height: 4.8cqw; border-radius: 50%; object-fit: cover; flex: none; }
.scard b { display: block; font-size: 1.45cqw; font-weight: 600; color: var(--ink); line-height: 1.2; }
.scard small { font-size: 1.15cqw; color: var(--muted); }
.scard.sc1 { left: .4%; top: 5.6%; min-width: 30%; }
.scard.sc2 { left: 1.6%; top: 82.4%; min-width: 30.4%; animation-delay: -2.5s; }
.scard.sc3 { left: 53.8%; top: 85.6%; min-width: 32%; animation-delay: -5s; }

/* feature strip */
.feature-strip { position: relative; z-index: 3; /* above the scene, so drifting clouds never spill onto it */ background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-top: 6px; }
.feature-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.fs-item { display: flex; gap: 14px; align-items: center; padding: 24px 18px; border-left: 1px solid var(--line-soft); }
.fs-item:first-child { border-left: 0; padding-left: 0; }
.fs-ico { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #eef0e9; color: #4f6b5b; display: grid; place-items: center; }
.fs-ico .ico { width: 24px; height: 24px; }
.fs-item b { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 2px; color: var(--ink); }
.fs-item small { color: var(--muted); font-size: .84rem; line-height: 1.4; display: block; }

/* responsive */
@media (max-width: 1100px) { .feature-strip-grid { grid-template-columns: repeat(3, 1fr); } .fs-item:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 960px) {
  .hero4-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 36px; }
  .hero4-copy { max-width: none; padding-right: 0; }
  .scene { margin: 10px -4vw 0; }
  .hero4-leaf { display: none; }
}
@media (max-width: 640px) { .feature-strip-grid { grid-template-columns: 1fr; } .fs-item { border-left: 0; padding: 14px 0; } .spin .lbl { display: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .scard { animation: none !important; } }

/* alignment refinements */
.scene { margin-right: calc((min(var(--max), 92vw) - 100vw) / 2); }
.hero4-leaf { width: clamp(70px, 7.2vw, 116px); top: 40%; }
.spol { padding-bottom: 4cqw; }
.spol-1 { left: 72.4%; top: 3.6%; width: 23.4%; transform: rotate(6deg); }
.spol-2 { left: 75.2%; top: 47.2%; width: 24.6%; transform: rotate(-10.5deg); }
.spol-beach { left: 0; top: 68%; width: 21.4%; padding-bottom: 1cqw; }
.spin .lbl { top: 3.5cqw; padding: .6cqw 1.3cqw; }
.scard.sc1 { min-width: 31%; } .scard.sc2 { min-width: 31%; } .scard.sc3 { min-width: 33%; }
@media (max-width: 960px) { .scene { margin-right: -4vw; } }
.spol-2 { left: 74.8%; top: 46.6%; width: 25.6%; padding-bottom: 4.6cqw; }
.scard.sc1 { min-height: 12.6%; min-width: 32%; }
.scard.sc2 { min-height: 10.8%; }
.scard.sc3 { min-height: 11.2%; }
.spol-2 { left: 74.2%; top: 45.6%; width: 26.8%; padding-bottom: 5.2cqw; transform: rotate(-11deg); }
.spol-2 { left: 73.8%; top: 44.8%; width: 27.6%; padding-bottom: 5.6cqw; transform: rotate(-12deg); }
.spol-2 { left: 74.6%; top: 46%; width: 27.8%; padding-bottom: 6cqw; transform: rotate(-12deg); box-shadow: 0 0 0 .5cqw #fff, 0 2.4cqw 5cqw rgba(40, 30, 10, .2); }

/* ---------- scene rebuilt from separate cutouts */
.scene-glow { position: absolute; left: 10%; top: 4%; width: 68%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 70%); filter: blur(18px); }
.piece { position: absolute; height: auto; display: block; pointer-events: none; }
.globe-cut { left: 7.7%; top: 2.6%; width: 71.3%; z-index: 1; }
.cloud { z-index: 2; opacity: .95; }
.cloud-1 { left: 0; top: 45.9%; width: 15.3%; }
.cloud-2 { left: 0; top: 93.7%; width: 54%; }
.leaf { z-index: 2; }
.leaf-1 { left: 56%; top: 8.4%; width: 17.3%; }
.leaf-2 { left: 91.6%; top: 30.9%; width: 8.4%; }
.leaf-3 { left: 74.3%; top: 79%; width: 25.7%; }
.hero4-leaf { -webkit-mask-image: none; mask-image: none; opacity: .95; }
.cloud-1 { left: 0; top: 42.9%; width: 15.3%; }
.leaf-1 { left: 55.2%; top: 9.2%; width: 19.3%; }
.leaf-2 { left: 91.4%; top: 31.7%; width: 8.6%; }
.leaf-3 { left: 74.1%; top: 76.7%; width: 25.9%; }
.leaf-1 { left: 54.6%; top: 6.3%; width: 20.8%; }
.leaf-2 { left: 91%; top: 29.7%; width: 9%; }
.leaf-3 { left: 73.3%; top: 74.8%; width: 26.7%; }

/* ---------- live revolving Earth in place of the painted globe */
.globe-live { position: absolute; left: 10.9%; top: 7.2%; width: 64.9%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; z-index: 1; background: #cfe0ec;
  box-shadow: 0 4cqw 9cqw rgba(60, 80, 110, .22), 0 0 0 1px rgba(255, 255, 255, .8), 0 0 7cqw rgba(190, 215, 240, .7); }
.globe-live .earth { position: absolute; inset: 0; background-image: url("../img/earth.jpg"); background-repeat: repeat-x; background-size: 200% 100%; background-position: 0 50%; filter: saturate(.78) brightness(1.1) contrast(.92) sepia(.05); animation: earthSpin 110s linear infinite; }
@keyframes earthSpin { to { background-position: 200% 50%; } }
.globe-live .shade { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 40%), radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 56%, rgba(225, 235, 244, .5) 80%, rgba(240, 244, 248, .95) 100%); }
.globe-live .rim { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset -2.2cqw -1.6cqw 6cqw rgba(110, 140, 175, .35), inset 1.6cqw 1.2cqw 4.4cqw rgba(255, 255, 255, .6); }
.globe-live .clouds { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; filter: blur(1.2cqw); opacity: .95;
  background:
    radial-gradient(ellipse 34% 14% at 22% 86%, #fff 0 55%, transparent 100%),
    radial-gradient(ellipse 40% 12% at 60% 94%, #fff 0 55%, transparent 100%),
    radial-gradient(ellipse 22% 10% at 86% 78%, rgba(255,255,255,.9) 0 50%, transparent 100%),
    radial-gradient(ellipse 18% 8% at 10% 58%, rgba(255,255,255,.85) 0 50%, transparent 100%),
    radial-gradient(ellipse 26% 9% at 44% 8%, rgba(255,255,255,.8) 0 50%, transparent 100%); }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.arcs .arc { fill: none; stroke: #e2c27a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 9; filter: url(#arcGlow); opacity: .9; animation: arcFlow 4s linear infinite; }
@keyframes arcFlow { to { stroke-dashoffset: -56; } }
.arcs .spark { fill: #fff3c4; filter: drop-shadow(0 0 5px #f0c56a) drop-shadow(0 0 10px #f0c56a); }
.arcs .plane { fill: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.globe-cut { display: none; }
@media (prefers-reduced-motion: reduce) { .globe-live .earth, .arcs .arc { animation: none !important; } }
.globe-live .earth { filter: saturate(.7) brightness(1.28) contrast(.82) sepia(.04); }
.globe-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 45% 45%, rgba(200, 225, 245, .18) 0%, rgba(200, 225, 245, .32) 70%, rgba(220, 235, 250, .55) 100%); mix-blend-mode: screen; pointer-events: none; }
.arcs .arc { stroke: #f1c76a; stroke-width: 2.4; opacity: .95; }

/* ---------- the exact painted globe on a slow turntable */
.globe-live { display: none; }
.turntable { position: absolute; left: 7.7%; top: 2.6%; width: 71.3%; aspect-ratio: 1; z-index: 1; transform-origin: 50% 50%; animation: turn 180s linear infinite; }
.turntable .globe-turn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.turntable .arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.turntable .spin { z-index: 3; }
.turntable .upright { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; animation: turn 180s linear infinite reverse; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .turntable, .turntable .upright { animation: none !important; } }

/* gentle revolve: turn ~10 degrees (about 5 s of the full spin) then ease back, forever */
.turntable { animation: sway 12s ease-in-out infinite; }
.turntable .upright { animation: swayBack 12s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(10deg); } }
@keyframes swayBack { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-10deg); } }

/* compact "New album" card, tucked under the beach polaroid */
.scard.sc2 { left: 4.2%; top: 85.4%; min-width: 0; min-height: 0; padding: .9cqw 1.3cqw .9cqw 1cqw; gap: 1cqw; border-radius: 1cqw; }
.scard.sc2 .ico { width: 2.2cqw; height: 2.2cqw; }
.scard.sc2 b { font-size: 1.25cqw; }
.scard.sc2 small { font-size: 1cqw; }
.spol-beach { top: 67%; width: 20%; }
/* cloud puffs covering the spot right of the album card (where the painted card used to be) */
.cloud-3 { left: 19%; top: 76%; width: 17%; transform: scaleX(-1) rotate(8deg); opacity: .95; z-index: 3; }
.cloud-4 { left: 26%; top: 82%; width: 13%; transform: rotate(-12deg); opacity: .9; z-index: 3; }

/* ---------- horizontal revolve: static rim, surface (globe + pins + arcs) slides inside the disc */
.turntable, .turntable .upright { animation: none !important; }
.turntable .globe-rim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.turntable .port { position: absolute; inset: 0; clip-path: circle(44.6% at 50% 50%); }
.turntable .surface { position: absolute; inset: 0; animation: revolve 16s ease-in-out infinite; }
.turntable .surface .globe-turn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@keyframes revolve { 0%, 100% { transform: translateX(-2.4%); } 50% { transform: translateX(2.4%); } }
@media (prefers-reduced-motion: reduce) { .turntable .surface { animation: none !important; } }
/* soft cloud over the lower-left of the disc, behind the album card */
.turntable .cloud-blob { position: absolute; left: 3%; top: 76%; width: 46%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse at 45% 55%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.85) 40%, rgba(255,255,255,0) 72%); filter: blur(1.6cqw); z-index: 2; pointer-events: none; }
.turntable .port { z-index: 1; }
.turntable .cloud-blob { left: 0; top: 72%; width: 52%; height: 30%; filter: blur(2.2cqw); background: radial-gradient(ellipse at 50% 55%, #fff 0%, #fff 45%, rgba(255,255,255,0) 74%); }
.turntable .cloud-blob.b2 { left: 56%; top: 79%; width: 48%; height: 24%; }
/* final: opaque globe fills, no blobs, shorter slide so pins never pass under the polaroids */
.turntable .cloud-blob { display: none; }
@keyframes revolve { 0%, 100% { transform: translateX(-1.6%); } 50% { transform: translateX(1.6%); } }
.turntable .surface { animation-duration: 18s; }
/* left leaf: clearly visible */
.hero4-leaf { width: clamp(110px, 10vw, 170px); top: 34%; opacity: 1; filter: saturate(1.25); z-index: 0; }
.hero4-leaf { filter: blur(1.5px); opacity: .9; }
/* left leaf: crisp sprig from the artwork, mirrored to grow in from the left */
.hero4-leaf { filter: none; opacity: 1; width: clamp(90px, 8.5vw, 140px); top: 36%; left: 0; transform: scaleX(-1) rotate(-14deg); transform-origin: left center; }
.hero4-leaf { transform-origin: 50% 50%; transform: scaleX(-1) rotate(12deg); left: -8px; }

/* ---------- first viewport: hero + feature strip fit exactly in 100vh (nav 76px, strip ~104px) */
.hero4-grid { min-height: calc(100vh - 156px); padding: 24px 0 16px; }
.scene { width: min(calc(100% - (min(var(--max), 92vw) - 100vw) / 2), calc((100vh - 212px) * 1.4745)); margin-left: auto; }
/* strip: one clean line per item — icon + heading only */
.feature-strip-grid { height: 72px; }
.fs-item { padding: 0 18px; height: 100%; justify-content: center; gap: 12px; }
.fs-item:first-child { padding-left: 18px; }
.fs-ico { width: 40px; height: 40px; }
.fs-ico .ico { width: 20px; height: 20px; }
.fs-item b { margin: 0; font-size: .95rem; white-space: nowrap; }
.fs-item small { display: none; }
@media (max-width: 1100px) { .feature-strip-grid { height: auto; } .fs-item { padding: 16px 18px; } }
/* the two cloud puffs (150x180 art) used to hang 5% below the scene and over the strip border */
.cloud-3 { top: 64%; width: 15%; }
.cloud-4 { top: 70%; width: 11%; }
@media (max-width: 960px) { .hero4-grid { min-height: 0; } .scene { width: auto; margin-left: -4vw; } }
@media (max-height: 620px) { .hero4-grid { min-height: 0; } .scene { width: calc(100% - (min(var(--max), 92vw) - 100vw) / 2); } }
