html[lang=he] :is(#hero-title, .approved-homepage h2, .approved-homepage #art .project h3, .approved-homepage #impact .project h3, #ending-title) {
  font-family: var(--refresh-display);
  font-weight: 400;
  letter-spacing: 0;
}
html[lang=he] #hero-title {
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.05;
}
html[lang=he] #intro .hero-invitation {
  font: 400 clamp(23px, 2.5vw, 34px)/1.2 var(--refresh-display);
  color: var(--refresh-wine);
  margin: 8px 0 clamp(20px, 3vw, 40px);
}
html[lang=he] #intro .hero-eyebrow {
  color: var(--refresh-wine);
  margin-bottom: 20px;
}
#viewport {
  height: 100svh;
  aspect-ratio: auto;
}
#journey { height: 278svh; }
#scene { object-fit: cover; }
#brand { z-index: 7; }
#brand .logo, #float-bar .fb-logo img {
  width: clamp(150px, 14vw, 190px);
  height: auto;
}
#viewport.reel-active #brand {
  background: transparent;
  text-shadow: 0 1px 4px #17121a;
  color: var(--refresh-light);
}
#viewport.reel-active #brand .logo {
  filter: brightness(0) invert(1);
}
#viewport.reel-active #brand :is(#site-navigation a, #nav-toggle, #language) { color: var(--refresh-light); }
#viewport.reel-active #nav-toggle span { background: currentColor; }
#skip-entrance, html[lang=en] #skip-entrance {
  display: inline-flex !important;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 2px;
  background: var(--refresh-dark);
  color: var(--refresh-light);
  text-decoration: none;
  text-shadow: none;
  bottom: max(24px, env(safe-area-inset-bottom)) !important;
}
#reel.visible ~ #skip-entrance:not(.gone) { opacity: 1; visibility: visible; pointer-events: auto; }
#reel .film-controls { bottom: max(24px, env(safe-area-inset-bottom)) !important; }
#reel .film-controls button { min-width: 44px; min-height: 44px; }

#after :is(section, #work, #work h2), #after { scroll-margin-top: var(--refresh-header); }
#after #work h2:focus { outline-offset: 8px; }
@media (min-width: 701px) and (orientation: landscape) { html[lang=en] #skip-entrance { left: clamp(28px, 5vw, 72px); right: auto; } }
#side-dots a:focus-visible { outline-color: var(--refresh-wine); }
#to-top { background: var(--refresh-cream); }
.approved-homepage .featured-grid article .featured-frame img { aspect-ratio: 1.85; }
.approved-homepage #case-sweet .featured-frame { border-radius: 0; }
#reel #play-film { display: none; }
.approved-homepage .contact .form-cta {
  padding: 4px 0;
  background: transparent;
  color: var(--refresh-light);
  text-decoration: underline;
  text-decoration-color: var(--refresh-champagne);
  text-underline-offset: 5px;
  font: 400 17px/1.4 Assistant, sans-serif;
}
#viewport.reel-active #reel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #18131c99, transparent 17%);
  pointer-events: none;
  z-index: 2;
}
#viewport.reel-active #skip-entrance {
  background: transparent;
  text-shadow: 0 1px 4px #17121a;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#viewport.reel-active #reel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #18131ce6 0, #18131cd9 145px, transparent 230px);
  pointer-events: none;
  z-index: 2;
}
#after .featured-grid .featured-caption .project-meta {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
html[lang=en] .approved-homepage .contact .form-cta { font-family: Jost, sans-serif; }
html[data-design-treatment=sample] :is(#impact, #art) h2::after {
  content: '✦';
  display: block;
  color: var(--refresh-champagne);
  font: 400 16px/1.5 Georgia, serif;
  margin-top: 6px;
}
html[data-design-treatment=sample] :is(#impact, #art) {
  background-image: url('/cinema-refresh/grain.png');
  background-color: var(--refresh-dark);
}
@media (max-width: 1023px) {
  #side-dots { inset-inline-end: 0; }
  #side-dots a { position: relative; width: 24px; min-height: 26px; justify-content: center; padding: 0; }
  #side-dots span { position: absolute; inset-inline-end: 100%; }
}
@media (max-width: 700px), (orientation: portrait) {
  #skip-entrance, html[lang=en] #skip-entrance {
    left: auto;
    right: auto;
    inset-inline-end: 16px;
    transform: none;
  }
  #skip-entrance:active { transform: scale(.97); }
  #reel .film-controls { right: auto; inset-inline-start: 16px; gap: 8px; }
  #scroll-cue { left: 50%; }
  #viewport.refresh-past-intro #scroll-cue { visibility: hidden !important; }
  #float-bar.shown {
    background: var(--refresh-cream) !important;
    pointer-events: auto;
  }
  #float-bar.shown.on-dark { background: var(--refresh-dark) !important; }
  #float-bar .fb-logo { display: flex; }
  #float-bar .fb-logo img { width: 150px; }
  #to-top.shown { bottom: max(16px, env(safe-area-inset-bottom)); }
  body:not(.refresh-deep) #to-top { visibility: hidden; }
}


.refresh-film-caption {
  position: absolute;
  z-index: 6;
  inset-inline-start: 5%;
  bottom: 96px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  background: rgba(25, 18, 26, .84);
  border-radius: 4px;
  text-shadow: 0 1px 3px #18131c;
  color: var(--refresh-light);
  font-size: 16px;
  line-height: 1.3;
}
.refresh-film-caption bdi { color: var(--refresh-champagne); font-weight: 600; }
.refresh-film-caption:hover, .refresh-film-caption:focus-visible { text-decoration: underline; }
@media (max-width: 700px), (orientation: portrait) {
  .refresh-film-caption { inset-inline-start: 16px; bottom: 80px; }
}

@media (max-width: 360px) {
  html[lang=en] #skip-entrance { padding-inline: 8px; letter-spacing: .08em; }
}

.approved-homepage .work-categories > #art:first-of-type {
  margin-block-start: 0;
}
.approved-homepage #art + #impact {
  margin-block-start: clamp(48px, 6vw, 88px);
  border-block-start: 1px solid color-mix(in srgb, var(--refresh-champagne) 65%, transparent);
  padding-block-start: clamp(36px, 4vw, 64px);
}

/* Keep the work heading below the floating header at the skip destination. */
@media (max-width: 1023px) {
  #after #commercial { padding-block-start: max(72px, 6vw); }
}

#viewport #intro {
  top: max(var(--intro-offset, 18%), calc(var(--brand-bottom, 64px) + 16px));
}
@media (max-width: 700px) {
  #viewport #intro { --intro-offset: 25%; }
}
#brand.menu-open ~ #intro { visibility: hidden; }
#brand.menu-open #site-navigation {
  max-height: calc(100svh - var(--brand-bottom, 64px) - 18px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (orientation: landscape) and (max-height: 450px) {
  #viewport #intro .hero-eyebrow { margin-block: 0 4px; }
  #viewport #intro #hero-title { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
  #viewport #intro #hero-invitation { margin-block: 4px 8px; }
  #viewport #intro #hero-subtitle { margin-block: 0; }
}

/* Keep the closing credits and tickets between the header and player controls. */
#viewport #film-ending.has-tickets {
  inset-block: calc(var(--brand-bottom, 64px) + 16px) max(76px, calc(env(safe-area-inset-bottom) + 60px));
  height: auto;
  display: block;
  overflow-y: auto;
}
#viewport #film-ending.has-tickets.visible { pointer-events: auto; }
#viewport #film-ending.has-tickets > div {
  min-height: 100%;
  padding-block: 6px 16px;
}
#reel:has(#film-ending.visible)::before { opacity: 0; }

#viewport #reel .film-controls { gap: 6px; align-items: center; }
#viewport #reel .film-controls button {
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(35, 28, 36, .64);
  opacity: 1;
}
#viewport #reel .film-controls button::before { inset: 0; }
#viewport #reel .film-controls svg { width: 18px; height: 18px; stroke-width: 1.7; }
#viewport #reel .film-controls button::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 3px;
  color: var(--refresh-light);
  background: var(--refresh-dark);
  font: 400 14px/1.3 Assistant, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}
@media (hover: hover) {
  #viewport #reel .film-controls button:hover::after { visibility: visible; }
}
#viewport #reel .film-controls button:focus-visible::after { visibility: visible; }
@media (max-width: 700px), (orientation: portrait) {
  html[dir=ltr] #viewport #reel .film-controls { left: 12px; right: auto !important; }
  html[dir=rtl] #viewport #reel .film-controls { right: 12px !important; left: auto; }
  #viewport #reel .film-controls { gap: 4px; }
  #viewport #reel:has(#film-ending.visible) #skip-film { display: none; }
  #viewport #reel .film-controls button::after { inset-inline-start: 0; inset-inline-end: auto; transform: none; }
}

/* The closing card owns the visible replay action. */
#viewport #reel .film-controls #replay,
#viewport #reel:has(#film-ending.visible) .film-controls #pause {
  display: none;
}
