/* About · one screen per act (lab, not linked from the site).
   The page itself scrolls through empty, snapping steps; everything you see
   is fixed, and moves from that scroll through a spring (about-onepage-lab.js). */
html { scroll-snap-type:y mandatory }
body.op { --accent:#a24e2c; --ink:#292826; --soft:#444340; --muted:#5a5955; --line:#29282633; --ease:cubic-bezier(.22,.8,.2,1); background:var(--paper, #c4c4c4); overflow-x:hidden }
.op .site-header { position:fixed; top:0; left:0; right:0; z-index:30 }
.op-steps { position:relative; z-index:0 }
.op-step { height:100svh; scroll-snap-align:start; scroll-snap-stop:always }
.op-step--phone { display:none }
.op-main { position:fixed; inset:0; z-index:10; pointer-events:none }
.op-main a, .op-main button, .op-main input, .op-main textarea, .op-form, .op-rail { pointer-events:auto }

/* The stage: every painting sits on one band round a jar, drawn on a single
   canvas (about-onepage-lab.js). The images below only feed it. Its top and
   bottom edges fade and soften exactly as the project page's ring does
   (ring.css .vessel-stage); the script sets where the edges are (--et, --eb)
   and how deep the fade runs (--ed), which is none while the whole jar shows. */
.op-stage { --et:0px; --eb:100vh; --ed:0px; --edge-blur:clamp(5px,.54vw,12px); position:absolute; inset:0;
  -webkit-mask-image:var(--edge-mask); mask-image:var(--edge-mask);
  --edge-mask:linear-gradient(to bottom,
    transparent 0, transparent calc(var(--et) + var(--ed)*.06),
    rgb(0 0 0 / .14) calc(var(--et) + var(--ed)*.25),
    rgb(0 0 0 / .64) calc(var(--et) + var(--ed)*.56), black calc(var(--et) + var(--ed)),
    black calc(var(--eb) - var(--ed)), rgb(0 0 0 / .64) calc(var(--eb) - var(--ed)*.56),
    rgb(0 0 0 / .14) calc(var(--eb) - var(--ed)*.25),
    transparent calc(var(--eb) - var(--ed)*.06), transparent 100%) }
.op-stage canvas { position:absolute; inset:0; width:100%; height:100% }
.op-stage::before, .op-stage::after { content:""; position:absolute; z-index:1; inset-inline:0; height:var(--ed); pointer-events:none;
  -webkit-backdrop-filter:blur(var(--edge-blur)); backdrop-filter:blur(var(--edge-blur));
  -webkit-mask-image:linear-gradient(var(--inward), black 0%, black 37%, rgb(0 0 0 / .78) 58%, transparent 100%);
  mask-image:linear-gradient(var(--inward), black 0%, black 37%, rgb(0 0 0 / .78) 58%, transparent 100%) }
.op-stage::before { top:var(--et); --inward:to bottom }
.op-stage::after { top:calc(var(--eb) - var(--ed)); --inward:to top }
.op-band { position:absolute; width:0; height:0; overflow:hidden; visibility:hidden }
.op-band img, .op-band canvas { display:block; height:var(--band-px, 400px); width:auto; max-width:none }

/* Text changes in place: one block shown at a time, no rising. */
.op-texts { position:absolute; right:7vw; width:30vw; top:118px; bottom:96px }
.op-text { position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); opacity:0; visibility:hidden; transition:opacity .14s ease, visibility 0s linear .14s }
.op-text.is-on { opacity:1; visibility:visible; transition:opacity .6s ease .24s, visibility 0s }
.op-text h2 { font-size:clamp(22px,1.8vw,30px); font-weight:500; line-height:1.55; margin:0 0 22px; color:var(--ink) }
.op-text p { font-size:clamp(15px,1.1vw,18px); line-height:1.95; color:var(--soft); margin:0 0 14px; text-wrap:pretty }
.op-text--hero { position:fixed; left:0; right:0; top:110px; width:auto; transform:none; text-align:center }
.op-text--hero h1 { font-size:clamp(26px,2.8vw,40px); font-weight:500; line-height:1.4; white-space:nowrap; margin:0 0 14px; color:var(--ink) }
.op-text--hero p { font-size:clamp(14px,1.05vw,17px); margin:0 }
.op-cue { position:fixed; left:0; right:0; bottom:20px; text-align:center; font-size:13px; color:var(--muted) }

/* Team and the last screen fade in once the jar has gone. */
.op-team, .op-end { position:absolute; opacity:0; visibility:hidden; transition:opacity .5s ease, visibility 0s linear .5s }
.op-main[data-view^="team"] .op-team, .op-main[data-view="end"] .op-end { opacity:1; visibility:visible; transition:opacity .7s ease .2s, visibility 0s }
.op-end { left:5.5vw; right:9vw; top:118px; bottom:60px }

/* Team: the four side by side, standing on one line like figures on a
   frieze; who each is reads underneath. */
.op-team { --art:clamp(170px,31vh,310px); left:6vw; right:8vw; top:72px; bottom:0; display:flex; flex-direction:column; justify-content:center; gap:clamp(28px,5.5vh,64px) }
.op-team-head { display:flex; align-items:baseline; gap:28px; flex-wrap:wrap }
.op-team-head h2 { font-size:clamp(24px,1.9vw,32px); font-weight:500; margin:0; color:var(--ink) }
.op-team-head p { font-size:clamp(15px,1.15vw,19px); color:var(--ink); margin:0 }
.op-people { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 3.2vw }
.op-people::after { content:""; position:absolute; left:0; right:0; top:var(--art); height:1px; background:var(--ink); opacity:.32 }
.op-person { display:flex; flex-direction:column; min-width:0; opacity:0; transition:opacity .45s ease }
.op-main[data-view^="team"] .op-person { opacity:1; transition:opacity .8s ease calc(.3s + var(--n, 0) * .12s) }
.op-person:nth-child(2) { --n:1 } .op-person:nth-child(3) { --n:2 } .op-person:nth-child(4) { --n:3 }
.op-person-art { height:var(--art); display:flex; align-items:flex-end; justify-content:center; margin-bottom:24px }
.op-person-art img, .op-person-art canvas.about-painted { height:100%; max-width:100%; object-fit:contain; object-position:50% 100%; display:block }
.op-person-art img[data-painted="true"] { display:none !important }
.op-person h3 { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; font-size:clamp(19px,1.45vw,24px); font-weight:500; margin:0 0 8px; color:var(--ink) }
.op-person h3 span { font-size:13px; font-weight:400; color:var(--muted); margin:0 }
.op-duty { font-size:clamp(14px,1vw,16px); line-height:1.7; color:var(--ink); margin:0 0 10px }
.op-past { font-size:clamp(12.5px,.88vw,14px); line-height:1.85; color:var(--soft); margin:0; text-wrap:pretty }
.op-young { font-size:14px; color:var(--soft); margin:0 }

.op-end { display:grid; grid-template-columns:1fr 1.3fr; gap:6vw; align-content:center }
.op-end h2 { font-size:clamp(22px,1.7vw,28px); font-weight:500; margin:0 0 18px }
.op-notes a { display:flex; justify-content:space-between; gap:20px; padding:18px 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none; font-size:16px }
.op-notes a:last-child { border-bottom:1px solid var(--line) }
.op-form { display:grid; grid-template-columns:1fr 1fr; gap:16px 24px }
.op-form h2, .op-form > p { grid-column:1/-1; margin:0 } .op-form > p { color:var(--soft); margin-top:-8px }
.op-form label { display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted) }
.op-form .op-wide { grid-column:1/-1 }
.op-form input, .op-form textarea { font:inherit; font-size:15px; background:transparent; border:0; border-bottom:1px solid var(--line); padding:8px 0; color:var(--ink) }
.op-form .op-privacy { grid-column:1; font-size:12px; color:var(--muted) }
.op-form button { grid-column:2; justify-self:end; padding:12px 22px; background:var(--ink); color:#f6f1eb; border:0; font:inherit; cursor:pointer }
.op-form button:disabled { opacity:.6; cursor:default }
.op-form .about-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
.op-form .about-form-status { grid-column:1/-1; margin:0; min-height:1.6em; font-size:13px; color:var(--soft) }
.op-form .about-form-status[data-state="error"] { color:var(--accent) }

/* Chapter rail on the right edge: dots; a chapter's name shows on hover. */
.op-rail { position:absolute; right:20px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:flex-end; gap:6px; transition:opacity .4s }
.op-main[data-view="hero"] .op-rail { opacity:0; pointer-events:none }
.op-rail button { display:flex; align-items:center; justify-content:flex-end; gap:10px; background:none; border:0; padding:5px 0; cursor:pointer; color:var(--muted); font:inherit; font-size:12px; line-height:1.4 }
.op-rail span { opacity:0; padding:2px 8px; background:var(--paper, #c4c4c4); transition:opacity .25s }
.op-rail button:hover span, .op-rail button:focus-visible span { opacity:1 }
.op-rail i { order:2; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.45; transition:transform .3s var(--ease), opacity .3s }
.op-rail button.is-on { color:var(--accent) } .op-rail button.is-on i { opacity:1; transform:scale(1.5) }

@media (prefers-reduced-motion:reduce){ .op-stage, .op-text, .op-team, .op-end { transition:none !important } }

/* Line breaks marked d-br hold on wide screens only (handover spec). */
.d-br { display:inline }
@media (max-width:640px){ .d-br { display:none } }

/* Phones, upright: the jar on top, the text under it, anchored to the
   bottom; the painting takes whatever height its act's text leaves. The team
   takes two screens, two people each. */
@media (max-width:760px){
  .op-step--phone { display:block }
  .op-texts { left:18px; right:18px; width:auto; top:auto; bottom:20px; height:0 }
  .op-text { top:auto; bottom:0; transform:none }
  .op-text h2 { font-size:19px; line-height:1.5; margin-bottom:12px }
  .op-text p { font-size:14.5px; line-height:1.8; margin-bottom:8px }
  .op-text--hero { top:84px; bottom:auto; padding:0 18px }
  .op-text--hero h1 { white-space:normal; font-size:25px; text-wrap:balance }
  .op-text--hero p { font-size:14px; line-height:1.8 }
  .op-rail { display:none }
  .op-team { --art:clamp(132px,23vh,210px); left:18px; right:18px; top:70px; bottom:20px; justify-content:flex-start; gap:22px }
  .op-team-head { flex-direction:column; align-items:flex-start; gap:6px }
  .op-team-head h2 { font-size:21px } .op-team-head p { font-size:14px; line-height:1.7 }
  .op-people { grid-template-columns:1fr; gap:26px }
  .op-people::after { display:none }
  .op-person { display:grid; grid-template-columns:38% minmax(0,1fr); gap:16px; align-items:end }
  .op-person-art { margin:0; border-bottom:1px solid #29282655 }
  .op-person h3 { font-size:18px; margin-bottom:4px }
  .op-duty { font-size:13.5px; margin-bottom:6px } .op-past { font-size:12.5px; line-height:1.7 }
  .op-main[data-half="a"] .op-person:nth-child(n+3), .op-main[data-half="b"] .op-person:nth-child(-n+2), .op-main[data-half="a"] .op-young { display:none }
  .op-main[data-view^="team"] .op-person:nth-child(3) { --n:0 } .op-main[data-view^="team"] .op-person:nth-child(4) { --n:1 }
  .op-end { left:18px; right:18px; top:70px; bottom:16px; grid-template-columns:1fr; gap:26px; align-content:start }
  .op-end h2 { font-size:19px; margin-bottom:8px }
  .op-notes a { padding:12px 0; font-size:14px }
  .op-form { grid-template-columns:1fr; gap:12px }
  .op-form button, .op-form .op-privacy { grid-column:1 } .op-form button { justify-self:start }
}
