/* ==========================================================================
   Story scroll (index-option2 only) — full-screen panels that land on top of each other
   (after "Story Scroll" by Samira Boudjadja). Motion: assets/js/story-scroll.js
   sets each panel's sticky top and the tilt it lands from.
   ========================================================================== */
.jh-ss { position: relative; }
.jh-ss__panel {
  --ss-bg: #1c3322; --ss-fg: #f3ede1; --ss-soft: rgba(243, 237, 225, .7); --ss-rule: rgba(243, 237, 225, .28); --ss-accent: #a8c98c;
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--jh-nav-space, 96px) + 1vh) var(--jh-gutter) clamp(32px, 5vh, 56px);
  background: var(--ss-bg); color: var(--ss-fg);
  transform-origin: 50% 0;
  box-shadow: 0 -24px 60px rgba(20, 30, 18, .18);
  will-change: transform;
}
.jh-ss__panel--paper { --ss-bg: #f3ece0; --ss-fg: #1f2a1c; --ss-soft: #4c5648; --ss-rule: rgba(31, 42, 28, .22); --ss-accent: hsl(109, 37%, 36%); }
.jh-ss__panel--gold  { --ss-bg: #d9bd7c; --ss-fg: #1f2a1c; --ss-soft: #3f3a26; --ss-rule: rgba(31, 42, 28, .28); --ss-accent: #2f4f2a; }
.jh-ss__in { width: min(1180px, 100%); margin-inline: auto; }

.jh-ss__top {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ss-rule);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.jh-ss__top span:last-child { opacity: .55; }

.jh-ss__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(18px, 3.4vh, 48px) 0;
}
.jh-ss .jh-ss__title {
  font-family: var(--jh-serif); font-weight: 700;
  font-size: clamp(42px, min(6.4vw, 10vh), 104px); line-height: .95; letter-spacing: -0.025em;
  color: var(--ss-fg);
}
.jh-ss__title em { font-style: italic; font-weight: 500; color: var(--ss-accent); }
.jh-ss .jh-ss__lead {
  margin-top: clamp(16px, 3vh, 28px); max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ss-soft);
}
.jh-ss__link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(18px, 3.4vh, 32px);
  padding-bottom: 4px; border-bottom: 2px solid currentColor;
  font-weight: 600; font-size: 16px; color: var(--ss-fg) !important; text-decoration: none !important;
}
.jh-ss__link span { transition: transform .3s ease; }
.jh-ss__link:hover { color: var(--ss-accent) !important; }
.jh-ss__link:hover span { transform: translateX(5px); }
.jh-ss__link:focus-visible { outline: 3px solid var(--ss-accent); outline-offset: 4px; }

.jh-ss__photo {
  position: relative; overflow: hidden; justify-self: end; width: 100%;
  /* fills its half of the panel; height follows the screen so the panel fits */
  height: clamp(240px, calc(100svh - 360px), 540px);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .22);
}
.jh-ss__photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }

.jh-ss__cols {
  list-style: none; margin: 0; padding: clamp(16px, 3vh, 28px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 44px);
  border-top: 1px solid var(--ss-rule);
}
.jh-ss__cols li { margin: 0; padding: 0; }
.jh-ss__cols li::before { display: none; }
.jh-ss__cols b { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.jh-ss__cols span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ss-soft); }

@media (max-width: 860px) {
  .jh-ss__panel { align-items: flex-start; }
  .jh-ss__grid { grid-template-columns: 1fr; }
  .jh-ss__photo { justify-self: start; height: auto; aspect-ratio: 16 / 11; }
  .jh-ss__cols { grid-template-columns: 1fr; gap: 16px; }
  .jh-ss__top span:last-child { display: none; }
  /* a little larger on phones */
  .jh-ss .jh-ss__lead { font-size: 17.5px; line-height: 1.65; }
  .jh-ss__link { font-size: 17px; }
  .jh-ss__cols b { font-size: 14px; }
  .jh-ss__cols span { font-size: 16.5px; line-height: 1.6; }
}

