/* ============ Bagman — base ============ */
:root{
  --bg:#1c1b1a;
  --ink:#f2ede4;
  --mute:rgba(242,237,228,.62);
  --paper:#e9e3d8;
  --paper-ink:#1a1715;
  --paper-mute:#8b8278;
  --accent:#d9622b;
  --gold:#f3d27c;            /* title colour, picked from the lamp light in the hero photo */
  --ease:cubic-bezier(.2,.8,.2,1);
  --gut:max(28px,env(safe-area-inset-left,0px));
}
/* OS Stopper: used for every Hebrew character on the site (unicode-range keeps English in Raleway) */
@font-face{font-family:"OS Stopper";src:url(../assets/fonts/OS_Stopper-LightCondensed.otf) format("opentype");font-weight:300 500;font-display:swap;unicode-range:U+0590-05FF,U+FB1D-FB4F,U+20AA}
@font-face{font-family:"OS Stopper";src:url(../assets/fonts/OS_Stopper-BoldCondensed.otf) format("opentype");font-weight:600 800;font-display:swap;unicode-range:U+0590-05FF,U+FB1D-FB4F,U+20AA}
*{box-sizing:border-box;min-width:0}
html,body{height:100%;margin:0;background:var(--bg);color:var(--ink);overflow:hidden}
body{font:400 15px/1.5 "OS Stopper",Raleway,system-ui,sans-serif;font-variant-numeric:lining-nums;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
img{display:block;max-width:100%}

/* ============ Layers ============ */
/* the photo shows at once (as a plain background) until the WebGL scene is ready on top of it */
.stage{position:fixed;inset:0;z-index:0;background:#252525 url(../assets/hero.webp) center/cover no-repeat;
  transition:opacity 1.6s var(--ease),filter 1.4s var(--ease),transform 1.6s var(--ease)}
/* first paint: no transitions at all, so nothing animates in (main.js removes this class) */
html.no-intro *,html.no-intro *::before,html.no-intro *::after{transition:none!important}
.stage.is-live{opacity:1;filter:none;transform:none;background:none}
.stage canvas{display:block;width:100%;height:100%}
html.is-away .stage.is-live,html.is-away .stage{filter:blur(14px) brightness(.95) saturate(1.15);transform:scale(1.06)}
.veil{position:fixed;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 90% at 50% 45%,rgba(20,14,10,.05),rgba(10,8,6,.5));opacity:0;transition:opacity 1s var(--ease)}
html.is-away .veil{opacity:1}
.crt{position:fixed;inset:0;z-index:40;width:100%;height:100%;pointer-events:none;mix-blend-mode:soft-light;opacity:.14}
body::after{content:"";position:fixed;inset:0;z-index:41;pointer-events:none;
  border-radius:28px;box-shadow:inset 0 0 0 10px #000,inset 0 0 120px 40px rgba(0,0,0,.6)}

/* ============ Header ============ */
.header{position:fixed;z-index:30;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;
  padding:max(32px,calc(env(safe-area-inset-top,0px) + 10px)) var(--gut) 0;font-size:14px;letter-spacing:-.01em}
/* glow + soft blur on all light text, like the reference */
:root{--glow:0 0 .35em rgba(255,248,236,.55),0 0 1.1em rgba(255,240,220,.28),0 0 2.4em rgba(255,236,210,.12)}
.header,.portfolio,.contacts{text-shadow:var(--glow)}
.brand{display:flex;align-items:center;margin:-6px 0 -10px}
.brand img{width:clamp(48px,4.2vw,72px);height:auto;filter:brightness(0) invert(1) blur(.4px) drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 6px rgba(255,255,255,.6)) drop-shadow(0 0 22px rgba(255,236,190,.4));
  animation:breathe-img 4.5s ease-in-out infinite alternate}
@keyframes breathe-img{to{filter:brightness(0) invert(1) blur(.4px) drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 9px rgba(255,255,255,.75)) drop-shadow(0 0 34px rgba(255,226,160,.6))}}
.nav a{filter:blur(.25px)}
.nav{display:flex;gap:22px}
.nav a{opacity:.72;transition:opacity .3s}
.nav a:hover,.nav a.is-on{opacity:1}
.nav a.is-on{font-weight:600}
/* work page: the header stays plain white with the same glow (no colour inversion) */

/* ============ Sections (one visible at a time) ============ */
main>section{position:fixed;inset:0;z-index:10;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .8s var(--ease),visibility 0s .8s}
main>section.is-current{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .8s var(--ease),visibility 0s}

/* goo text: melts in from blur */
@property --bloom{syntax:"<number>";inherits:true;initial-value:.35}
.goo{display:inline-block;opacity:0;transform:translateY(.25em) scale(1.04);
  filter:url(#goo) blur(10px) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
  transition:filter 1.4s var(--ease),opacity 1.2s var(--ease),transform 1.4s var(--ease)}
.hero.is-current:not(.is-waiting) .goo{opacity:1;transform:none;
  filter:url(#goo) blur(0) drop-shadow(0 0 .0086em color-mix(in srgb,currentColor 55%,transparent))
    drop-shadow(0 0 .02em color-mix(in srgb,currentColor 35%,transparent))
    drop-shadow(0 0 .16em color-mix(in srgb,currentColor calc(var(--bloom) * 100%),transparent))}
.hero__title{color:var(--gold);animation:bloom 3.8s ease-in-out 2s infinite alternate}
@keyframes bloom{from{--bloom:.32}to{--bloom:.62}}
.hero__tag .goo:nth-child(1){transition-delay:.16s}.hero__tag .goo:nth-child(2){transition-delay:.22s}.hero__tag .goo:nth-child(3){transition-delay:.28s}

/* ============ Hero ============
   Sizes follow the reference: a 1920px-wide design where 1u = 10px,
   so everything scales with the window width. */
:root{--u:calc(100vw / 192)}
.hero{pointer-events:none!important}
.hero__scroll{filter:drop-shadow(0 0 4px rgba(255,255,255,.35)) drop-shadow(0 0 14px rgba(255,230,180,.22))}
/* edge halo (reference: rotating conic gradients masked to the screen edges), warm tone */
.glow{--g1:#f3d27c;--g2:#ff8a4c;--g3:#ff6f9c;--g4:#ffc46b;--g5:#fff1cf;position:fixed;inset:0;z-index:35;pointer-events:none;overflow:hidden;
  opacity:0;transition:opacity 1.6s var(--ease);
  --m:linear-gradient(90deg,#000,rgba(0,0,0,.55) 8px,rgba(0,0,0,.16) 22px,transparent 44px,transparent calc(100% - 44px),rgba(0,0,0,.16) calc(100% - 22px),rgba(0,0,0,.55) calc(100% - 8px),#000);
  -webkit-mask:var(--m),linear-gradient(180deg,#000,rgba(0,0,0,.55) 8px,rgba(0,0,0,.16) 22px,transparent 44px,transparent calc(100% - 44px),rgba(0,0,0,.16) calc(100% - 22px),rgba(0,0,0,.55) calc(100% - 8px),#000);
  mask:var(--m),linear-gradient(180deg,#000,rgba(0,0,0,.55) 8px,rgba(0,0,0,.16) 22px,transparent 44px,transparent calc(100% - 44px),rgba(0,0,0,.16) calc(100% - 22px),rgba(0,0,0,.55) calc(100% - 8px),#000)}
.glow::before,.glow::after{content:"";position:absolute;inset:-60%}
.glow::before{background:conic-gradient(from 0deg,var(--g1),var(--g2) 22%,var(--g3) 45%,var(--g4) 68%,var(--g5) 84%,var(--g1));opacity:.8;animation:glow-turn 15s linear infinite}
.glow::after{background:conic-gradient(from 120deg,var(--g5),transparent 12%,var(--g3) 24%,transparent 38%,var(--g1) 52%,transparent 64%,var(--g4) 78%,transparent 90%,var(--g5));mix-blend-mode:screen;
  animation:glow-turn 9s linear infinite reverse,glow-breathe 3.2s ease-in-out infinite alternate}
@keyframes glow-turn{to{rotate:1turn}}
@keyframes glow-breathe{from{opacity:.45}to{opacity:1}}
html.is-live-hero:not(.on-case) .glow{opacity:.55}
html.is-surge .glow{opacity:1;transition-duration:.5s}
@media (prefers-reduced-motion:reduce){.glow::before,.glow::after,.hero__title,.brand img{animation:none}}
/* leaving the hero: the two halves drift apart as they blur out */
.hero__name,.hero__tag{transition:transform 1.2s var(--ease)}
.hero:not(.is-current) .hero__name{transform:translateY(-4vh)}
.hero:not(.is-current) .hero__tag{transform:translateY(4vh)}
.hero:not(.is-current) .goo{transition-duration:.7s;transition-delay:0s!important}
.hero a{pointer-events:auto}
/* the title: one centred lockup below our faces (they are at ~25–38% of the frame height), above the scroll hint.
   "BAGMEN" in Raleway caps; under it "Creative & Content" in Raleway, tight like the reference's display title.
   --hs is the hero's type unit: it follows the width but never grows past what the height allows. */
.hero__title{--hs:min(var(--u),.85svh);position:absolute;left:0;right:0;bottom:calc(3.2 * var(--u) + var(--logo-band) + 80px);margin:0;
  display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--gold)}
.hero__name{font-weight:600;font-size:calc(19 * var(--hs));line-height:.8;letter-spacing:-.035em;padding-right:.035em}
.hero__tag{display:flex;align-items:baseline;gap:.22em;margin-top:calc(2.6 * var(--hs));font-weight:500;font-size:calc(7.4 * var(--hs));line-height:1;letter-spacing:-.045em;color:var(--ink)}
.hero__tag .goo{padding-right:.045em}
.hero__amp{font-weight:300;font-style:italic;font-size:1.05em;color:var(--gold);letter-spacing:0}
/* scroll hint: two dots over a bouncing arrow, softly see-through, with the same white glow as the text */
.hero__scroll{position:absolute;left:0;right:0;margin-inline:auto;width:max-content;bottom:calc(6.3 * var(--u));
  display:flex;flex-direction:column;align-items:center;gap:7px;padding:6px 10px;color:rgba(255,250,242,.72);transition:color .5s}
.hero__scroll:hover{color:#fff}
.hero__dots{display:flex;flex-direction:column;align-items:center;gap:6px}
/* the dots light up one after the other, top to bottom, in time with the arrow */
.hero__dots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.35;
  box-shadow:0 0 6px rgba(255,248,236,.7),0 0 14px rgba(255,240,220,.3);animation:hint-dot 1.8s ease-in-out infinite}
.hero__dots i+i{animation-delay:.22s}
@keyframes hint-dot{0%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(2px)}}
.hero__arrow{width:max(calc(2.4 * var(--u)),22px);height:max(calc(2.4 * var(--u)),22px);fill:none;stroke:rgba(255,250,242,.72);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;overflow:visible;
  filter:drop-shadow(0 0 4px rgba(255,248,236,.55)) drop-shadow(0 0 12px rgba(255,240,220,.28));animation:hint-bob 1.8s ease-in-out infinite}
@keyframes hint-bob{50%{transform:translateY(3px)}}
@media (max-width:800px){
  /* phones: the photo is a band in the middle (hero.js sets --hero-band-*); the name above it, the line below it */
  .hero__title{inset:0;bottom:0;display:block}
  .hero__name{position:absolute;left:0;right:0;bottom:calc(100% - var(--hero-band-top,30%) + 10px);font-size:clamp(50px,17vw,100px)}
  .hero__tag{position:absolute;left:0;right:0;justify-content:center;top:calc(var(--hero-band-bot,70%) + 12px);margin:0;font-size:clamp(26px,8.4vw,44px)}
  .hero__scroll{bottom:max(36px,calc(env(safe-area-inset-bottom,0px) + 20px))}
}

/* ============ Portfolio strip ============ */
/* filters and caption sit at the screen centre; strip.js moves them with the 3D camera */
/* type scale copied from the reference: 1r = 1/192 of the screen width (phones: 1/39) */
:root{--r:calc(100vw / 192);--dim:rgba(255,255,255,.6)}
@media (orientation:portrait),(max-width:767px){:root{--r:min(2.5641vw,1.18483svh)}}
.filters{position:absolute;left:0;right:0;top:50%;height:30px;margin-top:-15px;display:flex;justify-content:center;align-items:center;gap:max(calc(1.5 * var(--r)),10px);
  font-size:max(calc(1.8 * var(--r)),13px);line-height:max(calc(2.3 * var(--r)),17px);letter-spacing:-.06em;z-index:3;will-change:transform,opacity;text-shadow:none}
.filters button{color:var(--dim);padding-right:.06em;transition:color .4s var(--ease)}
.filters button:hover,.filters button.is-on{color:#fff}
.filters button.is-on:not(.view){font-weight:500}
.filters__sep{width:calc(4.8 * var(--r) - 2 * max(calc(1.5 * var(--r)),10px))}
.filters .view{padding:calc(.4 * var(--r))}
.filters .view + .view{margin-left:calc(.6 * var(--r) - max(calc(1.5 * var(--r)),10px))}
.filters .view.is-on{outline:1px solid var(--dim);outline-offset:calc(.4 * var(--r))}
.view svg{fill:none;stroke:currentColor;stroke-width:1px;vector-effect:non-scaling-stroke;display:block;width:max(calc(2.2 * var(--r)),16px);height:max(calc(1.4 * var(--r)),10px)}
.view svg *{vector-effect:non-scaling-stroke}
.strip{position:absolute;inset:0;overflow:hidden;touch-action:pan-y}
.strip__canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.strip.is-pointing{cursor:pointer}
.strip.is-drag{cursor:grabbing}
.portfolio:not(.is-grid) .strip__track{display:none}
.portfolio.is-grid .strip__canvas{display:none}
.focus{display:none!important}
main>section.portfolio{transition:opacity .25s,visibility 0s .25s}
main>section.portfolio.is-current{transition:opacity .25s,visibility 0s}
.strip__track{position:absolute;left:50%;top:50%;transform-style:preserve-3d}
.card{position:absolute;left:0;top:0;width:var(--cw);aspect-ratio:9/16;margin:calc(var(--cw)*-.8889) 0 0 calc(var(--cw)*-.5);
  border-radius:6px;overflow:hidden;background:#111;will-change:transform;transform-origin:50% 50%;box-shadow:0 30px 60px -20px rgba(0,0,0,.6)}
.card img,.card video{width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.card video{position:absolute;inset:0;opacity:0;transition:opacity .4s}
.card.is-playing video{opacity:1}
/* grid view: same look as the strip, the clip blurred and dimmed with the client logo on top */
.card>img:not(.card__logo),.card>video{filter:blur(9px) brightness(.62) saturate(1.15);transform:scale(1.1);transition:filter .5s var(--ease),opacity .4s}
/* grid view, under the mouse: a lighter blur and a slowly breathing logo */
.card:hover>img:not(.card__logo),.card:hover>video{filter:blur(5px) brightness(.7) saturate(1.15)}
.card:hover .card__logo{animation:logo-breathe 2.6s ease-in-out infinite}
@keyframes logo-breathe{0%,100%{scale:1.03}50%{scale:1.08}}
.card__sub{position:absolute;left:0;right:0;top:calc(50% + 9.5%);z-index:1;text-align:center;font:500 clamp(13px,1.1vw,18px)/1 "OS Stopper",Raleway,sans-serif;
  letter-spacing:.04em;color:#fff;text-shadow:none}
.card:has(.card__sub) .card__logo{transform:translateY(-22%)}
.card{overflow:hidden}
.card__logo{position:absolute;inset:0;margin:auto;width:64%!important;height:16%!important;object-fit:contain!important;z-index:1;
  filter:brightness(0) invert(1)}
.card__tag{position:absolute;top:10px;left:10px;font-size:11px;padding:3px 8px;border-radius:20px;background:rgba(0,0,0,.45);backdrop-filter:blur(6px)}
:root{--cw:clamp(170px,19vw,280px)}
.focus{position:absolute;left:50%;top:50%;width:calc(var(--cw) + 26px);aspect-ratio:9/16;height:auto;transform:translate(-50%,-50%);pointer-events:none;z-index:2;transition:opacity .4s}
.focus{height:calc(var(--cw)*1.7778 + 26px);aspect-ratio:auto}
.focus i{position:absolute;width:12px;height:12px;border-color:rgba(255,255,255,.85);border-style:solid;border-width:0}
.focus i:nth-child(1){left:0;top:0;border-left-width:1px;border-top-width:1px}
.focus i:nth-child(2){right:0;top:0;border-right-width:1px;border-top-width:1px}
.focus i:nth-child(3){left:0;bottom:0;border-left-width:1px;border-bottom-width:1px}
.focus i:nth-child(4){right:0;bottom:0;border-right-width:1px;border-bottom-width:1px}
/* caption under the selected card, split like the reference: name, then a dimmer line */
.caption{position:absolute;left:0;right:0;top:50%;margin-top:0;text-align:center;letter-spacing:-.06em;white-space:nowrap;pointer-events:none;will-change:transform,opacity;text-shadow:none}
.caption b,.caption span{display:block;padding-right:.06em}
.caption b{font-size:max(calc(2.4 * var(--r)),16px);line-height:max(calc(3.1 * var(--r)),20px);font-weight:500;color:#fff}
.caption span{font-size:max(calc(1.8 * var(--r)),13px);line-height:max(calc(2.3 * var(--r)),17px);font-weight:400;color:var(--dim);letter-spacing:.02em}
/* grid view */
.portfolio.is-grid .strip{overflow-y:auto;perspective:none;cursor:default;touch-action:auto}
.portfolio.is-grid .strip__track{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(14px,1.4vw,24px);padding:calc(max(15vh,82px) + 50px) var(--gut) 60px;max-width:1400px;margin:0 auto}
@media (max-width:1180px){.portfolio.is-grid .strip__track{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.portfolio.is-grid .strip__track{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.portfolio.is-grid .strip__track{grid-template-columns:repeat(2,minmax(0,1fr))}}
.portfolio.is-grid .card{position:relative;margin:0;width:auto;transform:none!important;opacity:1!important;filter:none!important;cursor:pointer}
.portfolio.is-grid .caption{opacity:0!important}
.portfolio.is-grid .filters{top:max(15vh,82px);margin-top:0}

/* ============ Case (project page) ============ */
.case{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,min(440px,36vw))}
.case__media{overflow-y:auto;padding:90px clamp(20px,4vw,60px) 60px;display:flex;flex-direction:column;align-items:center;gap:28px;scrollbar-width:none}
.case__media::-webkit-scrollbar{display:none}
.case__frame{width:min(100%,calc((100vh - 150px)*.5625));aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#000;position:relative;flex:none;box-shadow:0 40px 90px -30px rgba(0,0,0,.8)}
.case__frame img,.case__frame video{width:100%;height:100%;object-fit:cover}
.case__frame.is-still img{animation:kb 16s ease-in-out infinite alternate}
@keyframes kb{to{transform:scale(1.12) translate(-2%,-2%)}}
.case__frame .bar{position:absolute;left:14px;right:14px;bottom:14px;height:2px;background:rgba(255,255,255,.3)}
.case__frame .bar i{display:block;height:100%;width:0;background:#fff;animation:prog 12s linear infinite}
@keyframes prog{to{width:100%}}
/* ---- feed: one reel per screen, snapping, like a social app (js/feed.js) ---- */
/* each reel is 88% of the screen, so the next one peeks in from below */
.case__media.is-feed{display:block;padding:6vh 0;scroll-snap-type:y mandatory;overscroll-behavior-y:contain}
.reel{height:88vh;scroll-snap-align:center;scroll-snap-stop:always;position:relative;display:grid;place-items:center;padding:30px clamp(20px,4vw,60px) 8px}
.reel .reel__frame{width:auto;height:100%;max-width:100%;aspect-ratio:9/16;border-radius:12px;
  transform:scale(.9);opacity:.35;filter:blur(6px) brightness(.7);
  transition:transform .9s var(--ease),opacity .7s var(--ease),filter .9s var(--ease),box-shadow .9s var(--ease)}
.reel.is-wide .reel__frame{height:auto;width:min(100%,calc((100vh - 110px)*1.7778));aspect-ratio:16/9}
.reel.is-active .reel__frame{transform:none;opacity:1;filter:none;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85),0 0 60px -10px rgba(243,210,124,.22)}
.reel__frame video{cursor:pointer}
.reel__frame::after{content:"";position:absolute;inset:auto 0 0;height:38%;pointer-events:none;
  background:linear-gradient(transparent,rgba(8,6,4,.72))}
.reel__count,.reel__sound,.reel__label,.reel__bar{position:absolute;z-index:2;opacity:0;transition:opacity .6s var(--ease) .25s}
.reel.is-active :is(.reel__count,.reel__sound,.reel__label,.reel__bar){opacity:1}
.reel__count{left:16px;top:14px;font:500 12px/1 "OS Stopper",Raleway,sans-serif;letter-spacing:.04em;color:#f4efe7;text-shadow:var(--glow)}
.reel__count i{font-style:normal;opacity:.45}
.reel__sound{right:10px;top:8px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:rgba(20,16,12,.35);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#f4efe7}
.reel__sound svg{width:19px;height:19px;fill:currentColor;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(255,240,220,.5))}
.reel__sound.is-off{color:var(--gold);animation:nudge 1.6s ease-in-out infinite}
@keyframes nudge{50%{box-shadow:0 0 0 6px rgba(243,210,124,.18)}}
.reel__label{right:18px;left:18px;bottom:24px;font-size:clamp(22px,2.2vw,32px);font-weight:700;line-height:1.02;text-align:right;
  color:var(--gold);text-shadow:0 0 .3em rgba(243,210,124,.55),0 0 1.2em rgba(243,210,124,.25)}
.reel__bar{left:16px;right:16px;bottom:12px;height:2px;background:rgba(255,255,255,.18);border-radius:2px;overflow:hidden}
.reel__bar i{display:block;height:100%;background:var(--gold);transform-origin:0 50%;transform:scaleX(0);box-shadow:0 0 8px var(--gold)}
.reel__paused{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;z-index:2;pointer-events:none;
  background:rgba(20,16,12,.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;transform:scale(.8);transition:opacity .3s,transform .3s var(--ease)}
.reel__paused::before{content:"";position:absolute;left:26px;top:21px;border-left:16px solid #f4efe7;border-top:11px solid transparent;border-bottom:11px solid transparent}
.reel.is-paused .reel__paused{opacity:1;transform:none}
.reel__hint{position:absolute;z-index:3;bottom:calc(-3vh - 9px);left:0;right:0;margin:auto;width:max-content;display:flex;align-items:center;gap:8px;
  font-size:16px;color:var(--mute);text-shadow:var(--glow);transition:opacity .6s var(--ease)}
.reel__hint svg{width:18px;height:18px;fill:none;stroke:#f4efe7;stroke-width:1.2;animation:bob 1.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(4px)}}
.is-hinted .reel__hint{opacity:0}
/* position rail: one tick per video, the current one long and gold */
.feed__rail{position:absolute;z-index:3;left:clamp(16px,2.2vw,34px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px;max-height:70vh}
.feed__rail i{display:block;width:8px;height:2px;flex:0 1 2px;min-height:1px;background:rgba(244,239,231,.3);cursor:pointer;transition:width .5s var(--ease),background .5s}
.feed__rail i:hover{background:rgba(244,239,231,.7)}
.feed__rail i.is-on{width:22px;background:var(--gold);box-shadow:0 0 8px var(--gold)}
.case__link{font-size:13px;color:var(--mute);border-bottom:1px solid currentColor}
/* dark glass panel, gold text with the site's soft glow */
:root{--gold-glow:0 0 .35em rgba(243,210,124,.45),0 0 1.2em rgba(243,210,124,.22)}
.case__panel{position:relative;background:rgba(12,9,6,.5);-webkit-backdrop-filter:blur(22px) saturate(1.15);backdrop-filter:blur(22px) saturate(1.15);
  border-left:1px solid rgba(243,210,124,.14);color:var(--gold);text-shadow:var(--gold-glow);overflow-y:auto;padding:120px clamp(22px,3vw,44px) 40px;
  border-radius:22px 0 0 22px;transform:translateX(105%);transition:transform .9s var(--ease) .15s}
.case.is-current .case__panel{transform:none}
/* everything snaps to the right edge (Hebrew reading order): back link, then logo + name on one line, a hairline, the text */
.case__panel{text-align:right}
.case__back{display:inline-flex;gap:.45em;font-size:12px;letter-spacing:.04em;color:var(--gold);opacity:.5;transition:opacity .3s}
.case__back:hover{opacity:.9}
.case__title{margin:0;font-size:clamp(22px,1.8vw,28px);line-height:1.1;letter-spacing:-.02em;color:var(--gold);font-weight:500}
/* profile: a small round logo with a thin gold ring, the name beside it (to its left) */
.case__profile{display:flex;align-items:center;justify-content:flex-start;gap:16px;margin:34px 0 0;padding-bottom:22px;border-bottom:1px solid rgba(243,210,124,.16)}
.case__avatar{flex:none;width:clamp(56px,4.4vw,68px);aspect-ratio:1;border-radius:50%;padding:1px;position:relative;
  background:rgba(243,210,124,.45);box-shadow:0 0 18px -8px rgba(243,210,124,.5)}
.case__avatar::before{content:"";position:absolute;inset:1px;border-radius:50%;background:#f4efe6}
.case__avatar img{position:relative;width:100%;height:100%;border-radius:50%;object-fit:contain;padding:22%;filter:grayscale(1) contrast(1.05);opacity:.9}
.case__who{min-width:0}
.case__about{font-size:15px;line-height:1.7;margin:22px 0 0;max-width:46ch;color:var(--gold);opacity:.78;font-weight:400}
.flyer{position:fixed;z-index:20;border-radius:6px;overflow:hidden;pointer-events:none;will-change:transform}
.flyer img{width:100%;height:100%;object-fit:cover}

/* ============ About ============ */
/* About, like the reference: the same photo as the hero zooms in, in one smooth move (0–1.5s),
   and while it settles a paper panel sweeps in from the right (to 40.6% of the width),
   with the same two faces drawn in dots on it (js/about.js). The text comes in on the paper.
   Resting styles are the end state, so with reduced motion the page simply shows the finished layout. */
:root{--ab-paper:#d9ccb4;--ab-ink:#1d1915;--rust:#b5401e;--split:40.6%}
.about{overflow:hidden;background:var(--ab-paper)}
.about__stage{position:absolute;inset:0;overflow:hidden;background:#120d09;pointer-events:none}
.about__stage img,.about__dots{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.about__wide{opacity:0;transform-origin:50% 50%}
.about__close,.about__dots{object-position:50% 50%;transform:translate(3.5%,1.5%) scale(1.09);transform-origin:50% 50%}
.about__paper{position:absolute;inset:0;background:var(--ab-paper);clip-path:inset(0 0 0 var(--split))}
/* dots + brush (js/about.js): a WebGL layer over the photo and the paper, under the text */
.about__gl{position:absolute;inset:0;width:100%;height:100%;display:block}
@keyframes ab-fade{from{opacity:0}to{opacity:1}}
/* on About the nav sits on the paper: dark ink, same glow */
html.on-about .nav a{color:var(--ab-ink)}
/* depth: the photo and the dots drift against the mouse (js/about.js sets --mx/--my, -1..1), the photo more than the dots,
   so the two read as layers at different distances; both sit a little enlarged so the edges never show */
.about__close,.about__dots{scale:1.03;translate:calc(var(--mx,0) * -1.6%) calc(var(--my,0) * -1.3%)}
.about.is-current .about__close{animation:ab-move 1.5s cubic-bezier(.55,0,.2,1) both}
.about.is-current .about__paper{animation:ab-sweep .8s .95s cubic-bezier(.7,0,.2,1) both}
@keyframes ab-move{from{transform:none}to{transform:translate(3.5%,1.5%) scale(1.09)}}
@keyframes ab-sweep{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0 0 0 var(--split))}}

.about__scroll{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain}
.about__text{margin-left:var(--split);padding:0 calc(9 * var(--r)) calc(14 * var(--r)) calc(7 * var(--r));color:var(--ab-ink);text-shadow:0 0 14px rgba(217,204,180,.95),0 0 4px rgba(217,204,180,.9)}
.about__head{min-height:84svh;display:flex;flex-direction:column;justify-content:center;padding:calc(12 * var(--r)) 0 calc(2 * var(--r))}
.about h2{font-size:calc(18.2 * var(--r));line-height:.86;letter-spacing:-.03em;font-weight:600;margin:0 0 calc(4 * var(--r));color:var(--rust);
  /* a soft, smeared glow: the letters a touch out of focus with warm light bleeding off them */
  text-shadow:0 0 .04em rgba(181,64,30,.9),0 0 .16em rgba(226,104,52,.6),0 0 .45em rgba(255,150,80,.45),0 0 1.1em rgba(255,186,120,.35);
  filter:blur(1.4px)}
.about h2[dir=ltr]{text-align:right}
.about.is-current .about__head>h2{animation:ab-text .9s cubic-bezier(.2,.7,.2,1) 1.45s both,ab-haze 6s 2.4s ease-in-out infinite}
@keyframes ab-haze{0%,100%{filter:blur(1.4px)}50%{filter:blur(2.6px)}}
.about .about__lead{font-size:max(23px,calc(3.8 * var(--r)));line-height:1.3;max-width:calc(64 * var(--r));margin:0;font-weight:600}
.about__body{max-width:calc(66 * var(--r));margin-bottom:calc(12 * var(--r))}
.about__body p{font-size:max(20px,calc(2.8 * var(--r)));line-height:1.5;font-weight:700;margin:0 0 1em}
.about__block{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:calc(1.2 * var(--r)) calc(3 * var(--r));
  border-top:1px solid rgba(29,25,21,.28);padding-top:calc(2 * var(--r));margin-bottom:calc(10 * var(--r))}
.about__num,.about__label{font-size:max(16px,calc(2.1 * var(--r)));letter-spacing:.04em;opacity:.8}
.about__big{grid-column:1/-1;font-size:max(26px,calc(5.4 * var(--r)));line-height:1.08;letter-spacing:-.02em;font-weight:500;margin:0}
.about__big[dir=ltr]{text-align:right}
.about__big i{font-style:normal;color:var(--rust);font-weight:300;padding:0 .12em}
.about.is-current .about__head>*,.about.is-current .about__body,.about.is-current .about__block{animation:ab-text .9s cubic-bezier(.2,.7,.2,1) both}
.about.is-current .about__head>:nth-child(1){animation-delay:1.45s}
.about.is-current .about__head>:nth-child(2){animation-delay:1.58s}
.about.is-current .about__body{animation-delay:1.7s}
.about.is-current .about__block{animation-delay:1.82s}
/* stats + testimonials: each [data-reveal] comes in when it scrolls into view (js/about.js adds .is-in) */
.about [data-reveal]{opacity:0;transform:translateY(40px);filter:blur(6px);transition:opacity 1s var(--ease),transform 1.1s var(--ease),filter 1s var(--ease)}
.about [data-reveal].is-in{opacity:1;transform:none;filter:none}
.about__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:calc(3 * var(--r));border-top:1px solid rgba(29,25,21,.28);padding-top:calc(3 * var(--r));margin-bottom:calc(16 * var(--r))}
.about__stat:nth-child(2){transition-delay:.12s}.about__stat:nth-child(3){transition-delay:.24s}
.about__stat b{display:block;font-size:calc(9 * var(--r));line-height:1;letter-spacing:-.04em;font-weight:600;color:var(--rust);font-variant-numeric:tabular-nums;text-align:right}
.about__stat span{display:block;margin-top:calc(1.2 * var(--r));font-size:max(17px,calc(2.3 * var(--r)));opacity:.85}
.about__quotes{border-top:1px solid rgba(29,25,21,.28);padding-top:calc(2 * var(--r))}
.about__quote{margin:calc(7 * var(--r)) 0 calc(9 * var(--r))}
.about__quote:nth-of-type(even){margin-right:calc(8 * var(--r))}
.about__quote blockquote{margin:0;font-size:max(26px,calc(4.8 * var(--r)));line-height:1.18;letter-spacing:-.015em;font-weight:500;max-width:calc(62 * var(--r))}
.about__quote blockquote[dir=ltr]{text-align:right;margin-left:auto}
.about__quote figcaption{margin-top:calc(1.6 * var(--r));font-size:max(17px,calc(2.3 * var(--r)));color:var(--rust)}
.about__quote figcaption::before{content:'— '}
@keyframes ab-text{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* ============ Contacts ============ */
.contacts{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px var(--gut)}
.contacts__title{margin:0;font-family:Raleway,sans-serif;font-weight:600;font-size:clamp(56px,11vw,168px);line-height:.9;letter-spacing:-.045em;padding-right:.045em;color:var(--gold)}
.contacts__mail{margin-top:clamp(18px,2.4vw,34px);font-family:Raleway,sans-serif;font-size:clamp(18px,2.2vw,32px);letter-spacing:-.01em;font-weight:400;line-height:1.2;overflow-wrap:anywhere;opacity:.85;transition:opacity .3s,color .3s}
.contacts__mail:hover{opacity:1}
.contacts__mail:hover{color:var(--accent)}
.contacts__foot{position:absolute;bottom:max(26px,env(safe-area-inset-bottom,0px));font-size:12px;color:var(--mute);margin:0}


/* ---- client logos: a slow running band along the bottom of the hero, white with a soft glow ---- */
:root{--logo-band:clamp(54px,5.4vw,92px);--logo-gap:clamp(34px,4.4vw,84px)}
.hero__scroll{bottom:calc(3.2 * var(--u) + var(--logo-band))}
.logos{position:absolute;left:0;right:0;bottom:calc(1.4 * var(--u));height:var(--logo-band);overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent);
  transition:opacity .8s var(--ease),filter .8s var(--ease)}
.hero:not(.is-current) .logos{opacity:0;filter:blur(8px)}
.logos__track{display:flex;width:max-content;height:100%;animation:logos 70s linear infinite}
.logos__set{display:flex;align-items:center;gap:var(--logo-gap);padding-right:var(--logo-gap)}
.logos img{height:calc(var(--logo-band) * .62 * var(--h));width:auto;flex:none;opacity:.6;user-select:none;
  filter:brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,244,228,.45))}
@keyframes logos{to{transform:translateX(-50%)}}
@media (max-width:800px){
  :root{--logo-band:50px;--logo-gap:30px}
  .logos{bottom:max(14px,env(safe-area-inset-bottom,0px))}
  .hero__scroll{bottom:calc(max(14px,env(safe-area-inset-bottom,0px)) + var(--logo-band) + 14px)}
}

/* ============ Phones ============ */
@media (max-width:800px){
  :root{--gut:max(18px,env(safe-area-inset-left,0px));--cw:clamp(150px,46vw,230px)}
  .nav{gap:14px}
  .case{grid-template-columns:minmax(0,1fr);overflow-y:auto}
  .case__media{overflow:visible;padding-top:80px}
  .case__panel{overflow:visible;border-radius:22px 22px 0 0;transform:translateY(40px);opacity:0;transition:transform .9s var(--ease) .15s,opacity .6s .15s}
  .case.is-current .case__panel{transform:none;opacity:1}
  .case__frame{width:min(100%,360px)}
  /* phones: the feed fills the screen; scrolling past the last video reaches the project text */
  .case__media.is-feed{height:100dvh;overflow-y:auto;overscroll-behavior-y:auto}
  .reel{padding:26px 12px 6px}
  .reel .reel__frame{width:auto;max-width:100%}
  .reel.is-wide .reel__frame{width:100%;height:auto}
  .feed__rail{left:4px;gap:4px}
  .feed__rail i{width:4px}.feed__rail i.is-on{width:10px}
  /* phones: the paper comes up from the bottom instead of from the side, and the text scrolls up over the photo on it */
  :root{--split:54%}
  .about__close,.about__dots{transform:translateY(-12%) scale(1.06)}
  .about__paper{clip-path:inset(var(--split) 0 0 0)}
  @keyframes ab-move{from{transform:none}to{transform:translateY(-12%) scale(1.06)}}
  @keyframes ab-sweep{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(var(--split) 0 0 0)}}
  .about__text{margin:54svh 0 0;padding:0 var(--gut) calc(14 * var(--r));background:linear-gradient(rgba(217,204,180,0),rgba(217,204,180,.88) 40svh)}
  .about__head{min-height:46svh;justify-content:flex-start;padding:calc(4 * var(--r)) 0}
  .about h2{font-size:calc(9 * var(--r))}
  .about__big{font-size:calc(3.4 * var(--r))}
  .about__stats{grid-template-columns:1fr;gap:calc(5 * var(--r))}
  .about__stat b{font-size:calc(7 * var(--r))}
  .about__quote blockquote{font-size:calc(2.8 * var(--r))}
  .about__quote:nth-of-type(even){margin-right:0}
  body::after{border-radius:0;box-shadow:inset 0 0 60px 10px rgba(0,0,0,.6)}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition-duration:.01s!important}
}
