@font-face {
  font-family: "adbhashitha normal";
  src: url("assets/AdBhashitha.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yaldevi Colombo";
  src: url("assets/YaldeviColombo-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Sinhala Thin";
  src: url("assets/NotoSerifSinhala-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Sinhala Extra Condensed";
  src: url("assets/NotoSerifSinhala-ExtraCondensedMedium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "UN Abhaya";
  src: url("assets/fonts/UN-Abhaya-6-110-kern.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "UN Alakamanda";
  src: url("assets/fonts/UN-Alakamanda-4-95.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "UN Gemunu";
  src: url("assets/fonts/UN-Gemunu.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "UN Samantha";
  src: url("assets/fonts/UN-Samantha.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #efe8d8;
  --cream: #e4ddc9;
  --ink: #24352b;
  --moss: #53664a;
  --sage: #aab49b;
  --rose: #a77550;
  --gold: #c2a049;
  --line: rgba(36, 53, 43, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 6%, rgba(196, 163, 91, 0.1), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.film-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 8vw 10vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 48%, rgba(153, 132, 45, 0.19), transparent 43%),
    linear-gradient(115deg, #17241f 0%, #263a31 54%, #18251f 100%);
  color: var(--paper);
  pointer-events: none;
  animation: filmLeave 1.5s cubic-bezier(.76, 0, .24, 1) 10.5s forwards;
}

.film-intro::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(245, 241, 231, 0.13);
  pointer-events: none;
}

.intro-frame {
  position: relative;
  z-index: 2;
  width: min(660px, 72vw);
  padding: 28px 0;
}

.intro-overline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 38px;
  color: rgba(245, 241, 231, 0.68);
  font: 9px "UN Gemunu", "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: introLineReveal 900ms cubic-bezier(.22, 1, .36, 1) 500ms forwards;
}

.intro-overline i {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.intro-poem {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
  font-family: "UN Alakamanda", "Noto Sans Sinhala", sans-serif;
}

.intro-landmark {
  position: absolute;
  z-index: 1;
  right: -2%;
  bottom: -4%;
  width: min(78vw, 1000px);
  max-height: 104vh;
  object-fit: cover;
  object-position: center 46%;
  opacity: 0;
  transform: translate(4%, 2%) scale(1.08);
  filter: drop-shadow(0 10px 60px rgba(220, 184, 45, 0.16));
  mix-blend-mode: screen;
  animation: introImageReveal 3.4s cubic-bezier(.2, .7, .2, 1) 250ms forwards;
}

.intro-stanza {
  margin: 0;
  opacity: 0;
  transform: translateY(24px) scale(1.015);
  filter: blur(14px);
  animation: poemFocusReveal 2.6s cubic-bezier(.22, 1, .36, 1) 1.25s forwards;
}

.intro-stanza p {
  margin: 11px 0;
  color: #f5f1e7;
  font-family: inherit;
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.35;
}

@keyframes poemFocusReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(1.015);
    filter: blur(14px);
    text-shadow: 0 0 30px rgba(194, 160, 73, 0.4);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 0 rgba(194, 160, 73, 0);
  }
}

.intro-caption {
  display: flex;
  justify-content: space-between;
  width: min(440px, 100%);
  margin: 42px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(245, 241, 231, 0.22);
  color: rgba(245, 241, 231, 0.5);
  font: 8px "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0;
  animation: introLineReveal 900ms ease 3.8s forwards;
}

.intro-progress {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 2px;
  background: rgba(245, 241, 231, 0.16);
}

.intro-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #d3b75b;
  box-shadow: 0 0 14px rgba(211, 183, 91, 0.45);
  animation: introProgress 12s linear forwards;
}

@keyframes introProgress {
  to { width: 100%; }
}

@keyframes introLineReveal {
  to {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
  }
}

@keyframes introImageReveal {
  to {
    opacity: 0.48;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes filmLeave {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); visibility: hidden; }
}

.cursor-orbit {
  position: fixed;
  width: 54px;
  height: 54px;
  left: -27px;
  top: -27px;
  z-index: 90;
  pointer-events: none;
  border: 1px solid rgba(83, 102, 74, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    width 240ms cubic-bezier(.22, 1, .36, 1),
    height 240ms cubic-bezier(.22, 1, .36, 1),
    margin 240ms cubic-bezier(.22, 1, .36, 1),
    background 240ms ease,
    border-color 240ms ease;
}

.cursor-butterfly {
  width: 31px;
  height: 31px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(36, 53, 43, 0.18));
}

.butterfly-wing {
  fill: #c2a049;
  stroke: #53664a;
  stroke-width: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  animation: butterflyFlutter 700ms ease-in-out infinite alternate;
}

.wing-right {
  animation-delay: -350ms;
}

.butterfly-body {
  fill: none;
  stroke: #24352b;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

@keyframes butterflyFlutter {
  from { transform: scaleY(1); }
  to { transform: scaleY(.62); }
}

.cursor-orbit.active {
  width: 68px;
  height: 68px;
  margin: -7px 0 0 -7px;
  border-color: rgba(194, 160, 73, 0.72);
  background: rgba(194, 160, 73, 0.08);
}

@media (pointer: coarse) {
  .cursor-orbit {
    display: none;
  }
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 74px;
  border-right: 1px solid var(--line);
  background: rgba(239, 232, 216, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 28px;
}

.rail-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-style: italic;
}

.rail-index,
.rail-contact {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-decoration: none;
  color: var(--ink);
  font-family: "Noto Sans Sinhala", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rail-contact {
  line-height: 1.8;
  border-left: 1px solid var(--ink);
  padding-left: 10px;
}

main {
  margin-left: 74px;
}

.header {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4.5%;
  border-bottom: 1px solid var(--line);
}

.cinema-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 74px;
  right: 0;
  height: 82px;
  grid-template-columns: 1fr auto;
  color: var(--ink);
  border-bottom: 0;
  pointer-events: none;
}

.cinema-header a,
.cinema-header button {
  pointer-events: auto;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wordmark small {
  font: 8px "UN Abhaya", "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.58;
}

.header nav {
  display: flex;
  gap: 38px;
}

.header nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: "Noto Sans Sinhala", sans-serif;
  font-size: 11px;
}

.menu-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 11px "Noto Sans Sinhala", sans-serif;
  cursor: pointer;
}

.menu-button i,
.menu-button i::after {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: 180ms ease;
}

.menu-button i::after {
  transform: translateY(6px);
}

.menu-button.open i {
  transform: rotate(45deg);
}

.menu-button.open i::after {
  transform: rotate(-90deg);
}

.mini-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(245, 241, 231, 0.12), transparent 55%),
    rgba(64, 82, 72, 0.06);
  mix-blend-mode: soft-light;
}

.mini-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.statement {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-rows: auto auto 1fr;
  column-gap: 5%;
  align-items: start;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(247, 241, 225, 0.94), rgba(226, 228, 210, 0.91)),
    var(--cream);
  padding: 70px 5.5%;
}

.statement::before {
  content: "";
  position: absolute;
  inset: -35%;
  opacity: 0.3;
  background: repeating-radial-gradient(
    ellipse at 82% 48%,
    transparent 0 34px,
    rgba(83, 102, 74, 0.16) 35px 36px,
    transparent 37px 70px
  );
  pointer-events: none;
}

.statement > * {
  position: relative;
  z-index: 1;
}

.section-number {
  align-self: start;
  margin: 12px 0 0;
  color: #788178;
  font: 9px "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statement blockquote {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 24px 0 0;
  font-family: "UN Alakamanda", sans-serif;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
}

.about-copy {
  grid-column: 1;
  grid-row: 3;
  max-width: 720px;
  margin-top: 30px;
  color: #647066;
  font: 13px/1.9 "Noto Sans Sinhala", sans-serif;
}

.about-copy p {
  margin: 0 0 14px;
}

.about-copy .about-motto {
  display: inline-block;
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 1px solid var(--gold);
  color: var(--moss);
  font: italic 22px/1.3 "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.about-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.about-social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--moss);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.about-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.about-social-link .whatsapp-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-social-link .whatsapp-phone {
  transform: scale(.82);
  transform-origin: center;
}

.about-social-link:hover {
  color: var(--rose);
  background: rgba(167, 117, 80, 0.08);
  transform: translateY(-3px);
}

.about-social-link:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.statement.visible .about-copy p {
  animation: lineReveal 800ms cubic-bezier(.22, 1, .36, 1) both;
}

.statement.visible .about-copy p:nth-child(2) { animation-delay: 120ms; }
.statement.visible .about-copy p:nth-child(3) { animation-delay: 240ms; }

.statement blockquote i {
  color: var(--rose);
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 900ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.statement-note {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: stretch;
  width: 100%;
  max-width: 360px;
  display: flex;
}

.mini-portrait {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  filter: saturate(0.7) sepia(0.1);
}

.statement-note p {
  font: 11px/1.8 "Noto Sans Sinhala", sans-serif;
  color: #747d76;
}

.tiny-flower {
  display: block;
  color: var(--gold);
  margin-bottom: 14px;
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.works-header {
  height: 120px;
  display: flex;
  align-items: center;
  padding: 0 5.5%;
  border-bottom: 1px solid var(--line);
}

.works-stage {
  height: min(78vh, 740px);
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #1d2b24;
}

.works-stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 18px;
  border: 1px solid rgba(245, 241, 231, 0.24);
  pointer-events: none;
}

.image-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition:
    opacity 900ms cubic-bezier(.22, 1, .36, 1),
    transform 1200ms cubic-bezier(.22, 1, .36, 1),
    visibility 900ms;
}

.image-slide::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -24px;
  background:
    linear-gradient(90deg, rgba(18, 28, 22, 0.72), rgba(18, 28, 22, 0.3), rgba(18, 28, 22, 0.72)),
    var(--slide-image) center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.9;
  transform: scale(1.04);
}

.image-slide::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 19, 0.08), transparent 48%, rgba(15, 23, 19, 0.18));
  pointer-events: none;
}

.image-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 5vw, 64px);
  object-fit: contain;
  filter: saturate(0.86) contrast(1.03) drop-shadow(0 24px 54px rgba(0, 0, 0, 0.24));
  transform: scale(1.025);
}

.image-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.image-slide.is-active img {
  animation: imageDrift 12s ease-in-out infinite alternate;
}

@keyframes imageDrift {
  to { transform: scale(1.055); }
}

.slide-controls {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 5.5%;
  border-bottom: 1px solid var(--line);
}

.slide-count {
  margin: 0 12px 0 0;
  color: #788178;
  font: 10px "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.12em;
}

.slide-count span {
  color: var(--moss);
}

.slide-controls button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--moss);
  font: 16px sans-serif;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.slide-controls button:hover {
  background: var(--moss);
  color: var(--paper);
  transform: translateY(-2px);
}

.closing {
  min-height: 620px;
  display: grid;
  grid-template-columns: 20% 24% 56%;
  align-items: center;
  padding: 70px 5.5%;
  background:
    radial-gradient(ellipse at 82% 100%, rgba(194, 160, 73, 0.18), transparent 43%),
    linear-gradient(120deg, #24352b, #1d2c25 72%, #354132);
  color: #f4f0e4;
  position: relative;
  align-content: start;
}

.closing::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("assets/sripada-sunset.jpg") center 52% / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing .section-number {
  color: #afb7af;
  align-self: start;
  margin-top: 20px;
}

.closing-small {
  font: 10px "UN Gemunu", "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing > .email-link {
  color: #f4f0e4;
  text-decoration: none;
  font-size: clamp(38px, 5vw, 76px);
  border-bottom: 1px solid rgba(244, 240, 228, 0.35);
  padding-bottom: 10px;
}

.closing > .email-link span {
  float: right;
  font-size: 0.55em;
  color: #d1b09c;
}

.closing > .email-link,
.closing-socials,
.end-credits {
  transition: opacity 700ms ease, transform 700ms ease;
}

.closing.visible > .email-link {
  animation: closingReveal 900ms cubic-bezier(.22, 1, .36, 1) 180ms both;
}

.closing.visible .closing-socials {
  animation: closingReveal 900ms cubic-bezier(.22, 1, .36, 1) 320ms both;
}

.closing.visible .end-credits {
  animation: closingReveal 900ms cubic-bezier(.22, 1, .36, 1) 400ms both;
}

.closing-socials {
  grid-column: 2 / 4;
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 4vw, 56px);
  margin-top: 40px;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 62px;
  color: rgba(244, 240, 228, 0.76);
  text-decoration: none;
  font: 8px "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 220ms ease, transform 220ms ease;
}

.social-link svg {
  width: 42px;
  height: 42px;
  padding: 11px;
  overflow: visible;
  fill: currentColor;
  border: 1px solid rgba(244, 240, 228, 0.28);
  border-radius: 50%;
  transition: border-color 220ms ease, background 220ms ease;
}

.social-link .whatsapp-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link .whatsapp-phone {
  transform: scale(.82);
  transform-origin: center;
}

.social-link:hover {
  color: #e2c36b;
  transform: translateY(-4px);
}

.social-link:hover svg {
  border-color: rgba(226, 195, 107, 0.8);
  background: rgba(226, 195, 107, 0.08);
}

@keyframes closingReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.end-credits {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 0;
  height: 150px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr auto;
  align-items: center;
  border-top: 1px solid rgba(244, 240, 228, 0.18);
}

.end-credits > p {
  margin: 0;
  font-size: 28px;
  font-style: italic;
}

.end-credits div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.end-credits span,
.end-credits a {
  color: #aeb7af;
  font: 8px "Noto Sans Sinhala", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  padding: 0;
  font-size: 8px;
}

.end-credits b {
  font: 11px "Cormorant Garamond", serif;
  color: #f4f0e4;
}

.menu-panel {
  position: fixed;
  inset: 82px 0 0 74px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  background-color: rgba(239, 232, 216, 0.98);
  background-image: url("assets/sripada-loader.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: min(52vw, 620px) auto;
  transform: translateY(-110%);
  transition: transform 420ms cubic-bezier(.7, 0, .2, 1);
  border-bottom: 1px solid var(--line);
}

.menu-panel.open {
  transform: translateY(0);
}

.menu-panel a {
  opacity: 0;
  transform: translateY(40px);
  transition:
    background 180ms,
    color 180ms,
    opacity 600ms cubic-bezier(.22, 1, .36, 1),
    transform 600ms cubic-bezier(.22, 1, .36, 1);
}

.menu-panel.open a {
  opacity: 1;
  transform: translateY(0);
}

.menu-panel.open a:nth-child(2) { transition-delay: 70ms; }
.menu-panel.open a:nth-child(3) { transition-delay: 140ms; }
.menu-panel.open a:nth-child(4) { transition-delay: 210ms; }
.menu-panel a {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 25px;
  transition: background 180ms, color 180ms;
}

.menu-panel a:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 900px) {
  .rail {
    width: 58px;
  }

  main {
    margin-left: 58px;
  }

  .header nav {
    display: none;
  }

  .cinema-header {
    left: 58px;
  }

  .header {
    grid-template-columns: 1fr auto;
  }

  .statement {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0;
  }

  .statement .section-number {
    grid-column: 1;
    grid-row: 1;
  }

  .statement blockquote {
    grid-column: 1;
    grid-row: 2;
    margin-top: 40px;
  }

  .about-copy {
    grid-column: 1;
    grid-row: 3;
    margin-top: 28px;
  }

  .statement-note {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    margin-top: 40px;
    min-height: 480px;
  }

  .works-stage {
    height: min(72vh, 620px);
    min-height: 0;
  }

  .slide-controls {
    padding: 16px 24px;
  }

  .menu-panel {
    inset-left: 58px;
  }

  .menu-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .film-intro {
    padding: 10vh 8vw 14vh;
  }

  .intro-frame {
    width: 100%;
  }

  .intro-landmark {
    right: -20%;
    bottom: 0;
    width: min(106vw, 480px);
    max-height: 58vh;
  }

  .rail {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .header {
    height: 68px;
    padding: 0 20px;
  }

  .cinema-header {
    left: 0;
  }

  .wordmark small {
    display: none;
  }

  .wordmark {
    font-size: 21px;
  }

  .menu-button span {
    display: none;
  }

  .statement {
    min-height: 480px;
    padding: 55px 24px;
  }

  .statement blockquote {
    font-size: 46px;
  }

  .works-header {
    height: 100px;
    padding: 0 24px;
  }

  .works-stage {
    height: min(66vh, 520px);
    min-height: 400px;
  }

  .image-slide img {
    padding: 24px;
  }

  .slide-controls {
    min-height: 76px;
  }

  .closing {
    min-height: 520px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 50px 24px;
  }

  .closing > .email-link {
    font-size: 31px;
  }

  .closing-socials {
    grid-column: 1;
    justify-content: space-between;
    gap: 0;
    margin-top: 6px;
  }

  .social-link {
    min-width: 54px;
    font-size: 7px;
  }

  .social-link svg {
    width: 40px;
    height: 40px;
  }

  .end-credits {
    left: 24px;
    right: 24px;
    height: 128px;
    grid-template-columns: 1fr 1fr;
  }

  .end-credits div:nth-of-type(2),
  .end-credits > a {
    display: none;
  }

  .menu-panel {
    inset: 68px 0 0 0;
    grid-template-columns: 1fr 1fr;
  }

  .menu-panel a {
    height: 140px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .film-intro {
    display: none;
  }
}
