

.story {
  --st-ink: #171717;
  --st-muted: rgba(23, 23, 23, 0.6);
  --st-lime: #B1F445;
  --st-lime-ink: #4A7407;
  --st-lime-tint: rgba(177, 244, 69, 0.22);
  --st-own: #C2187A;
  --st-grey: #F6F6F6;
  --st-raised-high: #E8EAEE;
  --st-card-brd: rgba(0, 0, 0, 0.14);
  --st-shadow: 0 14px 34px rgba(23, 23, 23, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  --st-dur-quick: 160ms;
  --st-dur-base: 240ms;
  --st-dur-slow: 380ms;
  --st-ease: cubic-bezier(.32, .72, 0, 1);
  --st-ease-out: cubic-bezier(.16, 1, .3, 1);
  --st-ease-in: cubic-bezier(.4, 0, 1, 1);
  --st-spring: cubic-bezier(.34, 1.56, .64, 1);
  padding: 70px 0 40px;
  color: var(--st-ink);
}

.story-head { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; text-align: center; }
.story-head .sub { max-width: 400px; color: var(--st-muted); font-weight: 500; }
.story-skip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px;
  color: var(--st-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

.story-beats { display: flex; flex-direction: column; gap: 56px; max-width: 550px; margin: 0 auto; padding: 0 10px; }
.beat { display: flex; flex-direction: column; gap: 22px; }
.beat-media { position: relative; margin: 0; }
.beat-photo {
  position: relative; overflow: hidden; border-radius: 32px; background: var(--st-grey);
  aspect-ratio: 4 / 5;
}
.beat-photo img, .beat-photo video {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); display: block;
}
.beat-photo video { pointer-events: none; background: #1c1c1c; }

.beat-copy { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.beat-step {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-muted);
  display: flex; gap: 8px; align-items: center;
}
.beat-step .n { color: var(--st-ink); font-variant-numeric: tabular-nums; }
.beat-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.beat-body { font-size: 16px; line-height: 1.45; letter-spacing: -0.02em; font-weight: 500; color: var(--st-muted); max-width: 440px; }

.ov-top, .ov-bot { position: absolute; left: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.ov-top { top: 12px; align-items: flex-start; }
.ov-bot { bottom: 12px; }

.el {
  background: #fff; border: 1px solid var(--st-card-brd); border-radius: 20px; box-shadow: var(--st-shadow);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
  font-weight: 500; letter-spacing: -0.02em;
}
.el-row { display: flex; align-items: center; gap: 10px; }
.el-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.el-tx b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--st-ink); }
.el-tx small { font-size: 13px; color: var(--st-muted); letter-spacing: -0.01em; }
.el-micro { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-muted); }

.av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--st-raised-high);
  color: rgba(23, 23, 23, 0.62); font-size: 13px; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
  background: var(--st-lime-tint); color: var(--st-lime-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em; border-radius: 999px; padding: 5px 10px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--st-lime-ink); }
.pill--quiet { background: var(--st-grey); color: var(--st-ink); }

.toast {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  background: #fff; border: 1px solid var(--st-card-brd); border-radius: 16px; box-shadow: var(--st-shadow);
  padding: 10px 14px 10px 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em;
}
.toast .ic { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--st-lime); color: var(--st-ink); display: inline-flex; align-items: center; justify-content: center; }
.toast .ic svg { width: 16px; height: 16px; }
.toast small { display: block; font-size: 12px; font-weight: 500; color: var(--st-muted); }

.tgl-wrap { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tgl-wrap small { font-size: 13px; color: var(--st-muted); }
.tgl { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--st-lime); flex: none; }
.tgl::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); transform: translateX(18px);
}

button.tgl { position: relative; padding: 0; border: 0; cursor: pointer; transition: background 240ms ease; }
button.tgl::before { content: ""; position: absolute; inset: -9px -6px; }
button.tgl::after { transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1); }
button.tgl:focus-visible { outline: 2px solid var(--st-ink, #171717); outline-offset: 3px; }
button.tgl[aria-checked="false"] { background: rgba(23, 23, 23, 0.16); }
button.tgl[aria-checked="false"]::after { transform: none; }

.bar24 { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 16px; }
.bar24 i { position: relative; border-radius: 3px; background: rgba(23, 23, 23, 0.10); }
.bar24 i.o { background: var(--st-own); }

.bar24 i.s { background: var(--st-lime); }
.bar24 i.b { background: repeating-linear-gradient(135deg, rgba(23, 23, 23, 0.04) 0 4px, rgba(23, 23, 23, 0.55) 4px 5px); }
.bar-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--st-muted); font-variant-numeric: tabular-nums; letter-spacing: 0; margin-top: -6px; }
.bar-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--st-muted); letter-spacing: -0.01em; }
.bar-key .k { display: inline-flex; align-items: center; gap: 6px; }
.bar-key .k::before { content: ""; width: 12px; height: 10px; border-radius: 3px; background: rgba(23, 23, 23, 0.10); }
.bar-key .k-own::before { background: var(--st-own); }
.bar-key .k-shared::before { background: var(--st-lime); }
.bar-key .k-blocked::before { background: repeating-linear-gradient(135deg, rgba(23, 23, 23, 0.04) 0 3px, rgba(23, 23, 23, 0.55) 3px 4px); }

.map { position: relative; aspect-ratio: 320 / 110; border-radius: 12px; overflow: hidden; background: #F1F2F3; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-you, .map-pin, .map-tag { position: absolute; transform: translate(-50%, -50%); }
.map-you { left: 15.94%; top: 70%; width: 14px; height: 14px; border-radius: 50%; background: #0A84FF; box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(10, 132, 255, 0.2), 0 1px 4px rgba(0, 0, 0, 0.25); }
.map-pin {
  left: 80%; top: 33.64%; width: 30px; height: 34.29px; transform: translate(-50%, -100%); filter: drop-shadow(0 4px 6px rgba(23, 23, 23, 0.25));
}
.map-pin svg { width: 30px; height: 34.29px; display: block; }
.map-tag { left: 50%; top: 45%; background: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; letter-spacing: 0; box-shadow: 0 2px 8px rgba(23, 23, 23, 0.14); }
.map-route { stroke-dasharray: 5 6; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { display: flex; flex-direction: column; gap: 1px; background: var(--st-grey); border-radius: 12px; padding: 8px 12px; }
.slot small { font-size: 12px; color: var(--st-muted); }
.slot b { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.book-btn {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px;
  background: var(--st-lime); color: var(--st-ink); font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
}

.kwh { display: flex; align-items: baseline; gap: 6px; }
.kwh b { font-size: 44px; line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.kwh span { font-size: 16px; font-weight: 600; color: var(--st-muted); }
.prog { height: 8px; border-radius: 999px; background: rgba(23, 23, 23, 0.10); overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--st-lime); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.el-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.live-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--st-lime); color: var(--st-ink); display: inline-flex; align-items: center; justify-content: center; }
.live-ic svg { width: 18px; height: 18px; }

.note {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px 14px; border-radius: 22px;
  background: rgba(245, 245, 245, 0.78); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.2px;
}
.app-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8.74px; display: grid; place-items: center; background: linear-gradient(180deg, #303030 0%, #121212 100%); }
.app-ic svg { width: 25.6px; height: 29.26px; display: block; }
.note-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 15px; line-height: 19px; font-weight: 400; color: #000; }
.note-tx .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 1px; font-size: 13px; line-height: 16px; color: rgba(0, 0, 0, 0.55); }
.note-tx .top span:first-child { font-weight: 600; letter-spacing: 0.2px; text-transform: uppercase; }
.note-tx .top span:last-child { white-space: nowrap; }
.note-tx b { font-size: 15px; line-height: 19px; font-weight: 600; color: #000; }

.story-end { max-width: 1100px; margin: 64px auto 0; padding: 0 10px; display: grid; gap: 28px; }
.end-copy { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.end-copy .sub { max-width: 420px; color: var(--st-muted); font-weight: 500; }
.end-media { position: relative; margin: 0 auto; width: 100%; max-width: 550px; }
.end-media .beat-photo { aspect-ratio: 4 / 5; }
.end-ctas { display: grid; gap: 12px; max-width: 550px; margin: 0 auto; width: 100%; scroll-margin-top: 24px; }
.story-end { padding-bottom: 24px; }
.end-note { font-size: 12px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--st-muted); max-width: 550px; margin: 0 auto; width: 100%; padding: 0 8px; }
.cta-card { background: var(--st-grey); border-radius: 32px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.cta-card p { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--st-muted); letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-card .btn span { white-space: nowrap; }
.btn-ink {
  display: inline-flex; align-items: center; height: 58px; padding: 0 26px; border-radius: 50px;
  background: var(--st-ink); color: #fff; font-size: 15px; letter-spacing: -0.05em;
}
.btn:focus-visible, .btn-ink:focus-visible, .story-skip:focus-visible, .step-btn:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 3px; }

.story-rail, .story-steps, .story-cue { display: none; }

.story--live .story-track { position: relative; height: var(--track-h, 520vh); }
.story--live .story-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding: 12px 10px 96px;
}
.story--live .story-beats { position: relative; flex: 1; min-height: 0; max-width: 550px; width: 100%; margin: 0 auto; padding: 0; gap: 0; display: block; }
.story--live .beat { position: absolute; inset: 0; gap: 16px; z-index: var(--z, 1); pointer-events: none; }
.story--live .beat.is-on { pointer-events: auto; }
.story--live .beat-media {
  flex: 1; min-height: 0;
  transform: translate3d(0, calc((1 - var(--rise, 0)) * 100vh), 0) scale(calc(1 - var(--sink, 0) * 0.07));
  transform: translate3d(0, calc((1 - var(--rise, 0)) * 100svh), 0) scale(calc(1 - var(--sink, 0) * 0.07));
  transform-origin: 50% 0;
  will-change: transform;
}
.story--live .beat-photo { height: 100%; aspect-ratio: auto; border-radius: 28px; }
.story--live .beat-photo::after {
  content: ""; position: absolute; inset: 0; background: #171717; opacity: calc(var(--sink, 0) * 0.45); pointer-events: none;
}
.story--live .beat[data-beat="0"] .beat-media { transform: scale(calc(1 - var(--sink, 0) * 0.07)); }

.story--live .beat-copy {
  flex: none; min-height: 150px; padding: 0 6px;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--st-dur-base) var(--st-ease-in), transform var(--st-dur-base) var(--st-ease-in);
}
.story--live .beat.is-on .beat-copy {
  opacity: 1; transform: none;
  transition: opacity var(--st-dur-slow) var(--st-ease-out) 120ms, transform var(--st-dur-slow) var(--st-ease-out) 120ms;
}

.story--live .ov-top > *, .story--live .ov-bot > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--st-dur-base) var(--st-ease-in), transform var(--st-dur-base) var(--st-ease-in);
}
.story--live .ov-top > * { transform: translateY(-16px); }
.story--live .beat.is-on .ov-bot > *, .story--live .beat.is-on .ov-top > * {
  opacity: 1; transform: none;
  transition: opacity var(--st-dur-slow) var(--st-ease-out) var(--d, 260ms), transform var(--st-dur-slow) var(--st-ease-out) var(--d, 260ms);
}

.story--live .beat:not(.is-on) .tgl, .story--live:not(.is-inview) .tgl { background: #D9D9D9; transition-delay: 0s; }
.story--live .beat:not(.is-on) .tgl::after, .story--live:not(.is-inview) .tgl::after { transform: translateX(0); transition-delay: 0s; }
.story--live .tgl { transition: background var(--st-dur-base) var(--st-ease) 700ms; }
.story--live .tgl::after { transition: transform var(--st-dur-base) var(--st-spring) 700ms; }

.story--live .bar24 i.x { transition: background var(--st-dur-quick) var(--st-ease) calc(900ms + var(--k, 0) * 45ms); }
.story--live .beat:not(.is-on) .bar24[data-from="b"] i.x { background: repeating-linear-gradient(135deg, rgba(23, 23, 23, 0.04) 0 4px, rgba(23, 23, 23, 0.55) 4px 5px); }
.story--live .beat:not(.is-on) .bar24[data-from="f"] i.x { background: rgba(23, 23, 23, 0.10); }
.story--live .beat:not(.is-on) .bar24 i.x::after { opacity: 0; }

.story--live .map-pin { transition: transform var(--st-dur-base) var(--st-ease-out) 800ms, opacity var(--st-dur-base) var(--st-ease-out) 800ms; }
.story--live .beat:not(.is-on) .map-pin { transform: translate(-50%, -135%); opacity: 0; }
.story--live .map-route { transition: stroke-dashoffset var(--st-dur-slow) linear 950ms; stroke-dashoffset: 0; }
.story--live .beat:not(.is-on) .map-route { stroke-dashoffset: 180; }
.story--live .map-tag { transition: opacity var(--st-dur-quick) var(--st-ease) 1500ms; }
.story--live .beat:not(.is-on) .map-tag { opacity: 0; }

.story--live .book-btn { transition: transform 90ms var(--st-ease) 1500ms; }
.story--live .beat.is-on .book-btn { animation: st-press var(--st-dur-quick) var(--st-ease) 1500ms 1 both; }
@keyframes st-press { 0%, 100% { transform: none; } 50% { transform: scale(.975); } }
.story--live .beat[data-beat="2"] .ov-top > * { --d: 1750ms; }
.story--live .beat[data-beat="4"] .ov-top > *:nth-child(2) { --d: 900ms; }

.story--live .story-rail { display: flex; flex-direction: column; gap: 8px; max-width: 550px; width: 100%; margin: 0 auto 12px; padding: 0 6px; }
.rail-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.rail-segs span { height: 4px; border-radius: 4px; background: rgba(23, 23, 23, 0.10); overflow: hidden; }
.rail-segs i { display: block; height: 100%; background: var(--st-lime); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.rail-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: -0.02em; min-height: 24px; }
.rail-meta b { font-weight: 700; }
.rail-meta .muted { color: var(--st-muted); font-weight: 500; }
.rail-skip { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 0 16px; margin: -10px 0; }

.story--live .story-cue {
  display: block; position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 20;
  font-size: 12px; font-weight: 600; color: var(--st-muted); letter-spacing: -0.01em;
  transition: opacity var(--st-dur-base) var(--st-ease);
}
.story--live.is-moving .story-cue { opacity: 0; }
@media (max-width: 899px) { .story--live .story-cue { display: none; } }

@media (max-height: 700px) and (max-width: 899px) {
  .story--live .story-stage { padding-bottom: 88px; }
  .story--live .beat { gap: 12px; }
  .story--live .beat-copy { min-height: 124px; gap: 6px; }
  .story--live .beat-title { font-size: 22px; }
  .story--live .beat-body { font-size: 14px; line-height: 1.4; }
  .story--live .slots, .story--live .el-book .el-row { display: none; }
  .story--live .bar-key, .story--live .bar-axis, .story--live .el-foot { display: none; }
  .story--live .el { padding: 11px 13px; gap: 9px; }
  .story--live .map { aspect-ratio: 320 / 110; }
  .story--live .kwh b { font-size: 34px; }
  .story--live .note-2 { display: none; }
}

@media (min-width: 900px) {
  .story-beats { max-width: 1100px; gap: 96px; }
  .beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
  .beat:nth-child(even) .beat-copy { order: 2; }
  .beat-title { font-size: 40px; letter-spacing: -0.045em; }
  .beat-body { font-size: 18px; }
  .ov-bot { left: -40px; right: auto; width: 340px; bottom: 28px; }
  .ov-top { left: auto; right: -28px; top: 28px; align-items: flex-end; max-width: 330px; }
  .beat:nth-child(even) .ov-bot { left: auto; right: -40px; }
  .beat:nth-child(even) .ov-top { right: auto; left: -28px; align-items: flex-start; }

  .end-copy .sub { font-size: 18px; }
  .story-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 72px; }
  .end-media { grid-row: span 2; }
  .end-copy { text-align: left; align-items: flex-start; }
  .end-copy .t-h2 { text-align: left; }
  .end-ctas { grid-template-columns: 1fr; }
  .end-note { padding: 0; grid-column: 2; }

  .story--live .story-stage { padding: 36px 40px 112px; justify-content: center; }
  .story--live .story-rail { display: none; }
  .story--live .story-beats {
    flex: none; width: 100%; max-width: 1100px; height: min(calc(100vh - 148px), 780px);
  }
  .story--live .beat { display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 96px; align-items: stretch; }
  .story--live .beat:nth-child(even) .beat-copy { order: 0; }
  .story--live .beat-media { grid-column: 2; grid-row: 1; justify-self: center; height: 100%; aspect-ratio: 4 / 5; max-width: 100%; }
  .story--live .beat-copy { grid-column: 1; grid-row: 1; align-self: center; min-height: 0; padding: 0 0 230px; }
  .story--live .ov-top, .story--live .ov-bot { zoom: 1.14; }
  .story--live .beat:nth-child(even) .ov-bot { left: -56px; right: auto; }
  .story--live .beat:nth-child(even) .ov-top { left: auto; right: -32px; align-items: flex-end; }
  .story--live .ov-bot { left: -56px; bottom: 36px; }
  .story--live .ov-top { right: -32px; top: 36px; }
  .story--live .beat-photo { border-radius: 32px; }

  .story--live .story-steps {
    display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0;
    position: absolute; left: 0; bottom: 0; width: 400px; z-index: 30;
  }
  .step-btn {
    display: grid; grid-template-columns: 34px 1fr auto; align-items: center; width: 100%; min-height: 34px; padding: 4px 0;
    text-align: left; font-size: 15px; font-weight: 600; letter-spacing: -0.03em; color: rgba(23, 23, 23, 0.45);
    transition: color var(--st-dur-quick) var(--st-ease);
  }
  .step-btn .sn { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
  .step-btn .sw { font-size: 13px; font-weight: 500; }
  .step-btn .sbar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: rgba(23, 23, 23, 0.08); margin-top: 6px; overflow: hidden; }
  .step-btn .sbar i { display: block; height: 100%; background: var(--st-ink); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
  .step-btn.is-on { color: var(--st-ink); }
  .step-btn:hover { color: var(--st-ink); }
  .story--live .story-cue { bottom: 28px; left: auto; right: 48px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .story *, .story *::before, .story *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
