/* Everglades Dock and Lift: home page scroll scenes.
   Loaded after scrollcraft.css (the scroll engine, MIT) and styles.css.
   Distinct scenes, one signature move: the scroll wheel runs the lift.
   Scenery images are AI-generated and decorative, never shown as JJ's work. */

.home {
  --sc-canvas: #080a08;
  --sc-surface: #121612;
  --sc-ink: #f3f4f0;
  --sc-ink-soft: #a3aba4;
  --sc-accent: #2f9746;
  --sc-accent-ink: #080a08;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Archivo", system-ui, sans-serif;
  --hairline: rgba(243, 244, 240, 0.16);
  background: var(--sc-canvas);
  color: var(--sc-ink);
}
.home main { --fg: #ffffff; --muted: #a3aba4; --rule: rgba(255, 255, 255, 0.14); --signal: var(--green);
  --btn-bg: var(--green); --btn-fg: var(--black-2); --btn-hover: var(--green-hover);
  --quiet-border: rgba(255, 255, 255, 0.6); --quiet-hover: rgba(255, 255, 255, 0.08); color-scheme: dark; }

/* The header floats over the scenes; it turns solid once the hero logo has scrolled away. */
.home .site-header { position: fixed; inset: 0 0 auto; background: linear-gradient(180deg, rgba(8, 10, 8, 0.85), rgba(8, 10, 8, 0)); border-bottom-color: transparent; transition: background-color 250ms ease; }
.home.logo-away .site-header { background: var(--ink); border-bottom-color: var(--rule); }

.gut { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.scene-title { margin: 0; font-family: var(--display); font-stretch: var(--wide); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }

/* 1 Arrival: the backdrop is its own plane and drifts slower than the logo */
.arrive__plate { position: absolute; inset: -12% 0; background: url("/img/hero-canal-1200.webp") 50% 62% / cover no-repeat; }
@media (min-width: 1000px) { .arrive__plate { background-image: url("/img/hero-canal-2400.webp"); } }
.arrive__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 8, 0.9) 0%, rgba(8, 10, 8, 0.55) 40%, rgba(8, 10, 8, 0.2) 70%, rgba(8, 10, 8, 0.9) 100%); }
.arrive__copy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 20px; padding-top: var(--header-h); }
.arrive__copy h1 { margin: 0; display: grid; justify-items: center; gap: 18px; }
.hero-logo { width: min(620px, 86vw); height: auto; filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6)); }
.arrive__area { font-style: italic; font-stretch: var(--wide); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.4rem); }
.arrive__lede { margin: 0; max-width: 42ch; color: rgba(243, 244, 240, 0.88); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.5; }
.arrive .actions { justify-content: center; }

/* 2 Peak: the lift raises the boat on its own when the scene comes into view */
.peak { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: 3rem; background: radial-gradient(ellipse 60% 55% at 38% 60%, rgba(47, 151, 70, 0.10), rgba(8, 10, 8, 0) 70%), var(--sc-canvas); }
.peak__inner { display: grid; gap: 28px; align-items: center; width: 100%; max-width: var(--max); margin-inline: auto; padding-top: var(--header-h); }
@media (min-width: 960px) { .peak__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.peak svg { width: 100%; height: auto; overflow: visible; color: #ffffff; }
.peak__copy { display: grid; gap: 28px; }
.peak__copy p { margin: 0; max-width: none; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.3rem); font-weight: 700; font-stretch: 112%; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.peak__copy p small { display: block; margin-top: 14px; font-size: 1rem; font-weight: 400; font-stretch: 100%; line-height: 1.55; color: var(--sc-ink-soft); letter-spacing: 0; }
.peak .ln { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.peak .thin { fill: none; stroke: currentColor; stroke-width: 0.9; opacity: 0.5; vector-effect: non-scaling-stroke; }
.peak .hull { fill: rgba(255, 255, 255, 0.05); stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.peak .boat { fill: #121712; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.peak .hid { fill: none; stroke: currentColor; stroke-width: 0.9; stroke-dasharray: 4 4; opacity: 0.45; vector-effect: non-scaling-stroke; }
.peak .glass { fill: rgba(47, 151, 70, 0.18); stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.peak .water { fill: rgba(47, 151, 70, 0.07); }
.peak .wl { stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.peak .dim line { stroke: var(--green); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.peak .dim text { fill: #ffffff; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
/* The motion: .will-lift (added by site.js) parks the boat in the water; .is-up runs the lift.
   Without JavaScript, or with reduced motion, the drawing simply shows the raised boat. */
.peak .lift-cable, .peak .lift-clear, .peak .dim-size { transform-box: fill-box; }
.peak .lift-cable { transform-origin: top; }
.peak .lift-clear { transform-origin: bottom; }
.peak .dim-size { transform-origin: center; }
.peak.will-lift .lift-move { transform: translateY(110px); }
.peak.will-lift .lift-cable { transform: scaleY(1.487); }
.peak.will-lift .lift-clear { transform: scaleY(0); }
.peak.will-lift .dim-size { transform: scaleX(0); }
.peak.will-lift .dim-late, .peak.will-lift .peak__copy p { opacity: 0; }
.peak.will-lift .peak__copy p { transform: translateY(12px); }
.peak.is-up .lift-move, .peak.is-up .lift-cable, .peak.is-up .lift-clear { transform: none; transition: transform 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s; }
.peak.is-up .dim-size { transform: none; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 3s; }
.peak.is-up .dim-late { opacity: 1; transition: opacity 0.6s ease 3.4s; }
.peak.is-up .peak__copy p { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.peak.is-up .peak__copy p:nth-child(2) { transition-delay: 1.3s; }
.peak.is-up .peak__copy p:nth-child(3) { transition-delay: 2.6s; }
.peak__replay { justify-self: start; background: none; border: 1px solid rgba(243, 244, 240, 0.5); color: var(--sc-ink); font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; padding: 0 18px; cursor: pointer; }
.peak__replay:hover { border-color: var(--green); color: var(--green-hover); }
.peak__replay[hidden] { display: none; }

/* 3 Range: sideways on wide screens, a list on phones */
.range { display: flex; align-items: center; }
.rail { display: flex; align-items: stretch; padding-left: max(20px, 6vw); padding-top: var(--header-h); }
.rail__lead { flex: 0 0 min(30rem, 82vw); padding-right: 6vw; display: grid; align-content: center; gap: 18px; }
.rail__lead p { margin: 0; color: var(--sc-ink-soft); max-width: 34ch; line-height: 1.55; }
.svc { flex: 0 0 min(19rem, 72vw); border-left: 1px solid var(--hairline); padding: 8px 32px 8px 28px; display: grid; align-content: end; gap: 10px; min-height: 52vh; text-decoration: none; transition: border-color var(--fast) ease; }
.svc h3, .svc-list h3 { margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; line-height: 1.02; }
.svc h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.svc p, .svc-list p { margin: 0; color: var(--sc-ink-soft); line-height: 1.5; }
.svc:hover { border-left-color: var(--green); }
.svc:hover h3 { color: var(--green-hover); }
.kind { color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.svc--end { border-left-color: var(--green); }
.range-list { display: none; }
@media (max-width: 759px) {
  .range-act { display: none; }
  .range-list { display: block; padding-block: clamp(3.5rem, 12vw, 5rem); }
  .range-list .scene-title { font-size: 2rem; margin-bottom: 14px; }
  .range-list__intro { margin: 0 0 28px; color: var(--sc-ink-soft); line-height: 1.55; }
  .svc-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
  .svc-list a { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--hairline); text-decoration: none; }
  .svc-list h3 { font-size: 1.45rem; }
}

/* 4 Reassurance: the night bay wipes up */
.away { position: relative; min-height: 92vh; display: grid; align-items: end; overflow: hidden; }
.away figure { position: absolute; inset: 0; margin: 0; }
.away figure img { width: 100%; height: 100%; object-fit: cover; }
.away__shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8, 10, 8, 0.88) 0%, rgba(8, 10, 8, 0.5) 45%, rgba(8, 10, 8, 0.15) 100%); }
.away__copy { position: relative; justify-self: end; text-align: right; max-width: 34rem; padding-block: 0 clamp(3rem, 12vh, 7rem); display: grid; gap: 16px; justify-items: end; }
.away__copy p { margin: 0; line-height: 1.55; }
.away__copy .src { font-size: 0.85rem; color: var(--sc-ink-soft); }

/* 5 Grounding: the owner, the license, the towns */
.where { padding-block: clamp(4rem, 10vw, 8rem); }
.where__grid { max-width: var(--max); margin-inline: auto; display: grid; gap: 40px; }
@media (min-width: 900px) { .where__grid { grid-template-columns: 5fr 7fr; align-items: end; } }
.where__lead { display: grid; gap: 18px; align-content: end; }
.where__lead p { margin: 0; color: var(--sc-ink-soft); max-width: 44ch; line-height: 1.55; }
.where__lead .owner-summary { color: var(--sc-ink); font-size: var(--text-lg); line-height: 1.5; }
.where__lead .actions { margin-top: 8px; }
.towns { list-style: none; margin: 0; padding: 0; }
.towns li { font-family: var(--display); font-size: clamp(1.8rem, 1.1rem + 3.2vw, 4rem); font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; line-height: 1.05; letter-spacing: -0.02em; border-top: 1px solid var(--hairline); padding-block: 8px 6px; }
.towns li a { text-decoration: none; }
.towns li a:hover { color: var(--green-hover); }
.towns li span { display: block; font-family: var(--font); font-size: 0.8rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0.04em; text-transform: none; color: var(--sc-ink-soft); margin-top: 2px; }

/* 6 Resolve: dawn through the mangroves, JJ's number; it holds */
.close { display: grid; align-items: center; }
.close__plate { position: absolute; inset: 0; background: url("/img/band-dawn-1200.webp") 50% 45% / cover no-repeat; }
@media (min-width: 1000px) { .close__plate { background-image: url("/img/band-dawn-2400.webp"); } }
.close__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 8, 0.92) 0%, rgba(8, 10, 8, 0.7) 50%, rgba(8, 10, 8, 0.35) 100%); }
.close__inner { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; display: grid; gap: 22px; justify-items: start; }
.close .cta-phone { white-space: nowrap; }
.close__note { margin: 0; color: rgba(243, 244, 240, 0.82); max-width: 44ch; line-height: 1.5; }
@media (max-width: 600px) { .close .cta-phone { font-stretch: 100%; font-size: 2.4rem; } }

/* JJ's mascot in the close, beside the phone number: right side on wide screens, small above the heading on phones */
.close__mascot { margin: 0; }
.close__mascot img { width: auto; height: 180px; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
@media (min-width: 900px) {
  .close__mascot { position: absolute; right: 4%; bottom: -1rem; }
  .close__mascot img { height: min(460px, 58vh); }
  .close__inner .scene-title { max-width: 13ch; }
}
