/* ==========================================================================
   Dariusz Nojman — portfolio
   Design system: film frame / contact sheet / cutting log.
   Two moods sharing one structure: studio (default) and rojbers (night).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg: #10131a;
  --bg-raised: #171c26;
  --text: #efe9de;
  --text-dim: #9a9486;
  --line: rgba(239,233,222,0.14);
  --accent: #e2793c;
  --accent-2: #5c86a3;
  --accent-ink: #10131a;

  --font-display: 'Bricolage Grotesque', -apple-system, Segoe UI, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
  --radius: 2px;
}

[data-theme="rojbers"]{
  --bg: #0a0e1a;
  --bg-raised: #101729;
  --text: #f0ead9;
  --text-dim: #8892a8;
  --line: rgba(240,234,217,0.16);
  --accent: #f2c14e;
  --accent-2: #c1502f;
  --accent-ink: #0a0e1a;
}

.rojbers-scope{
  --bg: #0a0e1a;
  --bg-raised: #101729;
  --text: #f0ead9;
  --text-dim: #8892a8;
  --line: rgba(240,234,217,0.16);
  --accent: #f2c14e;
  --accent-2: #c1502f;
  --accent-ink: #0a0e1a;
  background: var(--bg);
  color: var(--text);
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure{ margin:0; }
button{ font: inherit; color: inherit; background:none; border:none; cursor:pointer; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ---------- headings / type scale ---------- */
h1, .display{
  font-family: var(--font-display);
  font-weight: 650;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
}
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.65;
}
p.body-text{ max-width: 62ch; color: var(--text); }
p.body-text + p.body-text{ margin-top: 1em; }

/* ---------- buttons / links ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  padding: .85em 1.5em;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{ background: var(--text); color: var(--bg); }
.btn--accent{ border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover{ background: transparent; color: var(--accent); }
.link-inline{
  border-bottom: 1px solid var(--accent);
  padding-bottom: .1em;
  transition: opacity .2s ease;
}
.link-inline:hover{ opacity: .7; }

/* ---------- nav ---------- */
.site-nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
  /* own compositor layer: keeps nav above the hero video's hardware overlay */
  transform: translateZ(0);
  will-change: transform;
}
.site-nav.is-scrolled{
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-nav__brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.site-nav__brand img{ height: 22px; width:auto; }
.site-nav__links{ display:flex; gap: 2rem; align-items:center; }
.site-nav__links a,
.site-nav__link-btn{
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text);
  transition: color .2s ease;
}
.site-nav__links a:hover,
.site-nav__link-btn:hover{ color: var(--accent); }
.site-nav__toggle{ display:none; }

@media (max-width: 860px){
  .site-nav__links{
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--bg);
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    gap: 1.6rem;
    padding: 2rem var(--pad);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform .35s ease;
  }
  .site-nav__links.is-open{ transform: translateX(0); }
  .site-nav__links a,
  .site-nav__link-btn{ font-size: 1.3rem; color: var(--text); }
  .site-nav__toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    z-index: 110;
    padding: .4rem;
  }
  .site-nav__toggle span{ width:22px; height:1.5px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .site-nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- section rhythm ---------- */
.section{ padding: clamp(4.5rem, 9vw, 8rem) 0; border-top: 1px solid var(--line); }
.section:first-of-type{ border-top:none; }
.section__head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

/* ---------- frame (film-cel presentation of media) ---------- */
.frame{
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}
.frame img, .frame video{ width:100%; height:100%; object-fit:cover; }
.frame figcaption{
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-dim);
  padding-top: .6rem;
}

/* ---------- video facades ---------- */
.video-frame{
  position:relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  background: #000;
  overflow:hidden;
}
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-facade{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border:0;
  width:100%;
}
.video-facade::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.video-facade__play{
  position:relative; z-index:1;
  width: 74px; height:74px;
  border-radius:50%;
  border: 1px solid rgba(239,233,222,.7);
  display:flex; align-items:center; justify-content:center;
  background: rgba(16,19,26,.35);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.video-facade:hover .video-facade__play{ background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.video-facade__play svg{ width:20px; height:20px; fill: var(--text); margin-left:3px; }
.video-facade:hover .video-facade__play svg{ fill: var(--accent-ink); }
.video-frame[data-playing="true"] .video-facade{ display:none; }

/* ---------- hero (full-bleed autoplay video background) ---------- */
.hero{
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero-bg{ position:absolute; inset:0; z-index:0; background:#000; }
.hero-bg__video{ position:absolute; inset:0; overflow:hidden; }
.hero-bg__video iframe{
  position:absolute;
  top:50%; left:50%;
  width:100vw; height:56.25vw; /* 16:9 */
  min-height:100%; min-width:177.78vh; /* 16:9 cover */
  transform:translate(-50%,-50%);
  border:0;
}
.hero-bg__scrim{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(16,19,26,.18) 0%, rgba(16,19,26,.32) 40%, rgba(16,19,26,.94) 100%);
}
[data-theme="rojbers"] .hero-bg__scrim,
.rojbers-scope .hero-bg__scrim{
  background: linear-gradient(180deg, rgba(10,14,26,.18) 0%, rgba(10,14,26,.32) 40%, rgba(10,14,26,.94) 100%);
}

.hero__sound-toggle{
  position:absolute; z-index:3;
  transform: translateZ(0);
  top: clamp(5.5rem, 10vh, 7rem); right: var(--pad);
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid rgba(239,233,222,.4);
  background: rgba(16,19,26,.35);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.hero__sound-toggle:hover{ border-color: var(--accent); }
.hero__sound-toggle svg{ width:19px; height:19px; }
.hero__sound-toggle .icon-unmuted{ display:none; }
.hero__sound-toggle[aria-pressed="true"] .icon-muted{ display:none; }
.hero__sound-toggle[aria-pressed="true"] .icon-unmuted{ display:block; }

.hero__lower-third{
  position:absolute; z-index:2; left:0; right:0; bottom:0;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--pad) clamp(4.5rem,9vh,6rem);
  transform: translateZ(0);
}
.lower-third__bar{ width: 46px; height: 3px; background: var(--accent); margin-bottom: 1.1rem; display:block; }
.hero h1{ font-size: clamp(2.6rem, 7vw, 5rem); color:#fff; }
.hero__role{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--accent);
  margin-top: .85rem;
  letter-spacing: .01em;
}
.hero__role-rotator{
  position: relative;
  height: 1.3em;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero__role-rotator__item{
  position:absolute; inset:0;
  display:flex; align-items:center;
  opacity:0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero__role-rotator__item.is-active{ opacity:1; transform: translateY(0); }
.hero__statement{
  margin-top: 1.1rem;
  max-width: 52ch;
  color: rgba(239,233,222,.8);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero__ctas{ display:flex; gap:1rem; margin-top: 2.1rem; flex-wrap:wrap; }

.hero__scroll-cue{
  position:absolute; z-index:2; left:50%; bottom: 1.75rem;
  transform: translate3d(-50%,0,0);
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid rgba(239,233,222,.35);
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  animation: hero-cue-bounce 2.2s ease-in-out infinite;
}
.hero__scroll-cue:hover{ border-color: var(--accent); color: var(--accent); }
.hero__scroll-cue svg{ width:16px; height:16px; }
@keyframes hero-cue-bounce{
  0%, 100%{ transform: translate3d(-50%,0,0); }
  50%{ transform: translate3d(-50%,7px,0); }
}

@media (max-width: 560px){
  .hero{ height:100vh; }
  .hero__sound-toggle{ top: 5rem; }
}

/* ---------- rojbers home section ---------- */
.rojbers-section{ background: var(--bg); color: var(--text); }
.rojbers-grid{
  display:grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.rojbers-wordmark{ width: min(230px, 55%); height:auto; margin-bottom: 1.6rem; }
.rojbers-mosaic{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
}
.rojbers-mosaic a{ display:block; overflow:hidden; background:#000; }
.rojbers-mosaic img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.rojbers-mosaic a:hover img{ transform: scale(1.04); }
.rojbers-mosaic .m-plakat{ grid-row: 1 / 3; aspect-ratio: 1/1; }
.rojbers-mosaic .m-wide{ aspect-ratio: 16/9; }
.rojbers-facts{ display:flex; gap: 1.75rem; margin: 1.6rem 0 2rem; font-family: var(--font-mono); font-size:.82rem; color: var(--text-dim); flex-wrap:wrap; }
.rojbers-facts strong{ color: var(--text); font-weight:500; }
.rojbers-ctas{ display:flex; gap:1.4rem; align-items:center; flex-wrap:wrap; }

/* ---------- showreel ---------- */
.showreel .video-frame{ max-width: 920px; margin: 0 auto; }
.showreel__head{ text-align:left; max-width: 640px; margin-bottom: 2.5rem; }

/* ---------- realizacje tiles ---------- */
.tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile{
  background: var(--bg);
  padding: 0;
  display:flex;
  flex-direction:column;
}
.tile__img{ aspect-ratio: 4/3; overflow:hidden; background:#000; }
.tile__img img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease, filter .5s ease; filter: grayscale(.15); }
.tile:hover .tile__img img{ transform: scale(1.045); filter: grayscale(0); }
.tile__body{ padding: 1.5rem 1.6rem 1.9rem; flex:1; display:flex; flex-direction:column; }
.tile__body h3{ margin-bottom:.6rem; }
.tile__body p{ color: var(--text-dim); font-size: .95rem; flex:1; }
.tile__link{ margin-top:1.2rem; font-family: var(--font-mono); font-size:.8rem; color: var(--accent); }

@media (max-width: 860px){
  .tiles{ grid-template-columns: 1fr; }
}

/* ---------- o mnie ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items:start;
}
.about-portrait{ aspect-ratio: 4/5; overflow:hidden; border:1px solid var(--line); }
.about-portrait img{ width:100%; height:100%; object-fit:cover; filter: grayscale(1) contrast(1.05); }
.about-workshop{ margin-top: 1.4rem; aspect-ratio: 16/9; overflow:hidden; border:1px solid var(--line); }
.about-workshop img{ width:100%; height:100%; object-fit:cover; }
.about-caption{ font-family: var(--font-mono); font-size:.76rem; color:var(--text-dim); padding-top:.55rem; }

.skills-list{ margin-top: 2rem; display:flex; flex-wrap:wrap; gap: .6rem .8rem; }
.skills-list li{
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: .45rem .8rem;
  border-radius: var(--radius);
}

/* ---------- filmografia log ---------- */
.log{ border-top: 1px solid var(--line); }
.log__row{
  display:grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1.5rem;
  align-items:start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.log__year{ font-family: var(--font-mono); color: var(--accent); font-size: .95rem; padding-top:.2rem; }
.log__title{ font-family: var(--font-display); font-size: 1.2rem; font-weight:500; }
.log__meta{ color: var(--text-dim); font-size: .92rem; margin-top: .4rem; max-width: 56ch; }
.log__award{
  margin-top:.55rem;
  font-size:.85rem;
  color: var(--text);
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.log__award::before{ content:""; width:6px; height:6px; background: var(--accent); border-radius:50%; flex-shrink:0; }
.log__thumb{ width: 128px; aspect-ratio: 4/3; overflow:hidden; border:1px solid var(--line); }
.log__thumb img{ width:100%; height:100%; object-fit:cover; }

@media (max-width: 720px){
  .log__row{ grid-template-columns: 1fr; }
  .log__thumb{ width: 100%; order:-1; margin-bottom:.5rem; }
}

/* ---------- pasje: shared spacing for sub-sections ---------- */
.pasje-sub{ margin-top: clamp(3rem, 6vw, 4.5rem); }
.pasje-sub:first-of-type{ margin-top: clamp(2rem, 4vw, 3rem); }
.pasje-sub h3{ margin-bottom: .9rem; }
.pasje-sub .body-text{ margin-bottom: 1.75rem; }

/* ---------- fotografia / modelarstwo / z drona: bento mosaic ---------- */
.bento-gallery{
  --bg-row: clamp(120px, 15vw, 200px);
  --bg-col: clamp(160px, 19vw, 260px);
  display:grid;
  grid-auto-flow: column dense;
  grid-template-rows: repeat(2, var(--bg-row));
  grid-auto-columns: var(--bg-col);
  gap: 2px;
  overflow-x: auto;
  cursor: grab;
  padding-left: var(--pad);
  padding-right: var(--pad);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bento-gallery::-webkit-scrollbar{ display:none; }
.bento-gallery.is-dragging{ cursor: grabbing; }
.bento-gallery__card{
  position:relative;
  overflow:hidden;
  border: 1px solid var(--line);
  background:#000;
  padding:0;
}
.bento-gallery__card.is-large{ grid-column: span 2; grid-row: span 2; }
.bento-gallery__card.is-tall{ grid-row: span 2; }
.bento-gallery__card.is-wide{ grid-column: span 2; }
.bento-gallery__card img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .5s ease;
  pointer-events:none;
  -webkit-user-drag:none;
}
.bento-gallery__card:hover img{ transform: scale(1.04); }
.bento-gallery__card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  opacity:0;
  transition: opacity .35s ease;
}
.bento-gallery__card:hover::after{ opacity:1; }
.bento-gallery__caption{
  position:absolute; left:0; right:0; bottom:0;
  padding: .8rem .9rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text);
  text-align:left;
  transform: translateY(8px);
  opacity:0;
  transition: opacity .35s ease, transform .35s ease;
}
.bento-gallery__card:hover .bento-gallery__caption{ opacity:1; transform: translateY(0); }

/* ---------- kontakt ---------- */
.contact{ padding-bottom: clamp(5rem,10vw,7rem); }
.contact-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem,5vw,5rem);
}
.contact-list{ margin-top: 1.8rem; display:flex; flex-direction:column; gap: 1rem; }
.contact-list a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: color .2s ease, padding-left .2s ease;
}
.contact-list a:hover{ color: var(--accent); padding-left: .4rem; }
.contact-list span{ font-family: var(--font-mono); font-size:.78rem; color: var(--text-dim); }
.contact-note{ margin-top:1.5rem; color: var(--text-dim); font-size:.92rem; max-width: 42ch; }

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad) 3rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
}
.site-footer img{ height:16px; opacity:.6; }
.site-footer__links{ display:flex; gap:1.4rem; }
.site-footer__links a:hover{ color: var(--text); }

/* ---------- rojbers.html specific ---------- */
.rb-hero{
  position:relative;
  overflow:hidden;
  height: 100svh;
  min-height: 560px;
  display:flex;
  align-items:flex-end;
  padding: 8rem var(--pad) 4rem;
  background-size: cover;
  background-position: center 30%;
}
@media (max-width: 560px){
  .rb-hero{ height:100vh; }
}
.rb-hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  background: linear-gradient(180deg, rgba(10,14,26,.35) 0%, rgba(10,14,26,.55) 55%, rgba(10,14,26,.96) 100%);
}
.rb-hero__inner{
  position:relative; z-index:1; max-width: 720px;
  transform: translateZ(0);
}
.rb-hero__inner img{ width: min(320px,70%); height:auto; margin-bottom: 1.5rem; }
.rb-hero__inner p{ color: var(--text); font-size: 1.15rem; max-width: 50ch; line-height:1.65; }
.rb-hero__meta{ font-family: var(--font-mono); font-size:.85rem; color: var(--accent); margin-bottom:1rem; }
.rb-hero__ctas{ margin-top:1.8rem; display:flex; gap:1rem; flex-wrap:wrap; }


.contact-sheet{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-sheet button{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background:#000;
  padding:0;
  width:100%;
}
.contact-sheet img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.contact-sheet button:hover img{ transform: scale(1.06); }
.contact-sheet figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: .5rem .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text);
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  text-align:left;
  opacity:0;
  transition: opacity .25s ease;
}
.contact-sheet button:hover figcaption{ opacity:1; }
@media (max-width: 860px){ .contact-sheet{ grid-template-columns: repeat(2,1fr); } }

.episodes{ margin-top:1.5rem; }
.episode-row{
  display:grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap:1.2rem;
  align-items:baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.episode-row__n{ font-family: var(--font-mono); color: var(--accent); }
.episode-row__title{ font-family: var(--font-display); font-size:1.05rem; }
.episode-row__date{ font-family: var(--font-mono); font-size:.78rem; color: var(--text-dim); }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset:0; z-index: 200;
  background: rgba(6,8,12,.94);
  display:flex; align-items:center; justify-content:center;
  padding: 5vh 5vw;
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  /* own compositor layer: stays above a playing background video (hardware overlay) */
  transform: translateZ(0);
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox__stage{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 1.25rem;
  max-width:100%;
  max-height:100%;
}
.lightbox__media{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
}
.lightbox img{ max-width:100%; max-height:82vh; border: 1px solid rgba(255,255,255,.15); display:block; }
.lightbox__caption{ margin-top: 1rem; text-align:center; font-family: var(--font-mono); font-size:.82rem; color: var(--text-dim); }
.lightbox__close{
  position:absolute; top: 2rem; right: 2rem; z-index:2;
  width:44px; height:44px;
  border:1px solid rgba(239,233,222,.35);
  background: rgba(6,8,12,.6);
  backdrop-filter: blur(4px);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; line-height:1;
  color: var(--text);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lightbox__close:hover{ border-color: var(--accent); color: var(--accent); background: rgba(6,8,12,.85); }
.lightbox__nav{
  flex-shrink:0;
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid rgba(239,233,222,.35);
  background: rgba(6,8,12,.6);
  backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lightbox__nav svg{ width:16px; height:16px; }
.lightbox__nav:hover{ border-color: var(--accent); color: var(--accent); background: rgba(6,8,12,.85); }
@media (max-width: 640px){
  .lightbox__stage{ gap:.5rem; }
  .lightbox__nav{ width:36px; height:36px; }
  .lightbox__nav svg{ width:13px; height:13px; }
  .lightbox__close{ top:1rem; right:1rem; width:38px; height:38px; }
}

/* ---------- video modal (showreel popup) ---------- */
.video-modal{
  position: fixed; inset:0; z-index: 210;
  display:flex; align-items:center; justify-content:center;
  padding: 4vh 5vw;
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  transform: translateZ(0);
}
.video-modal.is-open{ opacity:1; pointer-events:auto; }
.video-modal__backdrop{ position:absolute; inset:0; background: rgba(6,8,12,.92); }
.video-modal__panel{
  position:relative; z-index:1;
  width:100%; max-width: 960px;
}
.video-modal__panel .video-frame{ aspect-ratio:16/9; border:1px solid rgba(255,255,255,.15); }
.video-modal__close{
  position:absolute; top: -3rem; right:0;
  width:42px; height:42px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.video-modal__close:hover{ border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px){
  .video-modal__close{ top: -3rem; right: 0; }
}

/* ---------- contact form ---------- */
.contact-form{ display:flex; flex-direction:column; gap: 1.3rem; }
.contact-form label{ display:flex; flex-direction:column; gap:.5rem; }
.contact-form span{
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
}
.contact-form input,
.contact-form textarea{
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85em 1em;
  resize: vertical;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color: var(--accent); }
.contact-form .btn{ align-self:flex-start; margin-top:.3rem; }
.contact-form .btn:disabled{ opacity:.5; cursor:default; }
.contact-form__note{ font-size:.88rem; min-height:1.3em; }
.contact-form__note.is-ok{ color: var(--accent); }
.contact-form__note.is-error{ color: #d97757; }

/* ---------- shared responsive stacking ---------- */
@media (max-width: 760px){
  .rojbers-grid,
  .about-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .rojbers-mosaic{
    grid-template-columns: 1fr 1fr;
  }
  .about-portrait{ max-width: 280px; }
  .section__head{ align-items:flex-start; }
}

/* ---------- utility ---------- */
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
