.story-reveal-layout {
  display:grid;
  grid-template-columns:minmax(0, .42fr) minmax(0, .58fr);
  align-items:center;
  gap:clamp(32px, 5vw, 72px);
}
.story-reveal-copy { min-width:0; }
.story-reveal-copy .story-section-header { margin-bottom:28px; }
.story-reveal-copy .story-section-header p:not(.story-eyebrow) { font-size:16px; line-height:1.6; }
.story-reveal-tabs { display:grid; gap:8px; }
.story-reveal-tab {
  position:relative;
  display:block;
  width:100%;
  padding:12px 18px 12px 22px;
  border:1px solid transparent;
  border-radius:16px;
  background:transparent;
  text-align:left;
  color:var(--theme-muted);
  font:inherit;
  cursor:pointer!important;
  transition:background .2s, border-color .2s, color .2s;
}
.story-reveal-tab::before {
  content:"";
  position:absolute;
  top:22px;
  bottom:22px;
  left:0;
  width:2px;
  border-radius:2px;
  background:var(--theme-text);
  opacity:0;
}
.story-reveal-tab:hover { background:var(--theme-surface); color:var(--theme-text); }
.story-reveal-tab[aria-selected="true"] { background:var(--theme-surface); border-color:var(--theme-line); color:var(--theme-text); }
.story-reveal-tab[aria-selected="true"]::before { opacity:1; }
.story-reveal-tab-title { display:block; font-size:20px; font-weight:500; line-height:1.35; }
.story-reveal-tab-description { display:block; margin-top:4px; font-size:16px; line-height:1.5; color:var(--theme-muted); }
.story-reveal-tab:focus-visible,.story-reveal-panel:focus-visible { outline:2px solid var(--theme-text); outline-offset:4px; }
.story-reveal-display { min-width:0; width:100%; }
.story-reveal-panel { width:min(100%, 38svh, 420px); margin-inline:auto; }
.story-reveal-comparison .story-reveal-panel { width:min(100%, 41svh, 420px); }
.story-reveal-media {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:465/946;
  object-fit:contain;
  background:transparent;
  border-radius:0;
  filter:drop-shadow(0 22px 28px rgba(0,0,0,.14));
}
.story-reveal-comparison .story-reveal-media { aspect-ratio:487/924; background:transparent; }
.story-reveal-playback { margin-top:22px; }
.story-reveal-panel[hidden],.story-reveal-playback[hidden] { display:none; }
.story-reveal-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
body:has(.story-reveal-tab:hover) .site-cursor { opacity:0; }
@media(max-width:999px) {
  .story-reveal-layout { grid-template-columns:minmax(0,1fr); gap:36px; }
  .story-reveal-panel,.story-reveal-comparison .story-reveal-panel { width:min(100%,390px); }
  .story-reveal-tab { padding:15px 14px 15px 18px; }
  .story-reveal-media { border-radius:0; }
}
@media(max-width:699px) {
  .story-reveal-layout { grid-template-columns:1fr; gap:32px; }
  .story-reveal-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .story-reveal-tab { height:100%; min-height:64px; padding:12px; border-color:var(--theme-line); }
  .story-page .story-reveal-tab-title { font-size:16px; }
  .story-page .story-reveal-tab-description { display:none; }
  .story-reveal-comparison .story-reveal-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .story-reveal-panel,.story-reveal-comparison .story-reveal-panel { width:100%; max-width:390px; }
  .story-reveal-playback { margin-top:16px; }
}
@media(prefers-reduced-motion:reduce) { .story-reveal-tab { transition:none; } }

/* Quiet text choices; only the selected destination takes a glass surface. */
.story-reveal-glass .story-reveal-tabs {
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.story-reveal-glass .story-reveal-tab {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  height:auto;
  /* Let the pill extend into the gutter; its text shares the header baseline. */
  width:calc(100% + 20.5px);
  margin-inline-start:-20.5px;
  padding:12px 20px;
  border:.5px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--theme-muted);
  text-align:left;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  transition:color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.story-reveal-glass .story-reveal-tab::before,
.story-reveal-glass .story-reveal-tab::after { display:none; }
.story-page .story-reveal-glass .story-reveal-tab-title { font-size:16px; font-weight:400; line-height:1.4; }
.story-reveal-glass .story-reveal-tab[aria-selected="true"] {
  color:var(--theme-text);
  background:linear-gradient(165deg,rgba(255,255,255,.2),rgba(255,255,255,.035) 38%,rgba(255,255,255,.08) 80%,rgba(255,255,255,.16)),var(--theme-glass);
  border-color:var(--theme-rim);
  box-shadow:inset 0 .5px 0 var(--theme-rim), inset 0 -.5px 0 var(--theme-rim), inset 0 3px 4px -2px var(--theme-rim), inset 0 -3px 4px -2px var(--theme-rim), 0 5px 16px var(--theme-shadow);
  backdrop-filter:blur(18px) saturate(1.2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
}
.story-reveal-glass .story-reveal-tab[aria-selected="true"] .story-reveal-tab-title { font-weight:500; }
:root[data-theme="dark"] .story-reveal-glass .story-reveal-tab[aria-selected="true"] {
  background:var(--glass-sheen),var(--glass-fill);
  border-color:var(--glass-border);
  box-shadow:var(--glass-inset),0 3px 9px var(--theme-shadow);
}
.story-reveal-glass .story-reveal-tab:hover { color:var(--theme-text); }
.story-reveal-glass .story-reveal-tab:active { transform:scale(.98); }
.story-reveal-glass .story-reveal-tab-description { display:none; }
.story-reveal-description {
  margin:2px 0 10px;
  overflow:hidden;
  color:var(--theme-muted);
  font-size:16px;
  line-height:1.6;
  text-wrap:wrap;
}
.story-reveal-description[hidden] { display:none; }
.story-reveal-glass .story-reveal-description { font-size:14px; line-height:1.5; }
.story-reveal-glass .story-reveal-playback { margin-top:20px; }

/* Four individual nodes form the same clockwise acquisition loop. */
.story-engagement-cycle { position:relative; margin-top:36px; }
.story-engagement-loop {
  --loop-column-gap:80px;
  --loop-row-gap:64px;
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:"join engage" "invite earn";
  grid-auto-rows:1fr;
  gap:var(--loop-row-gap) var(--loop-column-gap);
  margin:0;
  padding:0;
  list-style:none;
}
.story-engagement-loop > li {
  position:relative;
  min-width:0;
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:24px 32px;
  border:.5px solid var(--theme-line);
  border-radius:999px;
  background:linear-gradient(165deg,rgba(255,255,255,.1),rgba(255,255,255,.02) 60%,rgba(255,255,255,.08)),var(--theme-glass);
  box-shadow:inset 0 .5px 0 var(--theme-rim), inset 0 -.5px 0 var(--theme-rim), 0 4px 16px var(--theme-shadow);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.story-engagement-loop > li:nth-child(1) { grid-area:join; }
.story-engagement-loop > li:nth-child(2) { grid-area:engage; }
.story-engagement-loop > li:nth-child(3) { grid-area:earn; }
.story-engagement-loop > li:nth-child(4) { grid-area:invite; }
.story-engagement-loop h3 { margin:0; font-size:var(--story-heading-size,20px); line-height:var(--story-heading-line-height,1.35); font-weight:500; letter-spacing:-.02em; }
.story-engagement-loop p { max-width:none; margin:8px 0 0; color:var(--theme-muted); font-size:16px; line-height:1.6; }
.story-engagement-loop > li::before,
.story-engagement-loop > li::after { content:""; position:absolute; pointer-events:none; }
.story-engagement-loop > li::after { background:var(--theme-line); }
.story-engagement-loop > li::before { width:7px; height:7px; border-top:1px solid var(--theme-muted); border-right:1px solid var(--theme-muted); }
.story-engagement-loop > li:nth-child(1)::after { left:100%; top:50%; width:var(--loop-column-gap); height:.5px; }
.story-engagement-loop > li:nth-child(1)::before { left:calc(100% + var(--loop-column-gap) / 2); top:50%; transform:translate(-50%,-50%) rotate(45deg); }
.story-engagement-loop > li:nth-child(2)::after { left:50%; top:100%; width:.5px; height:var(--loop-row-gap); }
.story-engagement-loop > li:nth-child(2)::before { left:50%; top:calc(100% + var(--loop-row-gap) / 2); transform:translate(-50%,-50%) rotate(135deg); }
.story-engagement-loop > li:nth-child(3)::after { right:100%; top:50%; width:var(--loop-column-gap); height:.5px; }
.story-engagement-loop > li:nth-child(3)::before { right:calc(100% + var(--loop-column-gap) / 2); top:50%; transform:translate(50%,-50%) rotate(225deg); }
.story-engagement-loop > li:nth-child(4)::after { left:50%; bottom:100%; width:.5px; height:var(--loop-row-gap); }
.story-engagement-loop > li:nth-child(4)::before { left:50%; bottom:calc(100% + var(--loop-row-gap) / 2); transform:translate(-50%,50%) rotate(315deg); }
@media(max-width:699px) {
  .story-reveal-glass .story-reveal-tabs { gap:8px; }
  .story-engagement-loop { --loop-column-gap:40px; --loop-row-gap:40px; }
  .story-engagement-loop > li { padding:24px; border-radius:32px; }
}
@media(max-width:479px) {
  .story-engagement-cycle { padding-left:24px; }
  .story-engagement-cycle::before {
    content:"";
    position:absolute;
    left:0;
    top:74px;
    bottom:74px;
    width:24px;
    border:.5px solid var(--theme-line);
    border-right:0;
    border-radius:18px 0 0 18px;
    pointer-events:none;
  }
  .story-engagement-cycle::after {
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:7px;
    height:7px;
    border-top:1px solid var(--theme-muted);
    border-right:1px solid var(--theme-muted);
    transform:translate(-50%,-50%) rotate(315deg);
    pointer-events:none;
  }
  .story-engagement-loop { --loop-row-gap:44px; grid-template-columns:1fr; grid-template-areas:"join" "engage" "earn" "invite"; }
  .story-engagement-loop > li { min-height:148px; padding:20px; }
  .story-engagement-loop p { max-width:none; }
  .story-engagement-loop > li:not(:last-child)::after { inset:auto; left:50%; top:100%; width:.5px; height:var(--loop-row-gap); }
  .story-engagement-loop > li:not(:last-child)::before { inset:auto; left:50%; top:calc(100% + var(--loop-row-gap) / 2); transform:translate(-50%,-50%) rotate(135deg); }
  .story-engagement-loop > li:last-child::before,
  .story-engagement-loop > li:last-child::after { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .story-reveal-glass .story-reveal-tab,
  .story-reveal-glass .story-reveal-tab::after { transition:none; }
  .story-reveal-glass .story-reveal-tab:active { transform:none; }
}

.story-reveal-display { position:relative; }
.story-reveal-media { filter:none; }

/* Acquisition evidence is concise; supporting community context is optional. */
[data-project-story] .story-reveal-result { display:flex; align-items:flex-start; gap:16px; margin:0 0 24px; color:var(--theme-text); }
[data-project-story] .story-reveal-result strong { font-size:var(--story-title-size); font-weight:500; line-height:1.2; letter-spacing:-.025em; }
[data-project-story] .story-reveal-result span { font-size:var(--story-body-size); line-height:1.5; }
[data-project-story] .story-reveal-result small { display:block; font-size:14px; color:var(--theme-muted); }
[data-project-story] .story-community-evidence { margin:0 0 28px; font-size:var(--story-body-size); line-height:1.5; color:var(--theme-muted); }
[data-project-story] .story-community-evidence summary { color:var(--theme-text); cursor:pointer; text-underline-offset:4px; }
[data-project-story] .story-community-evidence summary:hover { text-decoration:underline; }
[data-project-story] .story-community-evidence summary:focus-visible { outline:2px solid var(--theme-muted); outline-offset:5px; border-radius:4px; }
[data-project-story] .story-community-evidence p { margin:16px 0 0; }
[data-project-story] .story-community-evidence a { color:var(--theme-text); text-underline-offset:3px; }
[data-project-story] .story-community-evidence .story-community-source { font-size:14px; }
