/* 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: #75726B;
  --line: #262522;
  --accent: #D9B98A;          /* "in post-production" */
  --pad: 40px;                /* side padding */
  --gap-chapters: 140px;      /* space between projects */
  --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; scroll-padding-top: 64px; }
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 */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11,11,10,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 20px; padding: 6px var(--pad); }
.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; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.langs { display: flex; gap: 2px; }
.langs a { min-width: 44px; min-height: 44px; padding: 0 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--mute); text-decoration: none; }
.langs a.on { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* Players (reel + projects) */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #161615; overflow: hidden; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; display: block; }
button.poster { cursor: pointer; }
.poster > img, .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .close { position: absolute; top: 20px; inset-inline-end: 20px; z-index: 2; 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; }
.reel-pill { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px;
  border-radius: 999px; background: rgba(11,11,10,0.78); font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; transition: background .3s; }
.poster:hover .reel-pill { background: rgba(11,11,10,0.92); }
.play-dot, .play-big { border-radius: 999px; background: var(--ink); display: flex; align-items: center; justify-content: center; fill: var(--bg); }
.play-dot { width: 48px; height: 48px; }
.play-big { position: absolute; inset-inline-start: 40px; bottom: 36px; width: 64px; height: 64px; transition: transform .3s; }
.poster:hover .play-big { transform: scale(1.06); }

/* Rotating stills */
.frames img { opacity: 0; transition: opacity 1.4s ease; }
.frames img.on { opacity: 1; }
.dots { position: absolute; inset-inline-end: 32px; bottom: 32px; display: flex; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink); opacity: .35; transition: opacity .6s; }
.dots span.on { opacity: .95; }

/* Intro */
.intro { padding: 72px var(--pad) 140px; display: flex; flex-direction: column; gap: 28px; }
.intro h1 { margin: 0 0 32px; font-family: var(--latin); font-size: clamp(26px, 6.8vw, 124px); line-height: 1; font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.lang-he .intro h1 { font-family: 'IBM Plex Sans Hebrew', sans-serif; font-weight: 500; letter-spacing: -0.01em; }
.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 */
.work { display: flex; flex-direction: column; gap: var(--gap-chapters); padding-bottom: 160px; }
.chapter { display: flex; flex-direction: column; gap: 28px; }
.chapter-text { padding: 0 var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 64px; }
.chapter-title { flex: 1 1 420px; min-width: 0; display: flex; align-items: baseline; gap: 20px; }
.chapter-title h2 { margin: 0; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; font-weight: 400; letter-spacing: -0.01em; }
.chapter-info { flex: 1 1 340px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.logline { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 300; }
.credits-block { display: flex; flex-direction: column; gap: 4px; margin-top: 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); }

/* About */
.about { padding: 0 var(--pad) 140px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 72px; }
.about > img { flex: 1 1 320px; max-width: 540px; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 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; }

/* Filmography */
.filmography { padding: 0 var(--pad) 140px; }
.filmography details { border-top: 1px solid var(--line); padding-top: 8px; }
.filmography summary { list-style: none; min-height: 48px; display: inline-flex; align-items: center; gap: 12px; font-size: 17px; cursor: pointer; }
.filmography summary::-webkit-details-marker { display: none; }
details[open] .plus { display: inline-block; transform: rotate(45deg); }
.groups { display: flex; flex-direction: column; gap: 40px; padding-top: 16px; font-size: 15px; }
.group h3 { margin: 0 0 6px; font-size: 15px; font-weight: 400; color: var(--mute); }
.row { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row .y { flex: 0 0 48px; }
.row .t { flex: 1 1 260px; }
.row .muted { flex: 1 1 150px; }

/* Contact */
.contact { padding: 120px var(--pad) 40px; display: flex; flex-direction: column; gap: 36px; }
.email { align-self: flex-start; font-family: var(--latin); font-size: clamp(30px, 6.4vw, 104px); line-height: 1; text-decoration: none; overflow-wrap: anywhere; }
.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, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Phones */
@media (max-width: 640px) {
  :root { --pad: 20px; --gap-chapters: 96px; }
  .intro { padding-top: 48px; padding-bottom: 96px; }
  .play-big { inset-inline-start: 20px; bottom: 20px; width: 52px; height: 52px; }
  .dots { inset-inline-end: 20px; bottom: 22px; }
  .reel-pill { bottom: 4%; font-size: 12px; padding: 6px 14px 6px 6px; gap: 8px; }
  .play-dot { width: 30px; height: 30px; }
  .play-dot svg { width: 11px; height: 12px; }
  .top { padding-top: 2px; padding-bottom: 2px; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frames img { transition: none; }
}
