
:root {
  color-scheme: light;
  --ink: #12372a;
  --ink-deep: #102d23;
  --paper: #faf8f3;
  --white: #fffefa;
  --line: #deded1;
  --muted: #4e6257;
  --copper: #b5713b;
  --sand: #f5e6d8;
  --sage: #e8eee6;
  --heading: "Segoe UI", system-ui, sans-serif;
  --editorial: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 6vw, 5.25rem); letter-spacing: -.063em; }
h2 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -.05em; }
h3 { font-size: 1.53rem; letter-spacing: -.035em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, .darija { font-family: Tahoma, var(--body); letter-spacing: 0; }
[dir="rtl"] h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.24; }
:focus-visible { outline: 3px solid #a25a24; outline-offset: 4px; }
.shell { width: min(1224px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 12px; top: -100px; padding: 12px; background: var(--white); }
.skip:focus { top: 12px; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.47rem/1 var(--heading); letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 7px; flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 40px); }
nav a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .94rem; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--ink); border-color: var(--copper); }
.language { min-height: 40px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: transparent; }
.hero {
  background: #12372a;
  color: #fffaf0;
  padding-block: clamp(37px, 5.8vw, 87px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 35%, #264b3b, transparent 64%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(30px, 4.6vw, 67px);
  position: relative;
  z-index: 1;
  align-items: center;
}
.hero-copy h1 {
  font: 500 clamp(2.55rem, 6vw, 5.55rem)/1.045 var(--editorial);
  letter-spacing: -.067em;
}
.hero-line { display: block; overflow: hidden; padding-block-end: .065em; }
.hero-reveal { display: block; }
.hero-copy h1 em { color: #edc49f; font-weight: 400; }
.hero-copy > p {
  color: #e2eadf;
  font-size: clamp(1rem, 1.35vw, 1.19rem);
  max-width: 49ch;
  margin-top: 16px;
}
.home-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35%);
  min-width: 0;
  min-height: 326px;
  background: #f5e6d8;
  color: #12372a;
  border: 1px solid #f2dfc8;
  border-radius: 9px;
  overflow: hidden;
  outline-offset: 5px;
  box-shadow: 0 18px 40px #0d261b3d;
}
.spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(19px, 3.05vw, 42px);
}
.spotlight-copy .eyebrow { margin-block-end: 15px; color: #854b22; }
.spotlight-copy h2 {
  font: 500 clamp(1.75rem, 3.55vw, 3.2rem)/1.1 var(--editorial);
  letter-spacing: -.054em;
}
.spotlight-topic { white-space: nowrap; }
.spotlight-copy > p:not(.eyebrow) {
  margin-block: 13px 19px;
  color: #415c50;
  font-size: clamp(.93rem, 1.23vw, 1.09rem);
}
.spotlight-action { margin-top: auto; font-weight: 700; }
.home-spotlight:hover .spotlight-action { text-decoration: underline; text-underline-offset: 4px; }
.spotlight-cover { position: relative; overflow: hidden; background: #eedfce; }
.spotlight-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
[dir="rtl"] .hero-copy h1, [dir="rtl"] .spotlight-copy h2 {
  font-family: Tahoma, var(--body);
  letter-spacing: 0;
}
@keyframes hero-line-reveal {
  from { opacity: .18; transform: translateY(75%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-caption-in {
  from { opacity: .12; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spotlight-in {
  from { opacity: .15; transform: translateY(19px) scale(.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spotlight-image-in {
  from { opacity: .48; transform: scale(1.08); clip-path: inset(0 0 14% 0); }
  to { opacity: 1; transform: scale(1); clip-path: inset(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-entrance .hero-reveal { animation: hero-line-reveal 670ms cubic-bezier(.16,.75,.3,1) both; }
  .hero-entrance .hero-line:nth-child(2) .hero-reveal { animation-delay: 80ms; }
  .hero-entrance .hero-line:nth-child(3) .hero-reveal { animation-delay: 155ms; }
  .hero-entrance .hero-copy > p { animation: hero-caption-in 600ms 185ms cubic-bezier(.18,.7,.29,1) both; }
  .hero-entrance .home-spotlight { animation: spotlight-in 710ms 160ms cubic-bezier(.16,.76,.31,1) both; }
  .hero-entrance .spotlight-cover img { animation: spotlight-image-in 800ms 220ms cubic-bezier(.17,.77,.32,1) both; }
}
.home-domains { background: var(--white); border-block-end: 1px solid var(--line); }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.domain-group { border-inline-start: 1px solid var(--line); min-width: 0; }
.domain-group:last-child { border-inline-end: 1px solid var(--line); }
.domain-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 80px; padding: 13px 20px;
}
.domain-link:hover { background: #edf1eb; }
.domain-link h2 { font: 700 clamp(1rem, 1.65vw, 1.35rem)/1.15 var(--body); letter-spacing: -.035em; }
.domain-link p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.fiscal-topic { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: .89rem; font-weight: 700; }
.fiscal-topic:hover { text-decoration: underline; text-underline-offset: 4px; }
.domain-group .fiscal-topic { margin: 0 20px 12px; min-height: 30px; }
.library-search .fiscal-topic { margin-top: 13px; }
.home-feature { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .9fr); gap: clamp(22px, 6vw, 80px); align-items: start; }
.home-edition h2, .rubrics-title, .page-intro h1 { font-family: var(--editorial); font-weight: 500; }
.home-edition h2 { max-width: 18ch; }
.home-edition > p { color: var(--muted); max-width: 54ch; margin-top: 12px; }
[dir="rtl"] .home-edition h2, [dir="rtl"] .rubrics-title, [dir="rtl"] .page-intro h1 { font-family: Tahoma, var(--body); }
.home-reading { border-top: 1px solid #b9c8ba; }
.reading-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 10px; border-bottom: 1px solid #b9c8ba; }
.reading-link p { color: #785231; font-size: .85rem; font-weight: 650; margin-bottom: 3px; }
.reading-link h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.reading-link:hover { background: #edf1eb; }
.home-rubrics { border-block-start: 1px solid var(--line); background: #eef1eb; }
.home-rubrics .section { padding-block: clamp(30px, 4.2vw, 62px); }
.eyebrow { color: #7c4825; margin-bottom: 13px; }
.spotlight-copy h2 { font-size: clamp(1.65rem, 3.05vw, 2.65rem); }
.spotlight-copy > p:not(.eyebrow) { margin-block: 12px 16px; color: var(--muted); font-size: .91rem; }
.spotlight-action { margin-top: auto; font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }
.home-spotlight:hover .spotlight-action { text-decoration: underline; }
.home-spotlight > img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; object-position: center 59%; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--copper); flex-shrink: 0; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.search { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); background: var(--white); border-radius: 7px; color: var(--ink); width: 100%; max-width: 665px; }
.search-icon { display: inline-block; width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; margin-inline: 9px 4px; flex-shrink: 0; }
.search-icon::after { content: ""; width: 6px; height: 1.5px; position: absolute; inset: 10px auto auto 10px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.search input { min-width: 0; width: 100%; padding: 8px 0; border: 0; color: var(--ink); background: transparent; }
.search input::placeholder { color: #53685d; }
.search input:focus { outline-offset: 3px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; color: var(--white); background: var(--ink); font-weight: 650; font-size: .91rem; border: 1px solid var(--ink); border-radius: 5px; }
.button:hover { background: #224e3e; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--line); }
.button-light:hover { background: var(--sage); }
.search .button { flex-shrink: 0; }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; color: var(--muted); font-size: .84rem; }
.suggestions a { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; }
.suggestions a:hover { background: var(--sage); border-color: #9bb1a4; }
.ref-icon { display: grid; place-items: center; width: 35px; height: 38px; border-radius: 4px; background: var(--sage); color: var(--ink); font: 500 1.17rem var(--heading); }
.arrow { color: #81512d; font-size: 1.12rem; }
.section { padding-block: clamp(38px, 5.7vw, 77px); }
.rubrics-title { margin-bottom: 23px; }
.rubrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.rubric { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 9px 10px; padding: clamp(17px, 2.25vw, 27px); min-height: 150px; border: 1px solid var(--line); border-block-start: 2px solid #597c6d; border-radius: 3px; background: var(--white); transition: background-color .15s, border-color .15s; }
.rubric h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); overflow-wrap: anywhere; }
.rubric p { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .94rem; }
.rubric .arrow { grid-column: 2; grid-row: 1; }
.rubric:hover { background: var(--sage); border-color: var(--ink); }
.text-link { font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.feature-grid { display: grid; grid-template-columns: 1.43fr 1fr; gap: 18px; }
.feature-card { min-height: 245px; padding: clamp(20px, 3vw, 37px); display: flex; flex-direction: column; justify-content: space-between; align-items: start; gap: 20px; background: var(--sage); border: 1px solid #d0dbc9; border-radius: 5px; }
.feature-card h3 { margin: 10px 0; }
.feature-card p:not(.eyebrow) { color: var(--muted); }
.video-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, 43%); padding: 0; overflow: hidden; background: #f0e5d6; border-color: #e3d3be; }
.video-card > div { padding: clamp(14px, 2.4vw, 27px); align-self: center; }
.video-card img { height: 100%; width: 100%; max-height: 300px; object-fit: cover; object-position: center 56%; }
.video-card h3 { margin-bottom: 13px; }
.page-intro { padding-block: 42px 31px; border-bottom: 1px solid var(--line); background: #eaf0e9; }
.page-intro h1 { font-size: clamp(2.5rem, 5.3vw, 4.6rem); margin-top: 9px; max-width: 19ch; }
.page-intro p { margin-top: 12px; color: var(--muted); max-width: 62ch; }
.breadcrumb { display: inline-block; min-height: 28px; font-size: .89rem; font-weight: 700; }
.breadcrumb:hover { text-decoration: underline; }
.library-body { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 20px 40px; padding-block: 28px 75px; }
.library-search { grid-column: 1 / -1; }
.filters { padding-inline-end: 12px; }
.filters h2 { font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 10px 0; }
.filters a { display: block; padding: 9px 10px; margin-block: 2px; border-radius: 4px; color: var(--muted); }
.filters a:hover, .filters a[aria-current] { background: var(--sage); color: var(--ink); }
.results-meta { margin: 18px 0 10px; color: var(--muted); font-size: .89rem; }
.result-list { display: grid; gap: 10px; }
.result { padding: 18px 19px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.result:hover { border-color: #899f91; }
.result h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
.result p { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.status { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 4px; background: var(--sage); color: var(--ink); font-size: .76rem; font-weight: 700; }
.status.project { background: var(--sand); color: #643819; }
.document { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr); gap: 30px; align-items: start; }
.paper { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: var(--white); border-radius: 5px; }
.paper h2 { font-size: 1.8rem; margin-bottom: 14px; }
.paper p + p { margin-top: 12px; }
.paper .button { margin-top: 17px; }
.metadata { margin-block: 12px 0; }
.metadata div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.metadata div:last-child { border: 0; }
.metadata dt { color: var(--muted); font-size: .84rem; }
.metadata dd { font-weight: 650; margin: 2px 0 0; overflow-wrap: anywhere; }
.document .stack { display: grid; gap: 22px; }
.related { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.related:hover { text-decoration: underline; }
.empty { padding: 25px; border: 1px dashed #a0a99c; border-radius: 5px; }
.reader { display: block; width: 100%; height: min(74vh, 800px); min-height: 490px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.media-layout { display: grid; grid-template-columns: 1fr minmax(0, 1.3fr); gap: 28px; align-items: start; }
.media-layout video { max-height: 72vh; min-height: 250px; width: 100%; background: var(--ink-deep); border-radius: 6px; }
.footer { padding: 34px 0 28px; border-top: 1px solid var(--line); background: #132b23; color: #fbf5eb; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-grid p { margin-top: 7px; font-size: .88rem; color: #d9e4d9; }
.signature { display: block; margin-top: 1px; font: italic 1.15rem "Segoe Script", cursive; color: #f0c6a0; }
.footer a:hover { text-decoration: underline; }
.note { color: var(--muted); font-size: .85rem; margin-top: 16px; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero-grid { gap: 25px; }
  .rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-row { flex-wrap: wrap; min-height: 0; padding-top: 13px; gap: 3px 10px; }
  nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 6px; }
  nav a { min-height: 44px; font-size: .81rem; }
  .brand { font-size: 1.37rem; }
  .hero-grid, .document, .media-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
  .hero-copy > p { margin-top: 14px; }
  .home-spotlight { min-height: 225px; }
  .spotlight-copy .eyebrow { margin-block-end: 10px; }
  .home-feature { grid-template-columns: minmax(0, 1fr); }
  .domain-grid { grid-template-columns: minmax(0, 1fr); }
  .domain-group, .domain-group:last-child { border-inline: 0; }
  .domain-group + .domain-group { border-top: 1px solid var(--line); }
  .domain-link { min-height: 64px; padding-inline: 12px; }
  .domain-group .fiscal-topic { margin-inline: 12px; }
  .rubrics-title { margin-bottom: 16px; }
  .rubrics { gap: 10px; }
  .rubric { min-height: 130px; gap: 8px 6px; }
  .rubric h3 { font-size: clamp(.97rem, 4.4vw, 1.25rem); }
  .rubric .arrow { font-size: 1rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { min-height: 190px; }
  .library-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 23px 44px; }
  .filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
  .filters h2 { flex-basis: 100%; }
  .filters a { padding: 6px 8px; font-size: .88rem; }
  .result { gap: 10px; padding: 13px; }
  .result h2 { font-size: 1.28rem; }
}
@media (max-width: 365px) {
  .search { gap: 6px; }
  .search-icon { margin-inline: 1px 4px; }
  .search .button { padding-inline: 8px; }
  .search input { font-size: .84rem; }
  nav a { font-size: .75rem; }
  .rubric { padding: 12px; }
  .spotlight-copy { padding: 14px; }
  .spotlight-copy > p:not(.eyebrow) { margin-block: 9px 12px; }
  .rubric p { font-size: .85rem; }
}

.library-toolbar {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; margin-block-end: 9px;
}
.library-toolbar .results-meta { margin: 0; }
.library-toolbar .text-link { font-size: .9rem; }
.edition-list { list-style: none; padding: 0; margin: 14px 0 0; }
.edition-list li { border-block-start: 1px solid var(--line); }
.edition-list a, .edition-current {
  display: flex; align-items: start; justify-content: space-between; gap: 10px;
  padding: 11px 8px; min-height: 44px; font-size: .94rem;
}
.edition-list a:hover { background: var(--sage); }
.edition-current { background: var(--sage); font-weight: 700; flex-wrap: wrap; }
.edition-current small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.source-header {
  display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between;
  gap: 14px 18px; padding-block-end: 12px; border-block-end: 1px solid var(--line);
}
.source-header .button { min-height: 44px; }

.cinema-hero { background: #0d2b21; padding-block: 0; isolation: isolate; }
.cinema-hero::after { content: none; }
.cinema-layout {
  position: relative; z-index: 2; display: flex; align-items: center;
  min-height: clamp(480px, 43vw, 610px); padding-block: 48px;
  pointer-events: none;
}
.cinema-layout .hero-copy { max-width: 60%; pointer-events: auto; }
.cinema-layout h1 { font-size: clamp(3rem, 6.3vw, 5.75rem); }
.cinema-layout .hero-copy > p { max-width: 39ch; }
.cinema-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 29px; }
.cinema-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 650; }
.cinema-links .arrow { font-size: 1rem; }
.cinema-primary { background: #f5e6d8; color: #12372a; padding-inline: 17px; border-radius: 4px; }
.cinema-primary:hover { background: #fff6e9; }
.cinema-secondary { color: #fff0df; }
.cinema-secondary:hover { text-decoration: underline; text-underline-offset: 5px; }
.cinema-hero a:focus-visible, .cinema-hero button:focus-visible { outline-color: #edc49f; }

.cinema-visual { position: absolute; z-index: 1; inset-block: 0; inset-inline: 34% 0; }
.cinema-shot, .cinema-camera { position: absolute; inset: 0; overflow: hidden; }
.cinema-shot { mask-image: linear-gradient(90deg, transparent, #000 30%); }
[dir="rtl"] .cinema-shot { mask-image: linear-gradient(270deg, transparent, #000 23%); }
.cinema-camera { transform-origin: 65% 51%; }
.cinema-camera img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 46%; }
.cinema-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #0a251aca, transparent 24%);
}
.cinema-light {
  position: absolute; inset: -50% -35%; pointer-events: none; opacity: 0;
  background: linear-gradient(102deg, transparent 34%, #ffd5a042 47%, #fff0cf80 51%, #e8c2992a 56%, transparent 68%);
  mix-blend-mode: screen;
}
.cinema-reflection { display: none; }
.cinema-replay {
  position: absolute; inset-block-end: 20px; inset-inline-end: 24px;
  display: none; align-items: center; gap: 8px; min-height: 44px;
  padding-inline: 13px; border: 1px solid #fff1e280; border-radius: 4px;
  color: #fff4e8; background: #0d2b21d9; font-size: .89rem;
}
.cinema-replay span { font-size: 1.15rem; line-height: 1; }
.cinema-replay:hover { background: #0d2b21; }

.cinema-edition { padding-block: 24px; background: #fbf7f0; }
.cinema-edition .home-spotlight {
  min-height: 218px; grid-template-columns: minmax(0, 1fr) clamp(144px, 25%, 238px);
  box-shadow: none; border-color: #e4cfba;
}
.cinema-edition .spotlight-copy { padding: clamp(18px, 3vw, 34px); }
.cinema-edition .spotlight-copy h2 { font-size: clamp(1.7rem, 4.5vw, 3.3rem); }
.cinema-edition .spotlight-cover img { object-fit: contain; object-position: center; }

@keyframes cinema-dolly {
  0% { transform: scale(1.24) translate3d(2.4%, -1.5%, 0) rotate(-1.6deg); filter: brightness(.68); }
  23% { transform: scale(1.16) translate3d(.7%, -.8%, 0) rotate(-1deg); filter: brightness(1.02); }
  72% { transform: scale(1.035) translate3d(-.45%, .08%, 0) rotate(-.13deg); filter: brightness(1.03); }
  100% { transform: scale(1) translate3d(0, 0, 0) rotate(0deg); filter: none; }
}
@keyframes cinema-raking-light {
  0%, 9% { transform: translate3d(-51%, 0, 0) skewX(-12deg); opacity: 0; }
  28% { opacity: .93; }
  56% { opacity: .5; }
  80%, 100% { transform: translate3d(52%, 0, 0) skewX(-12deg); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cinema-replay { display: inline-flex; }
  .cinema-playing .cinema-camera { animation: cinema-dolly 4.4s cubic-bezier(.25,.55,.35,1) both; }
  .cinema-playing .cinema-light { animation: cinema-raking-light 4.4s cubic-bezier(.39,0,.58,1) both; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cinema-camera img {
    transform: translate3d(var(--view-x, 0px), var(--view-y, 0px), 0) scale(1.022);
    transition: transform 460ms cubic-bezier(.2,.65,.3,1);
  }
  .cinema-reflection {
    display: block; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 50%), #f9ce924f 0%, #f9ce921a 12%, transparent 33%);
    mix-blend-mode: screen; transition: opacity 420ms ease;
  }
  .cinema-visual:hover .cinema-reflection { opacity: .85; }
}
@media (max-width: 820px) {
  .cinema-layout { min-height: 0; padding-block: 34px 18px; }
  .cinema-layout .hero-copy { max-width: 100%; }
  .cinema-layout h1 { font-size: clamp(2.55rem, 8vw, 4.8rem); }
  .cinema-links { margin-top: 21px; gap: 8px 18px; }
  .cinema-links a { min-height: 44px; }
  .cinema-visual { position: relative; inset: auto; height: clamp(190px, 61vw, 390px); }
  .cinema-camera img { object-position: 55% 47%; }
  .cinema-shot, [dir="rtl"] .cinema-shot { mask-image: linear-gradient(180deg, transparent, #000 27%); }
  .cinema-shot::after { background: linear-gradient(0deg, #0a251a9e, transparent 30%); }
  .cinema-replay { inset-block-end: 12px; inset-inline-end: 16px; }
  .cinema-edition { padding-block: 15px; }
  .cinema-edition .home-spotlight { grid-template-columns: minmax(0, 1fr) 34%; min-height: 220px; }
}
@media (max-width: 365px) {
  .cinema-links { gap: 6px 14px; font-size: .875rem; }
  .cinema-primary { padding-inline: 12px; }
  .cinema-edition .spotlight-copy { padding: 15px 13px; }
}
