/* ALKYON Yachts: story pages. Same canvas units as styles.css (1 design px = var(--u)). */
.st { position: relative; background: var(--deep); }
.st-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.st-pic { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.st-pic img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(1.14); }
.st-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse at 50% 40%, rgb(4 14 22 / 0) 30%, rgb(4 14 22 / 0.55) 100%),
  linear-gradient(0deg, rgb(4 14 22 / 0.75) 0%, rgb(4 14 22 / 0) 45%); }

/* the opening */
.st-open { position: absolute; left: calc(40 * var(--u)); right: calc(40 * var(--u)); bottom: calc(110 * var(--u)); will-change: opacity, transform; }
.st-open .back { display: inline-block; margin-bottom: calc(40 * var(--u)); font-size: calc(9 * var(--u)); color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.5); }
.st-open .back:hover { opacity: 0.75; }
.st-kicker { margin: 0 0 calc(16 * var(--u)); font-size: calc(9 * var(--u)); color: var(--white-82); }
.st-title { margin: 0; max-width: calc(1000 * var(--u)); font-family: var(--serif); font-weight: 400; font-size: calc(120 * var(--u)); line-height: 0.95; color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); }
.st-intro { max-width: calc(520 * var(--u)); margin: calc(24 * var(--u)) 0 0; font-size: calc(15 * var(--u)); line-height: 1.6; color: var(--white-82); opacity: 0; transform: translateY(14px); transition: opacity 900ms 500ms var(--ease), transform 900ms 500ms var(--ease); }
.st-open.is-in .st-intro { opacity: 1; transform: none; }
.st-scroll { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: calc(12 * var(--u)); font-size: calc(8 * var(--u)); color: #fff; }
.st-scroll i { width: calc(40 * var(--u)); height: 1px; background: rgb(255 255 255 / 0.4); overflow: hidden; position: relative; }
.st-scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateX(-100%); animation: sweep 2.2s var(--ease) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

/* words that rise in: used by the title, each chapter and the plan heading */
.w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(0.45em) rotate(2deg); transition: opacity 700ms var(--ease), filter 800ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i) * 55ms); }
.st-open.is-in .w, .st-text.is-on .w, .split.is-in .w { opacity: 1; filter: blur(0); transform: none; }

/* the chapters */
.st-text { position: absolute; bottom: calc(110 * var(--u)); width: calc(560 * var(--u)); pointer-events: none; }
.st-text.left { left: calc(40 * var(--u)); }
.st-text.right { right: calc(110 * var(--u)); text-align: right; }
.st-label { margin: 0 0 calc(14 * var(--u)); font-size: calc(9 * var(--u)); color: #fff; opacity: 0; transform: translateX(calc(-30 * var(--u))); transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
.st-text.right .st-label { transform: translateX(calc(30 * var(--u))); }
.st-h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(72 * var(--u)); line-height: 1; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / 0.35); }
.st-p { margin: calc(20 * var(--u)) 0 0; font-size: calc(15 * var(--u)); line-height: 1.6; color: var(--white-82); text-shadow: 0 1px 12px rgb(0 0 0 / 0.5); opacity: 0; transform: translateY(16px); transition: opacity 700ms 350ms var(--ease), transform 900ms 350ms var(--ease); }
.st-text.right .st-p { margin-left: auto; }
.st-text.is-on .st-label, .st-text.is-on .st-p { opacity: 1; transform: none; }

/* the rail and progress */
.st-rail { position: absolute; right: calc(40 * var(--u)); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: calc(14 * var(--u)); }
.st-rail button { display: flex; align-items: center; justify-content: flex-end; gap: calc(10 * var(--u)); padding: 4px 0; border: 0; background: none; color: rgb(255 255 255 / 0.55); font: 500 calc(8 * var(--u)) / 1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.st-rail button::after { content: ""; width: calc(18 * var(--u)); height: 1px; background: currentColor; transition: width 400ms var(--ease); }
.st-rail button span { opacity: 0; transform: translateX(6px); transition: opacity 300ms, transform 300ms var(--ease); }
.st-rail button:hover span, .st-rail button[aria-current] span { opacity: 1; transform: none; }
.st-rail button[aria-current] { color: #fff; }
.st-rail button[aria-current]::after { width: calc(42 * var(--u)); }
.st-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(255 255 255 / 0.12); }
.st-progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }

/* the plan */
.st-plan-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: calc(90 * var(--u)); align-items: start; }
.timeline { list-style: none; margin: calc(50 * var(--u)) 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(70 * var(--u)); top: 8px; bottom: 8px; width: 1px; background: var(--line); transform-origin: top; transform: scaleY(0); transition: transform 1400ms var(--ease); }
.timeline.is-in::before { transform: none; }
.tl { display: grid; grid-template-columns: calc(70 * var(--u)) 1fr; gap: calc(34 * var(--u)); padding: calc(14 * var(--u)) 0; position: relative; opacity: 0; transform: translateX(-20px); transition: opacity 600ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i) * 110ms + 200ms); }
.timeline.is-in .tl { opacity: 1; transform: none; }
.tl::after { content: ""; position: absolute; left: calc(66 * var(--u)); top: calc(20 * var(--u)); width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: var(--deep); border: 1px solid var(--ice); }
.tl b { font: 500 calc(10 * var(--u)) / 1.6 var(--mono); letter-spacing: 0.12em; color: var(--white-82); }
.tl span { font-family: var(--serif); font-size: calc(26 * var(--u)); line-height: 1.15; }
.st-facts { position: sticky; top: calc(100 * var(--u)); display: grid; gap: calc(12 * var(--u)); padding: calc(30 * var(--u)); border: 1px solid var(--line); border-radius: calc(6 * var(--u)); background: rgb(255 255 255 / 0.04); opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 900ms var(--ease); }
.st-facts.is-in { opacity: 1; transform: none; }
.st-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: calc(20 * var(--u)); margin: 0 0 calc(14 * var(--u)); }
.st-facts dt { font-size: calc(8 * var(--u)); color: rgb(255 255 255 / 0.6); }
.st-facts dd { margin: calc(6 * var(--u)) 0 0; font-family: var(--serif); font-size: calc(24 * var(--u)); line-height: 1.1; }
.st-facts .btn-white, .st-facts .outline { height: calc(46 * var(--u)); font-size: calc(9 * var(--u)); }

/* the next story */
.st-next { position: relative; display: block; height: 70vh; min-height: 360px; overflow: hidden; color: #fff; }
.st-next img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1600ms var(--ease), filter 600ms; filter: brightness(0.6); }
.st-next.is-in img { transform: scale(1.02); }
.st-next:hover img { transform: scale(1.06); filter: brightness(0.75); }
.st-next-copy { position: absolute; left: calc(40 * var(--u)); bottom: calc(60 * var(--u)); display: grid; gap: calc(14 * var(--u)); }
.st-next-copy .mono { font-size: calc(9 * var(--u)); }
.st-next-title { font-family: var(--serif); font-size: calc(90 * var(--u)); line-height: 0.95; }
.st-next-go { transition: transform 300ms var(--ease); }
.st-next:hover .st-next-go { transform: translateX(8px); }

@media (max-width: 1024px) {
  .st-open { left: 20px; right: 20px; bottom: 90px; }
  .st-open .back { font-size: 10px; margin-bottom: 24px; }
  .st-kicker { font-size: 10px; }
  .st-title { font-size: 54px; }
  .st-intro { font-size: 15px; }
  .st-scroll { display: none; }
  .st-text, .st-text.right { left: 20px; right: 20px; width: auto; bottom: 70px; text-align: left; }
  .st-label, .st-text.right .st-label { font-size: 10px; transform: translateY(8px); }
  .st-h { font-size: 40px; }
  .st-p { font-size: 15px; }
  .st-text.right .st-p { margin-left: 0; }
  .st-rail { display: none; }
  .st-plan-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 60px; }
  .tl { grid-template-columns: 60px 1fr; gap: 26px; }
  .tl::after { left: 56px; top: 20px; width: 9px; height: 9px; }
  .tl b { font-size: 11px; } .tl span { font-size: 22px; }
  .st-facts { position: static; padding: 22px; }
  .st-facts dt { font-size: 9px; } .st-facts dd { font-size: 20px; }
  .st-facts .btn-white, .st-facts .outline { height: 48px; font-size: 10px; }
  .st-next-copy { left: 20px; bottom: 36px; } .st-next-copy .mono { font-size: 10px; } .st-next-title { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .w, .st-label, .st-p, .tl, .st-facts { transition: none !important; filter: none !important; }
}
