/* Tamir Belogorodsky — site styles
   Colors and sizes live in the variables below, so most design tweaks are one line. */
:root {
  --bg: #0B0B0A;
  --ink: #EDEAE3;
  --mute: #A19E95;
  --faint: #8A877F;
  --line: #262522;
  --accent: #D9B98A;          /* "in post-production" */
  --pad: 48px;                /* side padding */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --latin: 'Finlandica Text', system-ui, sans-serif;
  --font: var(--latin);
}
.lang-he { --font: 'IBM Plex Sans Hebrew', var(--latin); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.muted { color: var(--mute); font-size: 15px; }
.label { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.lang-he .label { letter-spacing: 0; }

/* ---------- Header: transparent over the reel, blurred once you scroll ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 4px 20px;
  padding: 10px var(--pad); transition: background .5s, backdrop-filter .5s, padding .5s; }
.top.scrolled { background: rgba(11,11,10,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 4px; padding-bottom: 4px; }
.brand { font-family: var(--latin); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.top-right { display: flex; align-items: center; gap: 4px 28px; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; opacity: .85; transition: opacity .3s; }
.nav a:hover { opacity: 1; }

/* Language: one button, a small menu */
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 8px; min-width: 44px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(237,234,227,0.35); background: transparent; font-size: 13px; letter-spacing: 0.04em; cursor: pointer; transition: border-color .3s, background .3s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--ink); background: rgba(237,234,227,0.08); }
.lang-btn svg { transition: transform .3s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; padding: 6px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(20,20,19,0.96); backdrop-filter: blur(12px); display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,.45);
  animation: menu-in .25s var(--ease); }
.lang-menu[hidden] { display: none; }
.lang-menu a { padding: 10px 14px; border-radius: 9px; font-size: 15px; color: var(--mute); text-decoration: none; }
.lang-menu a:hover { background: rgba(237,234,227,0.07); color: var(--ink); }
.lang-menu a[aria-current] { color: var(--ink); font-weight: 500; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Players (reel + projects) ---------- */
.player { position: absolute; inset: 0; overflow: hidden; background: #000; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; display: block; cursor: pointer; }
.poster > img, .bg-video, .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; background: #000; }
.player .close { position: absolute; top: 76px; inset-inline-end: var(--pad); z-index: 6; min-width: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(237,234,227,0.4); background: rgba(11,11,10,0.6); color: var(--ink); font-size: 14px; cursor: pointer; }
.play-dot { flex: none; border-radius: 999px; background: var(--ink); display: flex; align-items: center; justify-content: center; fill: var(--bg); width: 48px; height: 48px; transition: transform .4s var(--ease); }

/* ---------- Hero: the reel loops silently, a click plays it with sound ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 22%, transparent 45%, rgba(0,0,0,.72)); }
.hero-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-play-ring { width: 96px; height: 96px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding-inline-start: 6px;
  border: 1.5px solid rgba(237,234,227,0.85); background: rgba(11,11,10,0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  fill: var(--ink); transition: transform .5s var(--ease), background .4s; }
.hero-play-label { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero .poster:hover .hero-play-ring { transform: scale(1.08); background: rgba(237,234,227,0.16); }
.hero-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 7vh, 80px); display: flex; flex-direction: column; gap: 14px; pointer-events: none;
  animation: hero-in 1.4s .2s var(--ease) both; }
.hero-text h1 { margin: 0; font-family: var(--latin); font-size: clamp(30px, 6.4vw, 118px); line-height: 1; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.lang-he .hero-text h1 { font-family: 'IBM Plex Sans Hebrew', sans-serif; font-weight: 500; letter-spacing: -0.01em; }
.hero-role { font-size: 16px; color: rgba(237,234,227,.85); }
.hero.playing .hero-text { display: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Intro ---------- */
.intro { padding: 88px var(--pad) 96px; display: flex; flex-direction: column; justify-content: center; }
.statement { margin: 0; max-width: 1100px; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.18; font-weight: 300; letter-spacing: -0.01em; }

/* ---------- Work: full-screen chapters that stack as you scroll ---------- */
.work-head { padding: 0 var(--pad) 72px; }
.work-head h2 { margin: 0; padding-top: 32px; border-top: 1px solid var(--line); font-size: clamp(36px, 4.6vw, 72px); line-height: 1.05; font-weight: 300; letter-spacing: -0.01em; }
/* each chapter holds still for a moment (the margin), then the next one slides over it */
.chapter { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: 45vh; overflow: hidden; box-shadow: 0 -24px 60px rgba(0,0,0,.55); }
.chapter:last-child { margin-bottom: 30vh; }
.frames img { opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s ease-out; }
.frames img.on { opacity: 1; }
.chapter.in .frames img { transform: scale(1); }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 32%, rgba(0,0,0,0) 62%); }
.overlay { position: absolute; z-index: 2; inset-inline-start: var(--pad); bottom: clamp(40px, 9vh, 104px); max-width: 600px; display: flex; flex-direction: column; gap: 14px; }
.overlay > * { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
.chapter.in .overlay > * { opacity: 1; transform: none; }
.chapter.in .overlay > :nth-child(2) { transition-delay: .12s; }
.chapter.in .overlay > :nth-child(3) { transition-delay: .24s; }
.chapter.in .overlay > :nth-child(4) { transition-delay: .36s; }
.overlay h3 { margin: 0; font-size: clamp(40px, 6vw, 96px); line-height: 1; font-weight: 400; letter-spacing: -0.015em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.logline { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 300; }
.credits-block { display: flex; flex-direction: column; gap: 4px; }
.role { font-size: 17px; letter-spacing: 0.01em; }
.meta { font-size: 13px; color: var(--mute); }
.post { color: var(--accent); }
.credit { font-size: 12.5px; color: var(--faint); }
.overlay .watch { position: static; width: auto; height: auto; align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 20px 6px 6px; border-radius: 999px; border: 1px solid rgba(237,234,227,0.35); background: rgba(11,11,10,0.35); backdrop-filter: blur(6px); font-size: 15px; }
.overlay .watch .play-dot { width: 38px; height: 38px; }
.overlay .watch:hover { border-color: var(--ink); }
.overlay .watch:hover .play-dot { transform: scale(1.08); }
.gallery-nav { position: absolute; z-index: 3; inset-inline-end: calc(var(--pad) - 8px); bottom: clamp(28px, calc(9vh - 8px), 96px); display: flex; align-items: center; }
/* big arrows on the left and right edges of the picture */
.chapter .g-prev, .chapter .g-next { position: absolute; z-index: 4; top: 42%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 999px; border: 1px solid rgba(237,234,227,.35);
  background: rgba(11,11,10,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s, background .3s, transform .3s; }
.chapter .g-prev svg, .chapter .g-next svg { width: 12px; height: 18px; }
.chapter:hover .g-prev, .chapter:hover .g-next { opacity: .85; }
.chapter .g-prev:hover, .chapter .g-next:hover { opacity: 1; border-color: var(--ink); background: rgba(11,11,10,.55); transform: translateY(-50%) scale(1.06); }
.chapter .g-prev { inset-inline-start: 24px; }
.chapter .g-next { inset-inline-end: 24px; }
.lang-he .chapter .g-prev svg, .lang-he .chapter .g-next svg { transform: scaleX(-1); }
.dots { display: flex; align-items: center; padding: 0 6px; }
.dots button { width: 22px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dots button::after { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--ink); opacity: .35; transition: opacity .4s, transform .4s; }
.dots button:hover::after { opacity: .7; }
.dots button.on::after { opacity: .95; transform: scale(1.25); }
.frames { touch-action: pan-y; }

/* ---------- Fade in / out on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { position: relative; z-index: 1; background: var(--bg); padding: 160px var(--pad); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 72px; }
.about > img { flex: 1 1 360px; max-width: 620px; min-width: 0; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 50%; background: #1A1A18; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bio { margin: 0; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.35; font-weight: 300; }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 1; background: var(--bg); padding: 80px var(--pad) 40px; display: flex; flex-direction: column; gap: 36px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.email { align-self: flex-start; font-family: var(--latin); font-size: clamp(26px, 3.4vw, 56px); line-height: 1.05; text-decoration: none; white-space: nowrap; transition: color .3s; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contact-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.contact-lines .k { min-width: 96px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.lang-he .contact-lines .k { letter-spacing: 0; font-size: 14px; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid rgba(237,234,227,.25); transition: border-color .3s; }
.contact-lines a:hover { border-color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-form h3 { margin: 0 0 6px; font-size: 22px; font-weight: 400; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span { font-size: 13px; color: var(--mute); }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #3A3934;
  padding: 8px 0 10px; border-radius: 0; outline: none; transition: border-color .3s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form button { align-self: flex-start; margin-top: 8px; min-height: 48px; padding: 0 32px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 16px; cursor: pointer; transition: opacity .3s, transform .3s; }
.contact-form button:hover { transform: translateY(-1px); }
.contact-form button[disabled] { opacity: .55; cursor: default; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--mute); }
.form-status.ok { color: var(--accent); }
.contact-form .hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.email:hover { color: var(--mute); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; padding-top: 24px; border-top: 1px solid var(--line); }
.social { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.social a { min-height: 44px; display: flex; align-items: center; }
.foot .muted { display: flex; align-items: center; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .nav { display: none; }
  .top { padding-top: 6px; padding-bottom: 6px; }
  .brand { font-size: 13px; }
  .hero-play-ring { width: 56px; height: 56px; }
  .hero-play-ring svg { width: 14px; height: 16px; }
  .hero-play { gap: 8px; }
  .hero-play-label { font-size: 11px; }
  .hero-text { position: static; padding: 28px var(--pad) 0; gap: 10px; }
  .hero-text h1 { font-size: clamp(24px, 7.4vw, 40px); }
  .hero-role { font-size: 14px; color: var(--mute); }
  .hero.playing .hero-text { display: flex; }
  .play-dot { width: 30px; height: 30px; }
  .play-dot svg { width: 11px; height: 12px; }
  .intro { min-height: auto; padding: 72px var(--pad) 96px; }
  .work-head { padding-bottom: 40px; }
  .chapter { position: relative; height: auto; margin-bottom: 80px; box-shadow: none; overflow: visible; }
  .chapter:last-child { margin-bottom: 0; }
  .chapter .player { position: relative; aspect-ratio: 16 / 9; }
  .overlay { position: static; padding: 20px var(--pad) 0; max-width: none; }
  .top { background: rgba(11,11,10,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hero { height: auto; margin-top: 56px; }
  .hero .player { position: relative; aspect-ratio: 16 / 9; }
  .hero-shade { display: none; }
  .overlay { gap: 10px; }
  .overlay h3 { font-size: clamp(30px, 8.5vw, 42px); text-shadow: none; }
  .logline { font-size: 15px; }
  .shade { display: none; }
  .gallery-nav { bottom: 4px; inset-inline-end: 4px; }
  .chapter .g-prev, .chapter .g-next { display: none; }
  .dots button { width: 18px; height: 26px; }
  .overlay .watch { background: transparent; backdrop-filter: none; }
  .overlay .watch .play-dot { width: 30px; height: 30px; }
  .about { padding: 96px var(--pad); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .email { font-size: 6.6vw; }
  .contact-lines { font-size: 16px; }
  .contact-lines .k { min-width: 80px; }
  .player .close { top: 8px; inset-inline-end: 8px; min-height: 36px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .overlay > *, .frames img { transition: none; transform: none; }
}
