/* ============================================================
   TOKENS. One theme family, auto light/dark.
   Ground: warm paper. Ink: near-black. One accent: hot rose,
   taken from "לא הכל ורוד". Radius rule: media and cards 18px,
   buttons full pill, chips full pill.
   ============================================================ */
:root {
  --paper:      #F5F2EC;
  --paper-2:    #ECE7DE;
  --ink:        #16141A;
  --ink-soft:   #5D5A64;
  --line:       #D9D3C8;
  --rose:       #C82255;
  --rose-deep:  #8E1038;
  --rose-wash:  #F7DFE6;
  --on-rose:    #FFF3F6;

  --display: "Karantina", "Rubik", system-ui, sans-serif;
  --body:    "Assistant", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(1.1rem, 4.5vw, 5rem);
  --stack:  clamp(4rem, 9vw, 8rem);
  --r-media: 18px;
}

/* dark theme: follows the system unless the nav toggle forces a side */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #17151B;
    --paper-2:   #201D25;
    --ink:       #F1EEE7;
    --ink-soft:  #A8A4AE;
    --line:      #322E39;
    --rose:      #F0507E;
    --rose-deep: #7C0E31;
    --rose-wash: #33141E;
    --on-rose:   #FFF3F6;
  }
}
:root[data-theme="dark"] {
  --paper:     #17151B;
  --paper-2:   #201D25;
  --ink:       #F1EEE7;
  --ink-soft:  #A8A4AE;
  --line:      #322E39;
  --rose:      #F0507E;
  --rose-deep: #7C0E31;
  --rose-wash: #33141E;
  --on-rose:   #FFF3F6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); }

.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus {
  inset-inline-start: var(--gutter); inset-block-start: 0.9rem; z-index: 99;
  background: var(--rose); color: var(--on-rose);
  padding: 0.6rem 1.2rem; border-radius: 999px;
}

.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--stack); }

.head {
  font-size: clamp(3rem, 2rem + 6vw, 6.5rem);
  margin-block-end: clamp(1.5rem, 3.5vw, 3rem);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.9rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--rose); color: var(--on-rose); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; inset-block-start: 0; z-index: 50; height: 68px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 100%; }
.nav-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1; text-decoration: none; }
.nav-name em { font-style: normal; color: var(--rose); }
.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 1.9rem); list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--rose); }
@media (max-width: 760px) { .nav-links li:nth-child(n+3) { display: none; } }
.nav-tools { display: flex; align-items: center; gap: 0.9rem; }
.lang-link { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; }
.lang-link:hover { color: var(--rose); }
.theme-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 1.25rem; line-height: 1; color: var(--ink-soft); transition: color .15s, transform .3s; }
.theme-btn:hover { color: var(--rose); transform: rotate(180deg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem); overflow: clip; }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero h1 {
  font-size: clamp(3.6rem, 1.4rem + 7.2vw, 8.5rem);
}
.hero h1 .accent { color: var(--rose); display: block; }
.hero-roles {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  font-weight: 700; margin-block: 1rem 0.6rem;
}
.hero-roles span { color: var(--rose); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-start: 1.4rem; }

.hero-figure { position: relative; max-inline-size: clamp(16rem, 30vw, 26rem); margin-inline: auto; }
.hero-figure::before {
  content: ""; position: absolute; z-index: 0;
  inset-block: 8% -4%; inset-inline: -6% 12%;
  background: var(--rose); border-radius: var(--r-media);
  rotate: -3deg;
}
.hero-figure img {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-media);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-figure { max-width: 26rem; }
}

/* load-in: hierarchy, hero first */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-roles, .hero-cta, .hero-figure {
    animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-roles { animation-delay: 0.08s; }
  .hero-cta   { animation-delay: 0.16s; }
  .hero-figure{ animation-delay: 0.12s; }
  @keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* ---------- scroll reveal, CSS only ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 36%; }
    @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- showreel ---------- */
.reel-frame {
  position: relative; border-radius: var(--r-media); overflow: hidden;
  background: #0d0c10;
}
.reel-frame video { width: 100%; aspect-ratio: 1920 / 800; object-fit: cover; }
.reel-frame .reel-full { aspect-ratio: 16 / 9; object-fit: contain; }
.reel-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(to top, rgb(13 12 16 / 0.55), rgb(13 12 16 / 0.05) 55%);
  color: #FFF6F8; font-family: var(--body); font-weight: 700; font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  transition: background .2s ease;
}
.reel-play:hover { background: linear-gradient(to top, rgb(142 16 56 / 0.65), rgb(13 12 16 / 0.1) 60%); }
.reel-play .dot {
  display: grid; place-items: center;
  inline-size: clamp(3.2rem, 6vw, 4.5rem); block-size: clamp(3.2rem, 6vw, 4.5rem);
  border-radius: 999px; background: var(--rose); color: var(--on-rose);
  transition: transform .2s ease;
}
.reel-play:hover .dot { transform: scale(1.08); }
.reel-play svg { inline-size: 40%; block-size: 40%; }
.reel-note { margin-block-start: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- marquee, the single one ---------- */
.band { padding-block: clamp(1.2rem, 2.5vw, 2rem); border-block: 1px solid var(--line); overflow: clip; }
.band-track { display: flex; width: max-content; gap: 0; }
.band-list {
  display: flex; align-items: baseline; gap: clamp(1.6rem, 4vw, 3.5rem);
  padding-inline-end: clamp(1.6rem, 4vw, 3.5rem);
  list-style: none; margin: 0; padding-block: 0;
  font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); font-weight: 700;
  color: var(--ink-soft); white-space: nowrap;
}
.band-list li:nth-child(even) { color: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: slide 36s linear infinite; }
  @keyframes slide { to { transform: translateX(50%); } }
}

/* ---------- series sections: one per show, episodes inside ---------- */
.projects-head { padding-block: var(--stack) 0; }
.projects-head .head { margin-block-end: 0; color: var(--rose); }
.projects-head + .series { padding-block-start: calc(var(--stack) * 0.45); }
.series .head { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.8rem); margin-block-end: 0.5rem; }
.series p.work-year { margin: 0 0 1rem; }
.series.alt { background: var(--paper-2); }
.series-desc { color: var(--ink-soft); max-width: 62ch; margin: 0 0 1.4rem; }
.work-year { font-family: var(--mono); font-size: 0.85rem; color: var(--rose); }
.press { margin: 0 0 1.4rem; font-size: 0.95rem; color: var(--ink-soft); }
.press a { color: var(--rose); text-decoration-color: var(--rose); text-underline-offset: 3px; }
.press a:hover { text-decoration-thickness: 2px; }
.press q { font-style: italic; }
.fans { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin: 0 0 1.4rem; }
.fans .fans-label { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.fans q { quotes: "\201C" "\201D"; font-size: 0.92rem; font-weight: 600; background: var(--rose-wash); color: var(--rose-deep); border-radius: 999px; padding: 0.3rem 0.9rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fans q { color: var(--on-rose); } }
:root[data-theme="dark"] .fans q { color: var(--on-rose); }

.player { position: relative; border-radius: var(--r-media); overflow: hidden; background: #0d0c10; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.player-face { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.player-face img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1); }
.player-face:hover img { transform: scale(1.03); }
.face-cta {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  background: linear-gradient(to top, rgb(13 12 16 / 0.5), rgb(13 12 16 / 0.05) 55%);
  color: #FFF6F8; font-family: var(--body); font-weight: 700; font-size: clamp(1.05rem, 1rem + 0.8vw, 1.5rem);
}
.face-cta .dot { display: grid; place-items: center; inline-size: clamp(3rem, 5.5vw, 4.2rem); block-size: clamp(3rem, 5.5vw, 4.2rem); border-radius: 999px; background: var(--rose); color: var(--on-rose); transition: transform .2s ease; }
.player-face:hover .dot { transform: scale(1.08); }
.face-cta svg { inline-size: 40%; block-size: 40%; }

.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(9.5rem, 15vw, 13rem), 1fr)); gap: 0.9rem 0.8rem; margin-block-start: 0.9rem; }
.ep { padding: 0; border: 0; cursor: pointer; background: none; text-align: start; font-family: var(--body); color: var(--ink); }
.ep img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color .2s ease, transform .2s ease; }
.ep:hover img, .ep[aria-current] img { border-color: var(--rose); }
.ep:hover img { transform: translateY(-2px); }
.ep span { display: block; margin-block-start: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.ep.flag span { color: var(--rose); }
.ep[aria-current] span { color: var(--rose); }
.ep[aria-current] span::before { content: "▶ "; font-size: 0.72em; }

/* gentle idle drift on the episode cards; freezes the moment the cursor
   arrives so nothing moves under a click */
@media (prefers-reduced-motion: no-preference) {
  .episodes .ep { animation: epfloat 6s ease-in-out infinite; }
  .episodes .ep:nth-child(2n) { animation-delay: -2s; }
  .episodes .ep:nth-child(3n) { animation-delay: -4s; }
  .episodes:hover .ep { animation-play-state: paused; }
  @keyframes epfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  .ep[aria-current] img { animation: playing-glow 2.4s ease-in-out infinite; }
  @keyframes playing-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgb(200 34 85 / 0); }
    50% { box-shadow: 0 0 0 7px rgb(200 34 85 / 0.28); }
  }
}

/* ---------- small project blocks: side by side ---------- */
.minis { padding-block: calc(var(--stack) * 0.6); }
.mini-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr; } }
.mini { border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--r-media); padding: clamp(1.3rem, 2.5vw, 2rem); }
.mini h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); line-height: 0.95; margin-block-end: 0.6rem; }
.mini .press { margin-block-end: 1.1rem; font-size: 0.9rem; }
.mini-desc { color: var(--ink-soft); margin: 0 0 0.8rem; }
.mini-eps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.mini-eps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color .2s ease; }
.mini-eps a:hover img { border-color: var(--rose); }
.mini-hot { background: var(--rose-wash); border-color: transparent; display: grid; align-content: center; justify-items: start; color: var(--rose-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mini-hot { color: var(--rose); } }
:root[data-theme="dark"] .mini-hot { color: var(--rose); }
.mini-hot .mini-desc { color: inherit; font-weight: 700; margin: 0; }

/* ---------- about + casting stats ---------- */
.about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-media); }
.about .head { margin-block-end: 1rem; }
.about p { color: var(--ink-soft); max-width: 56ch; margin-block: 0 1rem; }
.about p strong { color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.4rem 0 0; padding: 0; }
.stats li {
  font-family: var(--mono); font-size: 0.85rem;
  padding: 0.38rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2);
}
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } .about img { max-width: 24rem; } }

/* ---------- credits ---------- */
.credits-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 1060px) { .credits-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .credits-cols { grid-template-columns: 1fr; } }
.credit-group h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem);
  margin-block-end: 1.1rem;
  color: var(--rose);
}
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.credit-list li { display: grid; gap: 0.1rem; }
.credit-title { font-weight: 700; font-size: 1.05rem; }
.credit-meta { color: var(--ink-soft); font-size: 0.92rem; }
a.credit-title { text-decoration: none; }
a.credit-title:hover { color: var(--rose); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.credit-meta a { color: var(--rose); text-decoration-color: var(--rose); text-underline-offset: 3px; }
.credit-meta a:hover { text-decoration-thickness: 2px; }
details.more { margin-block-start: 1.2rem; }
details.more summary {
  cursor: pointer; font-weight: 700; color: var(--rose);
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-family: var(--mono); }
details.more[open] summary::after { content: "-"; }
details.more .credit-list { margin-block-start: 1rem; }

/* ---------- photo strip: drifts on its own, pauses on hover ---------- */
.strip { display: flex; overflow: clip; padding-block-end: 1rem; }
.strip-track { display: flex; gap: clamp(0.8rem, 1.5vw, 1.2rem); padding-inline-end: clamp(0.8rem, 1.5vw, 1.2rem); flex: none; }
.strip figure { margin: 0; flex: 0 0 auto; }
.strip img { height: clamp(17rem, 38vw, 27rem); width: auto; border-radius: var(--r-media); }
.strip-track[aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: photodrift 55s linear infinite; }
  .strip-track[aria-hidden] { display: flex; }
  .strip:hover .strip-track { animation-play-state: paused; }
  @keyframes photodrift { to { transform: translateX(50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .strip { padding-inline: var(--gutter); }
  .strip-track { flex-wrap: wrap; padding-inline-end: 0; }
  .strip img { height: clamp(11rem, 24vw, 16rem); }
}


/* ---------- contact ---------- */
.contact { border-block-start: 1px solid var(--line); text-align: center; }
.contact .display { font-size: clamp(3.4rem, 2rem + 8vw, 9rem); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-block-start: 2rem; }
.contact-social { display: flex; gap: 0.9rem; justify-content: center; margin-block-start: 1.5rem; }
.soc {
  display: grid; place-items: center;
  inline-size: 3.3rem; block-size: 3.3rem; border-radius: 999px;
  border: 2px solid var(--ink); color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.soc:hover { background: var(--rose); border-color: var(--rose); color: var(--on-rose); transform: translateY(-2px); }
.soc svg { inline-size: 1.55rem; block-size: 1.55rem; }
.contact-lines { margin-block-start: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: center; color: var(--ink-soft); font-size: 0.98rem; }
.contact-lines a { text-decoration-color: var(--rose); text-underline-offset: 3px; }
.contact-lines a:hover { color: var(--rose); }

footer { border-block-start: 1px solid var(--line); padding-block: 2rem; color: var(--ink-soft); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }

/* LTR page (en.html): marquee and photo strip drift the opposite way */
[dir="ltr"] .band-track { animation-name: slide-ltr; }
@keyframes slide-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] .strip-track { animation-name: photodrift-ltr; }
@keyframes photodrift-ltr { to { transform: translateX(-50%); } }

.photos { padding-inline: 0; }
