/* Story (source: /about): scrolls vertically. A B/W portrait first, then the roles line, the giant name over a
   slideshow, a rotated label with the bio in columns, a press quote, and the credits timeline on a dark band. */
.portrait { height: 100vh; height: 100svh; position: relative; display: flex; justify-content: center; background: var(--ground); overflow: hidden; }
.portrait img { height: 100%; width: auto; max-width: none; object-fit: cover; }
/* load: portrait and scroll cue fade in over 2s */
.portrait img, .portrait .down { animation: fade-in 2s var(--swing) both; }
@keyframes fade-in { from { opacity: 0; } }
/* arriving from the home click: the portrait already faded in on the home panel, so it is simply there (a second
   fade read as a flash, Shahar 30.11); then the page glides down to the intro (site.js), as in the source */
.from-home .portrait img, .from-home .portrait .down { animation: none; }
/* the band that closes the portrait screen (as in the source, where a strip of the home photo shows between the
   portrait and the intro): a 16px strip of Peki'in in black and white */
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 16px; z-index: 1; background: url("../img/bg/01-C01.webp") 50% 62% / cover no-repeat; filter: grayscale(1) contrast(1.05) brightness(.78); opacity: 0; transition: opacity .35s ease; }
.band-on .portrait::after { opacity: 1; }   /* shown only once the page starts moving down (Shahar 30.11) */
.band-gone .portrait::after { display: none; }   /* gone once the page has moved on to the intro, and it stays gone */
.portrait .down { position: absolute; bottom: 16px; z-index: 2; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; color: var(--ink); background: var(--ground); padding: 8px 14px 0; }
.portrait .down::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--ink), var(--ink)) 0 -28px / 1px 28px no-repeat, rgba(38, 32, 28, .2); animation: cue-drop 2s cubic-bezier(.65, 0, .35, 1) 1.2s infinite; }
@keyframes cue-drop { 0% { background-position: 0 -28px, 0 0; } 70%, 100% { background-position: 0 60px, 0 0; } }   /* the story's scroll cue lives (Shahar 29.11) */
@media (prefers-reduced-motion: reduce) { .portrait .down::after { animation: none; background: var(--ink); } }

/* the source's composition (/about .about_title_slider, measured at 1707px): a 1200px block; the photo takes 59.5%
   of it at the far side (left here), 3:2; the name sits over the photo layer from the near side (right), its last
   letters running about 10% of the block into the photo, its baseline 2.8% above the photo's bottom; the roles 78px
   above the name (Shahar 29.11, replacing the earlier "do not touch the photos") */
.intro { position: relative; width: min(1200px, calc(100% - 120px)); margin: 0 auto; padding: 140px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.intro > .who, .intro > .slides { grid-area: 1 / 1; }
.intro .who { position: relative; z-index: 2; justify-self: start; margin-bottom: 2.8%; pointer-events: none; }
.intro .roles { margin: 0 0 clamp(8px, .9vw, 16px); font-size: 15px; color: var(--faint); letter-spacing: .06em; }   /* close over the name (Shahar 29.11) */
/* each role fills with the brand red from the right under the pointer, like the menu words */
.intro .roles span { --base: var(--faint); --fill: var(--accent); color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(to left, var(--fill) 50%, var(--base) 50%) 0 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-position .45s var(--swing); cursor: default; pointer-events: auto; }   /* .who lets the pointer through to the slides; the words take it back */
.intro .roles span:hover { background-position: 100% 0; }
.intro .roles span + span::before { content: "/"; padding: 0 8px; -webkit-text-fill-color: var(--faint); color: var(--faint); }
/* the Hebrew name is shorter than the source's, so it is set a little larger (6vw vs 5.45vw) to reach the same overlap */
.intro h1 { margin: 0; font-family: var(--display); font-size: clamp(52px, 6vw, 112px); line-height: 1; letter-spacing: .3em; white-space: nowrap; }
.slides { position: relative; width: 59.5%; justify-self: end; aspect-ratio: 3 / 2; background: var(--surface); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--swing); }
.slides img.on { opacity: 1; }
.slides .ctl { position: absolute; bottom: -34px; left: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--faint); }
.slides .ctl button { width: 30px; height: 20px; display: grid; place-items: center; color: var(--faint); }
.slides .ctl button:hover { color: var(--ink); }
.slides .ctl svg { width: 24px; height: 10px; stroke: currentColor; fill: none; }

.bio { max-width: 1280px; margin: 0 auto; padding: 80px 60px 40px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; }
.bio .label { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .08em; color: var(--support); align-self: start; justify-self: center; } /* margin-top set in site.js: beside the first paragraph's middle */
/* two columns read right then left: the bio, then Emil's own words about businesses ending with the call */
.bio .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; font-size: 16.5px; line-height: 1.75; }
.bio .cols p { margin: 0 0 18px; }
.bio .cols .call { margin-top: 26px; font-weight: 500; }
.bio .go { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 4px; font-weight: 500; font-size: 13px; letter-spacing: .04em; border: 1px solid var(--ink); padding: 6px 14px; transition: background-color .3s ease-in-out, color .3s ease-in-out; }
.bio .go:hover { background: var(--ink); color: var(--ground); }
.bio .quote { grid-column: 1 / -1; font-family: var(--display); font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; margin: 0 0 30px; }
.bio .quote span { color: var(--accent); }
/* Emil's own words (his Facebook post), in the bio's type and one bio column wide, then the five steps */
.pitch { max-width: 1280px; margin: 0 auto; padding: 0 60px 90px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; }
.pitch > div { grid-column: 2; }
/* the steps: a hairline draws across from the right, each drawing traces itself in turn, then loops quietly
   (the bulb's rays breathe, REC blinks, the clapper claps, the playhead scrubs, the file floats) */
.steps { --s: 88px; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; top: calc(var(--s) / 2); right: 10%; left: 10%; height: 1px; background: rgba(38, 32, 28, .22); transform: scaleX(0); transform-origin: right; transition: transform 2.2s cubic-bezier(.65, 0, .35, 1); }
.steps.in::before { transform: none; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; --d: calc(var(--i) * .38s); }
.steps svg { width: var(--s); height: var(--s); padding: 6px; background: var(--ground); color: var(--ink); overflow: visible; }
.steps .d { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) calc(var(--d) + .25s); }
.steps .d.ac { stroke: var(--accent); }
.steps.in .d { stroke-dashoffset: 0; }
.steps span { font-size: 15px; letter-spacing: .02em; opacity: 0; transform: translateY(8px); transition: opacity .6s ease calc(var(--d) + .7s), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d) + .7s); }
.steps.in span { opacity: 1; transform: none; }
.steps .rec { fill: var(--accent); opacity: 0; }
.steps .rays, .steps .arm, .steps .ph, .steps .file { transform-box: fill-box; }
.steps.in .rays { animation: st-breathe 2.6s ease-in-out calc(var(--d) + 1.5s) infinite; }
.steps.in .rec { animation: st-rec 1.4s steps(1) calc(var(--d) + 1.4s) infinite both; }
.steps .arm { transform-origin: 0 100%; }
.steps.in .arm { animation: st-clap 3.2s cubic-bezier(.3, 0, .2, 1) calc(var(--d) + 1.5s) infinite; }
.steps.in .ph { animation: st-scrub 3.4s ease-in-out calc(var(--d) + 1.5s) infinite alternate; }
.steps.in .file { animation: st-float 2.8s ease-in-out calc(var(--d) + 1.5s) infinite alternate; }
@keyframes st-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes st-rec { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes st-clap { 0%, 55% { transform: none; } 70%, 80% { transform: rotate(-16deg); } 88%, 100% { transform: none; } }
@keyframes st-scrub { from { transform: none; } to { transform: translateX(-28px); } }
@keyframes st-float { from { transform: none; } to { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .steps::before, .steps .d, .steps span { transition: none; }
  .steps.in .rays, .steps.in .rec, .steps.in .arm, .steps.in .ph, .steps.in .file { animation: none; }
  .steps .rec { opacity: 1; }
}
.press { max-width: 1280px; margin: 0 auto; padding: 20px 60px 90px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; }
.press .label { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .08em; color: var(--support); align-self: start; justify-self: center; } /* same line as "על אמיל" (Shahar); margin-top from site.js: beside the quote's middle */
.press blockquote { margin: 0; max-width: 62ch; border-inline-start: 2px solid var(--accent); padding-inline-start: 22px; }
.press blockquote p { margin: 0 0 10px; font-size: 19px; line-height: 1.6; }
.press cite { font-style: normal; font-size: 14px; color: var(--support); }

/* the channels he filmed for: one quiet row in grey, the colour comes back under the pointer (touch screens get the
   colour). multiply melts the white baked into some files into the ground; the logos fade up in turn on arrival */
.nets { max-width: 1280px; margin: 0 auto; padding: 0 60px 90px; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 24px; align-items: center; }
.nets .label { writing-mode: vertical-rl; margin: 0; font-family: inherit; font-weight: 400; font-size: 12px; letter-spacing: .08em; color: var(--support); justify-self: center; }
.nets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 46px; }
.nets li { display: flex; transition: opacity .7s var(--swing) calc(var(--i) * 80ms), transform .7s var(--swing) calc(var(--i) * 80ms); }
.nets img { display: block; width: auto; max-width: none; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); opacity: .7; transition: filter .35s ease-in-out, opacity .35s ease-in-out; }
.nets li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .nets img { filter: none; opacity: 1; } }
.nets.wait li { opacity: 0; transform: translateY(12px); }
.nets.wait.in li { opacity: 1; transform: none; }

/* Credits timeline (source: /about timeline): an 800px band, a photo from one production of the year under a 60%
   veil; the year column sits at the start edge (right) with a white marker on its border */
.timeline { position: relative; height: 800px; background: var(--ink); color: #fff; overflow: hidden; }
.timeline .bgs, .timeline .bg { position: absolute; inset: 0; }
.timeline .bg { background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity .6s var(--swing); }
.timeline .bg.on { opacity: 1; }
/* a year's own photos change slowly (one per production, every 5.2s) and the credit it belongs to lights up */
.timeline .bg.slow { transition-duration: 1.4s; transition-timing-function: ease-in-out; }
.timeline .pane li { transition: opacity .8s ease-in-out; }
.timeline .pane ul:has(li.cur) li:not(.cur) { opacity: .6; }
.timeline .bgs::after { content: ""; position: absolute; inset: 0; background: rgba(15, 12, 10, .6); }
.timeline .years { position: absolute; top: 0; bottom: 0; right: 0; width: max(10%, 130px); border-inline-end: 1px solid rgba(255, 255, 255, .5); z-index: 2; }
.timeline .years ol { list-style: none; margin: 0; padding: 28px 0; height: 100%; display: flex; flex-direction: column; justify-content: space-around; }
.timeline .years button { display: block; width: 100%; text-align: right; padding: 2px 0; padding-inline-start: 40px; font-family: var(--latin); font-size: 20px; letter-spacing: .08em; color: #fff; opacity: .5; transition: opacity .3s ease-in-out; }
.timeline .years li.on button, .timeline .years button:hover { opacity: 1; }
.timeline .pill { position: absolute; top: 0; left: -3.5px; width: 6px; height: 23px; border-radius: 3px; background: #fff; transition: transform .8s var(--out-cubic); }
.timeline .panes { position: absolute; top: 0; bottom: 0; left: 0; right: max(10%, 130px); z-index: 1; }
.timeline .pane { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px 9% 60px 7%; opacity: 0; visibility: hidden; transition: opacity .6s var(--swing), visibility .6s; }
.timeline .pane.on { opacity: 1; visibility: visible; }
.timeline .yr { margin: 0 0 34px; font-family: var(--latin); font-size: clamp(96px, 10vw, 150px); line-height: .85; letter-spacing: .04em; }
.timeline .pane ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 56px; max-width: 920px; }
.timeline .pane li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.timeline .net { grid-row: span 2; width: 52px; height: 34px; object-fit: contain; background: #fff; border-radius: 4px; padding: 5px 6px; }
.timeline .net.none { background: transparent; }
.timeline .pane b { font-family: var(--display); font-size: 26px; line-height: 1.1; font-weight: 700; }
.timeline .pane .role { font-size: 14px; color: #E2DBD4; }
.timeline .next { align-self: flex-start; margin-top: 40px; font-size: 14px; letter-spacing: .1em; color: #fff; opacity: .75; transition: opacity .3s ease-in-out; }
.timeline .next:hover { opacity: 1; }

/* reveal, once, after a full screen of scrolling (source: body.animate on /about) */
.js .story-main > :not(.portrait), .js .story-main ~ .foot-site { opacity: 0; transition: opacity 1s ease-in-out; }
.js .intro .roles { opacity: 0; transform: translateX(50px); transition: opacity 1s ease-in-out, transform 1s ease-in-out; }
.js .intro h1 { opacity: 0; transform: translateY(50px); transition: opacity 1.3s ease-in-out, transform 1.3s ease-in-out; }
.js .slides { opacity: 0; transform: translateY(-20px); transition: opacity 1s ease-in-out, transform 1s ease-in-out; }
.revealed .story-main > :not(.portrait), .revealed .story-main ~ .foot-site, .revealed .intro .roles, .revealed .intro h1, .revealed .slides { opacity: 1; transform: none; }

/* press: link to the full article; the article page */
.press cite { display: block; }
.press .more { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 26px; font-weight: 500; font-size: 13px; letter-spacing: .04em; border: 1px solid var(--ink); padding: 6px 14px; transition: background-color .3s ease-in-out, color .3s ease-in-out; }
.press .more:hover { background: var(--ink); color: var(--ground); }
.article-page { padding: 150px 24px 90px; }
.art { max-width: 68ch; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.art .kicker { margin: 0 0 10px; font-size: 14px; letter-spacing: .1em; color: #B33C1F; } /* the accent darkened to 5.3:1 for small text */
.art h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(38px, 4.4vw, 62px); line-height: 1.08; letter-spacing: .04em; text-wrap: balance; }
.art .deck { margin: 0 0 18px; font-size: 21px; line-height: 1.5; color: var(--support); }
.art .lead { margin: 0 0 14px; font-weight: 500; }
.art .by, .art .sig { font-size: 14px; color: var(--support); letter-spacing: .04em; }
.art .by { margin: 0 0 40px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.art h2 { margin: 44px 0 12px; font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: .04em; }
.art p { margin: 0 0 18px; }
.art .src { margin-top: 40px; font-size: 13px; color: var(--support); }
/* accessibility / privacy pages */
.legal-text ul { margin: 0 0 18px; padding-inline-start: 1.2em; }
.legal-text li { margin-bottom: 10px; }
.legal-text .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--rule); font-size: 16px; }
.legal-text .facts dt { color: var(--support); }
.legal-text .facts dd { margin: 0; }
.legal-text .facts dd[dir="ltr"], .legal-text .facts a[dir="ltr"] { text-align: right; unicode-bidi: isolate; }
.legal-text a { text-decoration: underline; text-underline-offset: 3px; }

/* Quote (source: about's centred quote between the timeline and the MOTION / STILLS pair). Words rise in one by one
   when the block scrolls into view; site.js splits the line into .w spans and adds .in. */
.said { padding: clamp(90px, 13vw, 190px) 24px; display: flex; justify-content: center; text-align: center; overflow: hidden; }
.said blockquote { margin: 0; max-width: 980px; }
.said .mark { display: block; font-family: var(--latin); font-size: 96px; line-height: .6; height: .45em; color: var(--accent); transform: scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.said p { margin: 26px 0 22px; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 54px); line-height: 1.25; letter-spacing: .06em; text-wrap: balance; }
.said .w { display: inline-block; opacity: 0; transform: translateY(.7em); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms + 150ms); }
.said cite { display: block; font-style: normal; font-size: 14px; letter-spacing: .12em; color: var(--support); opacity: 0; transition: opacity .6s ease 1.1s; }
.said.in .mark { transform: none; opacity: 1; }
.said.in .w { opacity: 1; transform: none; }
.said.in cite { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .said .mark, .said .w, .said cite { transition: none; transform: none; opacity: 1; }
}

/* Bottom (source: about's MOTION / STILLS pair): two half-width 3:2 tiles, a 30% dark veil that deepens to 60% on hover */
.tiles { display: flex; flex-wrap: wrap; }
.tiles a { position: relative; width: 50%; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.tiles img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tiles span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(21, 17, 15, .3); transition: background .3s ease-in-out; }
.tiles b { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 4.9vw, 70px); letter-spacing: .1em; padding-inline-start: .1em; line-height: 1; }
.tiles a:hover span, .tiles a:focus-visible span { background: rgba(21, 17, 15, .6); }
.tiles a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

@media (max-width: 1024px) {
  .portrait { height: 84svh; }
  .intro { width: auto; grid-template-columns: 1fr; padding: 60px 20px 50px; gap: 26px; align-items: start; }
  .intro > .who, .intro > .slides { grid-area: auto; }
  .intro .who { margin: 0; justify-self: stretch; }
  .intro .roles { margin-bottom: 18px; font-size: 13px; }
  .slides { width: 100%; }
  .intro h1 { font-size: 54px; letter-spacing: .16em; margin: 0; white-space: normal; }
  .bio, .press, .pitch { grid-template-columns: 1fr; padding-inline: 20px; }
  .pitch > div { grid-column: auto; }
  .bio .cols { grid-template-columns: 1fr; }
  .bio .go { min-height: 44px; padding: 10px 18px; }
  .steps { --s: 54px; margin-top: 48px; }
  .steps svg { padding: 3px; }
  .steps span { font-size: 12.5px; letter-spacing: 0; }
  .bio .label, .press .label { writing-mode: horizontal-tb; }
  .nets { grid-template-columns: 1fr; gap: 18px; padding: 0 20px 70px; }
  .nets .label { writing-mode: horizontal-tb; justify-self: start; }
  .nets ul { gap: 22px 30px; }
  .timeline { height: auto; }
  .timeline .years { position: relative; width: auto; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); }
  .timeline .years ol { flex-direction: row; overflow-x: auto; padding: 16px 12px 10px; gap: 4px; scrollbar-width: none; }
  .timeline .years button { padding: 10px 12px; font-size: 18px; }
  /* touch targets of at least 44px: slideshow arrows, the article button */
  .slides .ctl { bottom: -48px; gap: 4px; }
  .slides .ctl button { width: 44px; height: 44px; }
  .intro { padding-bottom: 76px; }
  .press .more { min-height: 44px; padding: 10px 18px; }
  .timeline .pill { display: none; }
  .timeline .panes { position: relative; right: auto; }
  .timeline .pane { position: relative; display: none; padding: 34px 20px 44px; }
  .timeline .pane.on { display: flex; }
  .timeline .yr { font-size: 84px; margin-bottom: 24px; }
  .timeline .pane ul { grid-template-columns: 1fr; gap: 16px; }
  .js .intro h1 { transform: none; }
  .tiles a { width: 100%; }
}
