/* fegaofovwe.com: OFF STREAM page, second build (2026-11-20, his notes: "so boring", look at Lando's Off Track and do
   better). Uses live.css for the theme (--hbg, --hfg, --hot) and the footer.
   The idea: one picture at a time, big against small, left against right, lots of air, a caption on each. Huge chapter
   words the first picture of each chapter sits on. His own photography runs sideways as a film strip.
   Every picture keeps its own shape (--ar on each button): nothing is cropped, his rule. */
.ot{--ease:cubic-bezier(0.23,1,0.32,1);overflow-x:clip}
.ot-wrap,.ot-top,.ot-ch,.ot-say{max-width:1720px;margin-inline:auto;padding-inline:var(--gutter)}
.off-page > .wordmark{color:var(--hfg)}

/* ---- opener: OFF / STREAM huge, his swing standing over the words ---- */
.ot-top{position:relative;padding-top:clamp(96px,13svh,150px);min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:clamp(28px,6svh,70px)}
.ot-title{margin:0;font-weight:800;font-variation-settings:"wdth" 78;text-transform:uppercase;letter-spacing:-.045em;line-height:.8;font-size:clamp(5.2rem,23vw,25rem);position:relative;z-index:0}
.ot-title b,.ot-title span{display:block;font-weight:inherit}
.ot-title span{color:var(--hot)}
body[data-bg="black"] .ot-title span{color:var(--hot-lit)}
.ot-hero{position:absolute;z-index:1;right:calc(var(--gutter) + 3%);top:clamp(90px,12svh,140px);width:min(31%,520px);margin:0;will-change:transform}
.ot-lede{margin:clamp(18px,3svh,32px) 0 0;max-width:22ch;font-weight:700;font-size:clamp(1.05rem,1.5vw,1.4rem);line-height:1.25}

/* ---- the statement: words light up as you scroll, a small photo flies across them ---- */
.ot-say{position:relative;padding-block:clamp(90px,16svh,200px)}
.ot-big{position:relative;z-index:0;max-width:14em;margin:0 auto;text-align:center;font-weight:800;font-variation-settings:"wdth" 82;text-transform:uppercase;letter-spacing:-.03em;line-height:.92;font-size:clamp(2.3rem,6.8vw,7rem)}
.ot-big em{font-style:normal;color:var(--hot)}
body[data-bg="black"] .ot-big em{color:var(--hot-lit)}
.ot-big .w{opacity:.14;transition:opacity 260ms ease}
.ot-big .w.lit{opacity:1}
.ot-fly{position:absolute;z-index:1;left:0;top:50%;width:clamp(110px,12vw,210px);margin:0;pointer-events:none;will-change:transform;transform:translate3d(-30vw,-50%,0) rotate(-6deg)}
.ot-fly img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 18px 40px oklch(0.1 0 0 / .28)}

/* ---- chapters ---- */
.ot-ch{padding-top:clamp(110px,18svh,230px)}
.ot-hd{position:relative;z-index:0}
/* number and one line sit above the huge word; the first picture then sits on the word's lower half */
.ot-meta{display:flex;align-items:baseline;gap:clamp(14px,1.6vw,24px);margin-bottom:clamp(10px,1.4vw,20px)}
.ot-n{display:block;font-weight:800;font-size:clamp(.85rem,1.05vw,1.05rem);letter-spacing:.08em;color:var(--hot)}
body[data-bg="black"] .ot-n{color:var(--hot-lit)}
.ot-word{margin:0;font-weight:800;font-variation-settings:"wdth" 78;text-transform:uppercase;letter-spacing:-.045em;line-height:.8;font-size:clamp(4rem,17vw,19rem)}
.ot-line{margin:0;font-weight:700;font-size:clamp(1rem,1.3vw,1.25rem);max-width:30ch}
.ot-flow{position:relative;z-index:1;display:flow-root}
/* --w, --x, --mt are in % of the page width (margins in % are measured on the width, so the layout scales as one piece) */
.ot-f{width:calc(var(--w) * 1%);margin:calc(var(--mt) * 1%) 0 0 calc(var(--x) * 1%)}
.ot-f figcaption,.ot-fr figcaption{font-weight:800;font-size:clamp(.66rem,.75vw,.78rem);letter-spacing:.07em;text-transform:uppercase;line-height:1;margin-bottom:.8em}
.ot-f .os-it{aspect-ratio:var(--ar)}
/* the first picture of a chapter sits on the big word, so its caption goes underneath instead of onto the letters */
.ot-flow > .ot-f:first-child{display:flex;flex-direction:column-reverse}
.ot-flow > .ot-f:first-child figcaption{margin:.8em 0 0}

/* pictures: the same tile on the whole page; click one to see it big */
.os-it{display:block;width:100%;padding:0;border:0;background:var(--tile);border-radius:10px;overflow:hidden;cursor:zoom-in;outline:1px solid color-mix(in oklch,var(--hfg) 10%,transparent);outline-offset:-1px}
.ot-hero .os-it{aspect-ratio:var(--ar)}
.os-it img,.os-it video{display:block;width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--ease)}
.os-it:focus-visible{outline:3px solid var(--hot);outline-offset:3px}
@media (hover:hover) and (pointer:fine){.os-it:hover img,.os-it:hover video{transform:scale(1.03)}}
.os-it:active{transform:scale(.985);transition:transform 160ms var(--ease)}

/* ---- Shot by me: a dark band (it flips on the dark theme), the strip runs sideways while you scroll down ---- */
.ot-film{position:relative;margin-top:clamp(110px,18svh,230px);background:var(--hfg);color:var(--hbg)}
.ot-pin{position:sticky;top:0;height:100svh;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:clamp(18px,3svh,36px);padding-block:clamp(70px,9svh,110px) clamp(24px,4svh,48px)}
.ot-film .ot-hd{display:flex;align-items:flex-end;gap:clamp(14px,2vw,28px);padding-inline:var(--gutter);max-width:1720px;width:100%;margin-inline:auto}
.ot-film .ot-n{margin:0 0 .5em}
.ot-film .ot-word{font-size:clamp(3rem,9vw,9.5rem)}
.ot-count{margin:0 0 .35em auto;font-weight:800;font-size:clamp(1rem,1.4vw,1.4rem);font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ot-count b{color:var(--hot)}
/* every frame is the same height (--fh) and as wide as its own shape: width = height x shape */
.ot-track{--fh:min(52svh,580px);display:flex;align-items:flex-start;gap:clamp(18px,2vw,32px);padding-inline:var(--gutter);will-change:transform}
.ot-fr{flex:none;width:calc(var(--fh) * var(--ar));margin:0}
.ot-fr .os-it{height:var(--fh);outline-color:color-mix(in oklch,var(--hbg) 12%,transparent)}
.ot-fr figcaption{margin:.9em 0 0;display:flex;gap:.8em}
.ot-fr figcaption b{color:var(--hot)}
body[data-bg="black"] .ot-film :is(.ot-count b,.ot-fr figcaption b,.ot-n){color:var(--hot)}

/* the big view */
.os-big{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,40px);background:oklch(0.09 0 0 / .94);cursor:zoom-out}
.os-big[hidden]{display:none}
.os-big img,.os-big video{max-width:100%;max-height:100%;border-radius:10px}

/* ---- phones: still one picture at a time, alternating sides; the strip is swiped ---- */
@media (max-width:760px){
  .ot-top{min-height:auto;padding-top:110px}
  .ot-title{font-size:27vw}
  .ot-hero{position:relative;top:auto;right:auto;width:62%;margin:-14vw 0 0 auto}
  .ot-word{font-size:clamp(3.2rem,19vw,7rem)}
  .ot-f{width:calc(min(100, var(--w) * 1.6) * 1%);margin:28px 0 0}
  .ot-f.r{margin-left:auto}
  .ot-flow > .ot-f:first-child{margin-top:-10px}
  .ot-pin{position:relative;height:auto;padding-block:64px 40px}
  .ot-track{--fh:300px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;transform:none!important}
  .ot-track::-webkit-scrollbar{display:none}
  .ot-fr{scroll-snap-align:center}
  .ot-count{display:none}
}
@media (prefers-reduced-motion:reduce){
  .ot-pin{position:relative;height:auto}
  .ot-track{overflow-x:auto;transform:none!important}
  .ot-big .w{opacity:1}
  .ot-fly{display:none}
}

/* 2026-11-21, his pick: "When the camera goes off, I..." (trails into the pictures). Short line, so it runs bigger */
#ot-say{max-width:none;font-size:clamp(2.9rem,10vw,10.5rem);text-wrap:balance}
#ot-say em{display:inline}

/* (his note 2026-11-22, consistency: on EVERY chapter the first picture overlaps only the bottom 20 to 35% of the big
   word, never half of it. Tied to the word's own size, so it holds at every width.) */
.ot-ch{--word:clamp(4rem,17vw,19rem)}
.ot-ch .ot-flow > .ot-f:first-child{margin-top:calc(var(--word) * -.1)}
@media (max-width:760px){.ot-ch{--word:clamp(3.2rem,19vw,7rem)}.ot-ch .ot-flow > .ot-f:first-child{margin-top:calc(var(--word) * -.1)}}

/* 2026-11-22, his notes on phones: (1) the top photo sits in the middle, cropped so HE is in the middle of it;
   (2) Shot by me shows dots under the strip so people know to swipe, the current photo's dot lit */
.ot-dots{display:none}
@media (max-width:760px){
  .ot-hero{width:62%;margin:-14vw auto 0}
  .ot-hero .os-it{aspect-ratio:.55}
  .ot-hero .os-it img{object-position:0% 50%}
  .ot-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
  .ot-dots button{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:currentColor;opacity:.3;cursor:pointer;
    transition:width 220ms cubic-bezier(0.23,1,0.32,1),opacity 220ms ease}
  .ot-dots button.on{width:22px;opacity:1;background:var(--hot)}
  .ot-dots button::before{content:"";display:block;width:24px;height:24px;margin:-8px 0 0 -8px}   /* a bigger target for thumbs */
}

