/* PR Alchemy v2 — Our Story, blended module (shared base). Scoped to #our-story. Tokens come from the v2 page (:root). */
#our-story{--mono:'Share Tech Mono',ui-monospace,monospace;--edge:max(22px,5vw);--maxw:1240px;position:relative;background:#000;z-index:2;padding:120px 0 96px;overflow-x:clip}
#our-story img{display:block;max-width:100%}
html[lang="es"] #our-story [data-l="en"],html:not([lang="es"]) #our-story [data-l="es"]{display:none!important}
#our-story .osb-head{text-align:center;max-width:720px;margin:0 auto 64px;padding:0 22px}
#our-story .osb-head .section-title{margin-bottom:14px}
#our-story .osb-head p{color:#b3b3b3;font-size:clamp(15px,1.25vw,17px);line-height:1.6;margin:0 auto;text-wrap:pretty}
/* chapter words, on the page (no panel) */
#our-story .osb-copy h3{font-family:var(--font-display);font-weight:700;font-size:clamp(22px,2.1vw,30px);line-height:1.15;letter-spacing:-.01em;color:#fff;margin:0 0 14px;text-wrap:balance}
#our-story .osb-copy p{color:#d0d0d0;font-size:clamp(16px,1.15vw,18px);line-height:1.6;margin:0;max-width:44ch;text-wrap:pretty}
#our-story .ac{font-family:var(--font-cursive);font-weight:700;text-transform:none;letter-spacing:.01em;color:var(--aqua);font-size:1.22em;line-height:.8}
#our-story .osb-copy p .ac{font-size:1.3em}
#our-story [data-ac=gold] .ac{color:var(--gold)}
#our-story [data-ac=white] .ac{color:#fff}
/* the frame: no rectangle. Its edges dissolve into the page's black (two masks intersected), a soft brand glow sits behind it */
#our-story .osb-media,#our-story .osb-stage{position:relative;margin:0}
#our-story .osb-media img,#our-story .osb-pic img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
#our-story .osb-media img,#our-story .osb-pic img{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 74%,transparent 100%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 74%,transparent 100%);mask-composite:intersect}
#our-story [data-tone] {--glow:91,201,221}
#our-story [data-tone=gold]{--glow:217,194,39}
/* after the story */
#our-story .osx-about{text-align:left;margin:96px auto 0;padding:0 22px;max-width:calc(65ch + 44px);font-size:17px}
#our-story .osx-about .eyebrow{justify-content:flex-start;margin-bottom:18px}
#our-story .osx-about p{color:#b8b8b8;font-size:clamp(16px,1.2vw,18px);line-height:1.6;max-width:65ch;margin:0 0 1em}
#our-story .osx-more summary{cursor:pointer;color:var(--aqua);font-family:var(--font-display);font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;list-style:none;display:inline-flex;align-items:center;gap:10px;min-height:44px;transition:color .2s ease}
#our-story .osx-more summary:hover{color:#fff}
#our-story .osx-more summary::-webkit-details-marker{display:none}
#our-story .osx-more summary::after{content:"+";font-size:18px;line-height:1}
#our-story .osx-more[open] summary::after{content:"–"}
#our-story .osx-more summary:focus-visible{outline:2px solid var(--aqua);outline-offset:4px}
#our-story .osx-more[open] summary{margin-bottom:12px}
#our-story .osx-about:focus{outline:none}
#our-story .skip-story{position:absolute;left:16px;top:12px;z-index:30;padding:8px 14px;background:#000;color:var(--aqua);font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;border:1px solid var(--aqua);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#our-story .skip-story:focus,#our-story .skip-story:focus-visible{clip-path:none;width:auto;height:auto;overflow:visible;outline:2px solid var(--aqua);outline-offset:3px}
body.os-in #tempChip{opacity:0!important;visibility:hidden!important;transition:opacity .25s ease,visibility 0s .25s}
/* Direction A — "Develop": editorial rows in the page flow, grouped into 5 story chapters.
   Side rows: photo + words, sides alternating, text vertically centered. Every 4th row is a
   wide photograph (~80% width) with its words over the faded foot. Each photograph develops
   from a faint grey print into colour once, in 600ms, when it is 20% into the viewport.
   Nothing is pinned. The words never move. */
#our-story.osb-a{--os-h:24px;--os-fade:9%}
@media(min-width:900px){#our-story.osb-a{--os-h:clamp(28px,2.1vw,32px)}}

/* type: override the shared base for this direction only */
#our-story.osb-a .osb-head{margin-bottom:48px}
#our-story.osb-a .osx-about{margin-top:72px}
#our-story.osb-a .osb-copy h3{font-size:var(--os-h);line-height:1.15;margin:0 0 12px;color:#fff}
#our-story.osb-a .osb-copy p{font-size:17px;line-height:1.6;color:#d9d9d9;max-width:420px}
#our-story.osb-a .osb-copy .ac,#our-story.osb-a .osb-copy p .ac{font-size:calc(var(--os-h)*1.1);line-height:1}

/* one mask, same 9% fade on all four sides, every photograph (overrides the base's uneven mask) */
#our-story.osb-a .osb-media img{
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--os-fade),#000 calc(100% - var(--os-fade)),transparent 100%),
                     linear-gradient(to bottom,transparent 0,#000 var(--os-fade),#000 calc(100% - var(--os-fade)),transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 var(--os-fade),#000 calc(100% - var(--os-fade)),transparent 100%),
             linear-gradient(to bottom,transparent 0,#000 var(--os-fade),#000 calc(100% - var(--os-fade)),transparent 100%);
  mask-composite:intersect;
}

/* no extended backdrop, no bleed, no glow box (a glow here read as a rectangle) */
#our-story.osb-a .osb-media{margin:0!important}
#our-story.osb-a .osb-media::before{content:none;display:none}

/* rhythm: 120px between rows; labels are out of flow so they sit in the gap and do not add a second gap */
#our-story.osb-a .osb-rows{max-width:var(--maxw);margin:0 auto;padding:28px var(--edge) 0;display:flex;flex-direction:column;gap:120px}
#our-story.osb-a .osb-part{position:relative;display:flex;flex-direction:column;gap:120px}
#our-story.osb-a .osb-label{position:absolute;left:0;top:0;margin:0;transform:translateY(calc(-100% - 4px));z-index:2}
#our-story.osb-a .osb-label [data-l]{margin:0;font-family:var(--font-display);font-weight:700;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--aqua)}

/* side rows: 420px text column, 64px gutter, photo takes the rest, cap so the row stays shorter than a wide frame */
#our-story.osb-a .osb-ch[data-side]{display:grid;align-items:center;width:100%;max-width:960px;margin-inline:auto}
#our-story.osb-a .osb-ch[data-side=photo-left]{grid-template-columns:minmax(0,1fr) 64px 420px}
#our-story.osb-a .osb-ch[data-side=photo-left] .osb-media{grid-column:1}
#our-story.osb-a .osb-ch[data-side=photo-left] .osb-text{grid-column:3}
#our-story.osb-a .osb-ch[data-side=photo-right]{grid-template-columns:420px 64px minmax(0,1fr)}
#our-story.osb-a .osb-ch[data-side] .osb-media,#our-story.osb-a .osb-ch[data-side] .osb-text{grid-row:1}
#our-story.osb-a .osb-ch[data-side=photo-right] .osb-media{grid-column:3}
#our-story.osb-a .osb-ch[data-side=photo-right] .osb-text{grid-column:1}

/* wide rows: ~80% of the section, words over the faded foot */
#our-story.osb-a .osb-ch.is-wide{display:flex;flex-direction:column;align-items:flex-start;width:80%;max-width:992px;margin-inline:auto}
#our-story.osb-a .osb-ch.is-wide .osb-media{width:100%}
#our-story.osb-a .osb-ch.is-wide .osb-text{max-width:420px;margin-top:8px;position:relative;z-index:1;padding:0 8px}

/* S01: the standing silhouette gets air above its head (the source frame's bunk almost touches the top fade) */
#our-story.osb-a #os-S01 .osb-media{aspect-ratio:16/9;width:100%;position:relative}
#our-story.osb-a #os-S01 .osb-media img{position:absolute;left:4%;width:92%;height:auto;aspect-ratio:16/9;bottom:0;top:auto;object-fit:contain}

/* develop: colour starts at 20% in view, 600ms. No zoom. */
#our-story.osb-a .osb-media img{transition:filter 600ms ease,opacity 600ms ease}
#our-story.osb-a.is-live .osb-ch:not(.is-in) .osb-media img{filter:grayscale(1) contrast(.62) brightness(1.5) sepia(.08);opacity:.18}
#our-story.osb-a.is-live .osb-ch.is-in .osb-media img{filter:none;opacity:1}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  #our-story.osb-a.is-live .osb-ch.is-in .osb-media img:hover{filter:brightness(1.06)}
}

@media(max-width:899px){
  #our-story.osb-a .osb-rows{gap:64px;padding:24px 0 0}
  #our-story.osb-a .osb-part{gap:64px}
  #our-story.osb-a .osb-head{margin-bottom:32px}
  #our-story.osb-a .osb-ch[data-side],#our-story.osb-a .osb-ch.is-wide{
    display:flex;flex-direction:column;align-items:stretch;gap:8px;max-width:none;width:100%;margin:0
  }
  #our-story.osb-a .osb-media{width:100%}
  #our-story.osb-a .osb-ch[data-side=photo-right] .osb-media{order:0}
  #our-story.osb-a .osb-ch[data-side=photo-right] .osb-text{order:1}
  #our-story.osb-a .osb-text{padding:0 22px;margin-top:0!important}
  #our-story.osb-a .osb-label{left:22px}
  #our-story.osb-a .osb-ch.is-wide .osb-text{margin-top:0!important}
}

@media(prefers-reduced-motion:reduce){
  #our-story.osb-a,#our-story.osb-a *{transition:none!important;animation:none!important}
  #our-story.osb-a .osb-media img{filter:none!important;opacity:1!important}
  body.os-in #tempChip{transition:none!important}
}
