:root {
  --ci-paper: #f7f4ed;
  --ci-surface: #e5e1d8;
  --ci-sand: #d6c4aa;
  --ci-ink: #1d1b18;
  --ci-muted: #514b44;
  --ci-deep: #1b1b19;
  --ci-blue: #102f39;
  --ci-amber: #e8a646;
  --ci-warm: #d4862b;
  --ci-line: rgba(29, 27, 24, .2);
  --ci-ease: cubic-bezier(.22, 1, .36, 1);
  --ci-page: clamp(20px, 5vw, 76px);
}

html { scroll-behavior: smooth; }
body.cinematic-institute-page { margin: 0; color: var(--ci-ink); background: var(--ci-paper); }
body.cinematic-institute-page,
body.cinematic-institute-page * { font-family: "DM Sans", Arial, sans-serif; box-sizing: border-box; }
body.cinematic-institute-page ::selection { color: var(--ci-deep); background: var(--ci-amber); }
body.cinematic-institute-page :focus-visible { outline: 3px solid var(--ci-amber); outline-offset: 4px; }
body.cinematic-institute-page img { display: block; width: 100%; }
.cinematic-institute { overflow: clip; background: var(--ci-paper); }
.cinematic-institute h1,
.cinematic-institute h2,
.cinematic-institute h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.cinematic-institute p { text-wrap: pretty; }

.cinematic-institute-page .irp-global-header { color: #fff; background: transparent; border-bottom-color: rgba(255,255,255,.18); transition: color .35s ease, background .35s ease, border-color .35s ease, transform .35s var(--ci-ease); }
.cinematic-institute-page .irp-global-header:not(.is-compact) .irp-global-header__brand-sprite { filter: brightness(0) invert(1); }
.cinematic-institute-page .irp-global-header:not(.is-compact) .irp-global-header__brand { background: transparent; }
.cinematic-institute-page .irp-global-header.is-compact { color: var(--ci-ink); background: rgba(247,244,237,.95); border-bottom-color: var(--ci-line); backdrop-filter: blur(16px); }
.cinematic-institute-page .irp-global-header:not(.is-compact) a,
.cinematic-institute-page .irp-global-header:not(.is-compact) button { color: #fff; }

.cinematic-progress { position: fixed; z-index: 120; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; }
.cinematic-progress span { display: block; width: 100%; height: 100%; background: var(--ci-amber); transform: scaleX(0); transform-origin: left; }

.institute-opening { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ci-deep); }
.institute-opening { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ci-deep); }
.institute-opening__frames,
.institute-opening__frames figure,
.institute-opening__shade { position: absolute; inset: 0; margin: 0; }
.opening-frame { opacity: 0; overflow: hidden; animation: opening-cut 42s linear infinite; animation-delay: var(--delay); }
.opening-frame img { height: 100%; object-fit: cover; object-position: var(--position, center); transform: var(--from); animation: opening-camera 42s linear infinite; animation-delay: var(--delay); }
.opening-frame--one { --delay: -1.2s; --from: scale(1.04); --to: scale(1.12) translate3d(-1%, -.5%, 0); --position: 50% 48%; }
.opening-frame--two { --delay: 4.8s; --from: scale(1.11) translate3d(-.7%,0,0); --to: scale(1.04) translate3d(.5%,-.4%,0); }
.opening-frame--three { --delay: 10.8s; --from: scale(1.04); --to: scale(1.12) translate3d(1%,-.8%,0); }
.opening-frame--four { --delay: 16.8s; --from: scale(1.12) translate3d(.7%,-.4%,0); --to: scale(1.04) translate3d(-.6%,.4%,0); }
.opening-frame--five { --delay: 22.8s; --from: scale(1.04) translate3d(0,.4%,0); --to: scale(1.12) translate3d(-.5%,-.5%,0); }
.opening-frame--six { --delay: 28.8s; --from: scale(1.11) translate3d(-.6%,.2%,0); --to: scale(1.04) translate3d(.6%,-.4%,0); }
.opening-frame--seven { --delay: 34.8s; --from: scale(1.04) translate3d(.3%,0,0); --to: scale(1.12) translate3d(-.8%,-.5%,0); }
.institute-opening__shade { z-index: 1; background: linear-gradient(90deg, rgba(10,12,12,.88) 0, rgba(10,12,12,.48) 48%, rgba(10,12,12,.08) 80%), linear-gradient(0deg, rgba(8,9,9,.92) 0, transparent 62%); }
.institute-opening__copy { position: relative; z-index: 2; width: min(100%, 980px); padding: 18vh var(--ci-page) 9vh; }
.institute-opening h1 { max-width: 11ch; font-size: clamp(52px, 6.5vw, 104px); line-height: .92; }
.institute-opening__copy > p { max-width: 58ch; margin: 30px 0 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.6; }
.institute-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.institute-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; color: var(--ci-deep); background: var(--ci-amber); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .3s ease, background .3s ease, transform .45s var(--ci-ease); }
.institute-button:hover { background: #fff3dc; transform: translateY(-2px); }
.institute-link { min-height: 44px; display: inline-flex; align-items: center; color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.institute-link:hover { color: var(--ci-amber); }
.institute-opening__scroll { position: absolute; z-index: 3; right: var(--ci-page); bottom: 9vh; display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.institute-opening__scroll i { position: relative; width: 48px; height: 1px; overflow: hidden; background: rgba(255,255,255,.5); }
.institute-opening__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ci-amber); animation: line-scan 2.2s ease-in-out infinite; }

.institute-story-cinema { color: #fff; background: var(--ci-deep); }
.institute-story-scene { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.institute-story-scene { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.institute-story-scene__film,
.institute-story-scene__shade { position: absolute; inset: 0; margin: 0; }
.institute-story-scene__film { z-index: -2; overflow: hidden; background: var(--ci-deep); }
.institute-story-scene__film img { height: 100%; object-fit: cover; object-position: var(--scene-position, center); transform: scale(1.025); }
.institute-story-scene.is-active .institute-story-scene__film img { animation: story-camera 16s linear infinite alternate; }
.institute-story-scene__shade { z-index: -1; background: linear-gradient(90deg,rgba(5,10,11,.9) 0,rgba(5,10,11,.6) 42%,rgba(5,10,11,.08) 76%),linear-gradient(0deg,rgba(5,10,11,.94) 0,transparent 60%); }
.institute-story-scene__copy { width: min(100%, 1100px); padding: 14vh var(--ci-page) 9vh; }
.institute-story-scene h2 { max-width: 10ch; font-size: clamp(48px,5.5vw,84px); line-height: .95; }
.institute-story-scene h3 { max-width: 11ch; font-size: clamp(50px,6vw,92px); line-height: .94; }
.institute-story-scene--title h2 { margin-bottom: clamp(48px,8vh,96px); color: rgba(255,255,255,.72); font-size: clamp(28px,3vw,44px); line-height: 1; }
.institute-story-scene p { max-width: 52ch; margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: clamp(16px,1.2vw,20px); line-height: 1.65; }
.institute-story-scene a { color: #fff; text-underline-offset: 4px; }
.institute-story-scene__place { margin-top: 7vh; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.48); color: rgba(255,255,255,.78); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.institute-arrival .institute-story-scene:first-child { --scene-position: center 52%; }
.institute-arrival .institute-story-scene:nth-child(2) { --scene-position: 52% center; }
.institute-chapters .institute-story-scene:nth-child(2) { --scene-position: center 32%; }

.institute-pulse { padding: 12vh 0 8vh; color: #fff; background: var(--ci-blue); overflow: hidden; }
.institute-pulse__copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; padding: 0 var(--ci-page) 7vh; }
.institute-pulse h2 { max-width: 11ch; font-size: clamp(46px, 5.5vw, 84px); line-height: .96; }
.institute-pulse__copy p { max-width: 44ch; margin: 0; color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.65; }
.institute-pulse__window { height: clamp(310px, 38vw, 580px); overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent); }
.institute-pulse__track { display: flex; width: max-content; height: 100%; animation: pulse-film 118s linear infinite; animation-play-state: paused; will-change: transform; }
.institute-pulse.is-visible:not(.is-paused) .institute-pulse__track { animation-play-state: running; }
.institute-pulse__set { display: flex; gap: 8px; padding-right: 8px; }
.institute-pulse__set figure { flex: none; width: clamp(280px, 32vw, 490px); height: 100%; margin: 0; overflow: hidden; }
.institute-pulse__set figure:nth-child(3n+1) { width: clamp(220px, 24vw, 370px); }
.institute-pulse__set img { height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .5s ease, transform .9s var(--ci-ease); }
.institute-pulse__set figure:hover img { filter: saturate(1); transform: scale(1.025); }
.institute-motion { min-height: 44px; padding: 0; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.pulse-motion { display: block; margin: 22px var(--ci-page) 0 auto; color: #fff; }
.institute-motion:hover { color: var(--ci-amber); }

.institute-archive { padding: 12vh 0 10vh; overflow: hidden; background: radial-gradient(circle at 82% 8%,#fffdf8 0,transparent 35%),linear-gradient(145deg,#f7f4ed 18%,#efc982 100%); }
.institute-archive__intro { display: grid; grid-template-columns: 1fr .8fr; gap: 6vw; align-items: end; padding: 0 var(--ci-page) 8vh; }
.institute-archive h2 { max-width: 9ch; font-size: clamp(50px, 6vw, 92px); line-height: .94; }
.institute-archive__intro p { max-width: 40ch; margin: 0; color: var(--ci-muted); font-size: 18px; line-height: 1.65; }
.archive-motion { grid-column: 2; justify-self: end; color: var(--ci-ink); }
.institute-film { display: grid; gap: clamp(34px, 5vw, 72px); }
.institute-film-rail > header { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin: 0 var(--ci-page) 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ci-line); }
.institute-film-rail h3 { font-size: clamp(23px, 2.4vw, 36px); }
.institute-film-rail header span { color: var(--ci-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.institute-film-window { overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent); }
.institute-film-track { display: flex; width: max-content; height: clamp(235px, 28vw, 420px); animation: archive-film 95s linear infinite; animation-play-state: paused; will-change: transform; }
.institute-archive.is-visible:not(.is-paused) .institute-film-track { animation-play-state: running; }
.rail-2 .institute-film-track,
.rail-4 .institute-film-track,
.rail-6 .institute-film-track { animation-direction: reverse; animation-duration: 105s; }
.rail-3 .institute-film-track,
.rail-7 .institute-film-track { animation-duration: 86s; }
.rail-5 .institute-film-track { animation-duration: 112s; }
.institute-film-set { display: flex; gap: 8px; padding-right: 8px; }
.institute-film-frame { position: relative; flex: none; width: clamp(220px, 25vw, 380px); height: 100%; margin: 0; overflow: hidden; background: var(--ci-deep); }
.institute-film-frame:nth-child(4n+1) { width: clamp(330px, 38vw, 580px); }
.institute-film-frame a { display: block; height: 100%; color: #fff; }
.institute-film-frame img { height: 100%; object-fit: cover; transition: transform .8s var(--ci-ease), filter .4s ease; }
.institute-film-frame:hover img { transform: scale(1.025); filter: saturate(1.06); }
.institute-film-frame figcaption { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 12px; color: #fff; background: rgba(16,18,18,.68); backdrop-filter: blur(10px); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.institute-film-frame figcaption span { color: var(--ci-amber); }

.institute-history-scroll { position: relative; display: grid; grid-template-columns: 58% 42%; color: #fff; background: var(--ci-deep); }
.institute-history-scroll__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #090a0a; }
.institute-history-scroll__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #090a0a; }
.history-scroll-frame,
.institute-history-scroll__shade { position: absolute; inset: 0; margin: 0; }
.history-scroll-frame { opacity: 0; transform: scale(1.09); transition: opacity .9s ease, transform 1.45s var(--ci-ease); }
.history-scroll-frame.is-current { opacity: 1; transform: scale(1); }
.history-scroll-frame img { height: 100%; object-fit: cover; object-position: center; transform: scale(1.025); }
.history-scroll-frame.is-current img { animation: history-scroll-camera 15s linear infinite alternate; }
.history-scroll-frame:nth-child(1) img { object-position: center 36%; }
.history-scroll-frame:nth-child(2) img { object-position: center 44%; }
.history-scroll-frame:nth-child(4) img { object-position: center 28%; }
.institute-history-scroll__shade { z-index: 1; background: linear-gradient(90deg,transparent 58%,rgba(8,9,9,.32)),linear-gradient(0deg,rgba(5,7,7,.74),transparent 52%); pointer-events: none; }
.institute-history-scroll__progress { position: absolute; z-index: 2; right: 28px; top: 12vh; bottom: 12vh; width: 2px; background: rgba(255,255,255,.25); }
.institute-history-scroll__progress span { display: block; width: 100%; height: 100%; background: var(--ci-amber); transform: scaleY(.25); transform-origin: top; transition: transform .7s var(--ci-ease); }
.institute-history-scroll__story { padding: 0 var(--ci-page); }
.history-scroll-beat { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ci-ease); }
.history-scroll-beat { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ci-ease); }
.history-scroll-beat.is-current { opacity: 1; transform: none; }
.history-scroll-beat h2 { max-width: 10ch; font-size: clamp(48px,5vw,78px); line-height: .96; }
.history-scroll-beat h3 { max-width: 11ch; font-size: clamp(38px,4vw,62px); line-height: .98; }
.history-scroll-beat time { display: block; margin-bottom: 24px; color: var(--ci-amber); font-size: clamp(50px,5vw,76px); font-weight: 500; line-height: .9; letter-spacing: -.035em; }
.history-scroll-beat p { max-width: 43ch; margin: 28px 0 0; color: rgba(255,255,255,.76); font-size: clamp(16px,1.2vw,19px); line-height: 1.65; }
.institute-closing { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ci-deep); }
.institute-closing { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ci-deep); }
.institute-closing__frames,
.institute-closing__frames figure,
.institute-closing__shade { position: absolute; inset: 0; margin: 0; }
.institute-closing__shade { z-index: 1; background: linear-gradient(90deg,rgba(6,8,8,.88),rgba(6,8,8,.26) 72%),linear-gradient(0deg,rgba(6,8,8,.94),transparent 62%); }
.institute-closing__copy { position: relative; z-index: 2; width: min(100%, 960px); padding: 13vh var(--ci-page) 9vh; }
.institute-closing h2 { max-width: 11ch; font-size: clamp(50px, 6vw, 92px); line-height: .94; }
.institute-closing__copy > p { max-width: 50ch; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(16px,1.2vw,20px); line-height: 1.65; }
.institute-reference { margin: 0; padding: 34px var(--ci-page); color: var(--ci-muted); background: var(--ci-paper); border-bottom: 1px solid var(--ci-line); }
.institute-reference p { max-width: 76ch; margin: 0 auto; font-size: 14px; line-height: 1.65; }
.institute-reference a { color: var(--ci-ink); text-underline-offset: 4px; }
.closing-frame { opacity: 0; animation: closing-cut 14s ease-in-out infinite; }
.closing-frame--two { animation-delay: 7s; }
.closing-frame img { height: 100%; object-fit: cover; transform: scale(1.03); animation: closing-camera 14s linear infinite alternate; }

@keyframes opening-cut { 0%{opacity:0} 3%,12%{opacity:1} 14.3%,100%{opacity:0} }
@keyframes opening-camera { 0%{transform:var(--from)} 14.3%,100%{transform:var(--to)} }
@keyframes line-scan { 0%{transform:translateX(-105%)} 55%,100%{transform:translateX(105%)} }
@keyframes story-camera { to{transform:scale(1.105) translate3d(var(--scene-pan-x,1%),var(--scene-pan-y,-.7%),0)} }
@keyframes pulse-film { to{transform:translateX(-50%)} }
@keyframes archive-film { to{transform:translateX(-50%)} }
@keyframes history-scroll-camera { to{transform:scale(1.1) translate3d(1%,-.6%,0)} }
@keyframes closing-cut { 0%,8%{opacity:0} 16%,50%{opacity:1} 58%,100%{opacity:0} }
@keyframes closing-camera { to{transform:scale(1.1) translate3d(-.7%,-.5%,0)} }

@media (max-width: 900px) {
  .institute-opening__copy { padding-bottom: 11vh; }
  .institute-opening__scroll { display: none; }
  .institute-pulse__copy,
  .institute-archive__intro { display: block; }
  .institute-pulse__copy p,
  .institute-archive__intro p { margin-top: 24px; }
  .archive-motion { margin-top: 20px; }
  .institute-story-scene__shade { background: linear-gradient(0deg,rgba(5,10,11,.97) 0,rgba(5,10,11,.68) 45%,rgba(5,10,11,.06) 78%); }
  .institute-story-scene__copy { padding: 42vh 20px 8vh; }
  .institute-history-scroll { display: block; }
  .institute-history-scroll__stage { height: 100vh; }
  .institute-history-scroll__stage { height: 100svh; }
  .institute-history-scroll__shade { background: linear-gradient(0deg,rgba(8,9,9,.96),rgba(8,9,9,.5) 48%,rgba(8,9,9,.08) 78%); }
  .institute-history-scroll__story { position: relative; z-index: 3; margin-top: -100vh; padding: 0 20px; }
  .institute-history-scroll__story { position: relative; z-index: 3; margin-top: -100svh; padding: 0 20px; }
  .history-scroll-beat { min-height: 100vh; justify-content: flex-end; padding: 46vh 0 9vh; }
  .history-scroll-beat { min-height: 100svh; justify-content: flex-end; padding: 46vh 0 9vh; }
}

@media (max-width: 620px) {
  .institute-opening__shade { background: linear-gradient(0deg,rgba(8,9,9,.97) 0,rgba(8,9,9,.7) 45%,rgba(8,9,9,.08) 82%); }
  .institute-opening__copy { padding: 42vh 20px 7vh; }
  .institute-opening h1 { max-width: 10ch; font-size: clamp(45px,12vw,58px); line-height: .94; }
  .institute-opening__copy > p { margin-top: 22px; font-size: 15px; line-height: 1.55; }
  .institute-actions { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 26px; }
  .institute-button { width: 100%; }
  .institute-link { align-self: flex-start; }
  .opening-frame--one { --position: 55% center; }
  .opening-frame--four { --position: 48% 28%; }
  .institute-story-scene h2,
  .institute-story-scene h3,
  .institute-pulse h2,
  .institute-archive h2,
  .history-scroll-beat h2,
  .history-scroll-beat h3,
  .institute-closing h2 { font-size: clamp(42px,10.8vw,52px); line-height: .97; }
  .institute-story-scene--title h2 { margin-bottom: 40px; font-size: 25px; }
  .institute-story-scene__place { margin-top: 5vh; }
  .institute-pulse { padding-top: 10vh; }
  .institute-pulse__copy { padding: 0 20px 6vh; }
  .institute-pulse__copy p,
  .institute-archive__intro p { font-size: 16px; }
  .institute-pulse__window { height: 76vw; }
  .institute-pulse__set figure { width: 76vw; }
  .institute-pulse__set figure:nth-child(3n+1) { width: 58vw; }
  .pulse-motion { margin-right: 20px; }
  .institute-archive { padding-top: 10vh; }
  .institute-archive__intro { padding: 0 20px 6vh; }
  .institute-film-rail > header { align-items: flex-start; flex-direction: column; margin: 0 20px 12px; }
  .institute-film-track { height: 74vw; }
  .institute-film-frame { width: 66vw; }
  .institute-film-frame:nth-child(4n+1) { width: 92vw; }
  .institute-closing__copy { padding: 38vh 20px 7vh; }
  .institute-closing__shade { background: linear-gradient(0deg,rgba(6,8,8,.97),rgba(6,8,8,.62) 47%,transparent 82%); }
  .institute-history-scroll__progress { right: 14px; top: 8vh; bottom: 8vh; }
  .history-scroll-beat p { font-size: 16px; }
  .institute-reference { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening-frame,
  .opening-frame img,
  .institute-opening__scroll i::after,
  .institute-pulse__track,
  .institute-film-track,
  .institute-story-scene__film img,
  .history-scroll-frame img,
  .closing-frame,
  .closing-frame img { animation: none !important; transform: none !important; }
  .opening-frame:first-child,
  .closing-frame:first-child { opacity: 1; }
  .institute-pulse__window,
  .institute-film-window { overflow-x: auto; mask-image: none; scroll-snap-type: x mandatory; }
  .institute-pulse__set[aria-hidden="true"],
  .institute-film-set[aria-hidden="true"] { display: none; }
  .institute-pulse__set figure,
  .institute-film-frame { scroll-snap-align: center; }
  .institute-motion { display: none; }
  .history-scroll-frame,
  .history-scroll-beat,
  .institute-history-scroll__progress span { transition: none; }
  .history-scroll-frame { opacity: 0; }
  .history-scroll-frame:first-child { opacity: 1; transform: none; }
  .history-scroll-beat { opacity: 1; transform: none; }
  .institute-history-scroll__progress { display: none; }
}
