@font-face {
  font-family: "Vazirmatn Variable";
  src: url("fonts/Vazirmatn-Arabic.woff2?v=3") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("fonts/Vazirmatn-Latin.woff2?v=3") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #11110f;
  --night-soft: #181714;
  --night-raised: #211f1b;
  --paper: #efe7dc;
  --paper-deep: #e4d8c8;
  --ink: #1d1a17;
  --ink-soft: #665f57;
  --light: #f5efe7;
  --light-muted: #bcb1a4;
  --copper: #bd8155;
  --copper-light: #d9ad87;
  --wine: #71352f;
  --line: rgba(35, 29, 24, 0.16);
  --line-light: rgba(239, 231, 220, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--light);
  font-family: "Vazirmatn Variable", "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 430;
  line-height: 1.82;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(189, 129, 85, 0.12), transparent 30%),
    radial-gradient(circle at 80% 5%, rgba(113, 53, 47, 0.11), transparent 28%);
}

::selection {
  background: var(--copper);
  color: var(--night);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--copper);
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.skip {
  position: fixed;
  top: -100px;
  right: 20px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--light);
  color: var(--ink);
}

.skip:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-light);
  background: rgba(17, 17, 15, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(217, 173, 135, 0.2);
  background: rgba(12, 12, 11, 0.97);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--light);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--light-muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2.1px;
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #d7cfc5;
  font-size: 13px;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease;
}

nav a i {
  color: #94887b;
  font-size: 11px;
  transition: color 180ms ease;
}

nav a::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--copper);
  transition: width 180ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--light);
  background: rgba(255, 255, 255, 0.035);
}

nav a:hover i,
nav a[aria-current="page"] i {
  color: var(--copper-light);
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 25px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--light);
}

.nav-scrim {
  display: none;
}

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100vh - 76px);
  margin-inline: auto;
  padding-block: clamp(38px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: clamp(38px, 5.2vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  min-width: 0;
  padding-block: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero .eyebrow,
.writing-band .eyebrow,
.memories .eyebrow {
  color: var(--copper-light);
}

.eyebrow i {
  font-size: 11px;
}

.eyebrow b {
  margin-right: 12px;
  color: #8e8377;
  font-weight: 400;
}

.hero h1 {
  margin: 20px 0 15px;
  color: var(--light);
  font-size: clamp(58px, 6.5vw, 94px);
  font-weight: 800;
  letter-spacing: -3.5px;
  line-height: 1.08;
}

.hero h1 em {
  color: var(--copper-light);
  font-style: normal;
  font-weight: 650;
}

.lead {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 600;
  line-height: 1.7;
}

.hero-intro {
  max-width: 490px;
  margin-top: 16px;
  color: var(--light-muted);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 21px;
  border: 1px solid var(--copper);
  background: var(--copper);
  color: var(--night);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--copper-light);
  background: var(--copper-light);
  transform: translateY(-2px);
}

.button-ghost {
  border-color: rgba(245, 239, 231, 0.25);
  background: transparent;
  color: var(--light);
}

.button-ghost:hover {
  border-color: var(--copper);
  background: rgba(189, 129, 85, 0.09);
  color: var(--copper-light);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: #92877b;
  font-size: 11px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note i {
  color: var(--copper);
}

.hero-photo {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #28231f;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.hero-photo::before {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(245, 239, 231, 0.23);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 54%, rgba(9, 8, 7, 0.82) 100%);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover !important;
  object-position: center 27%;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.045) translate3d(0, var(--portrait-shift, 0px), 0);
  transition: transform 100ms linear, filter 300ms ease, opacity 280ms ease;
}

.frame-index {
  position: absolute;
  top: 25px;
  left: 27px;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid rgba(245, 239, 231, 0.25);
  background: rgba(16, 14, 12, 0.42);
  color: #e4d8cc;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.hero-photo figcaption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--light);
  font-size: 12px;
}

.hero-photo figcaption span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7c7b8;
  font-size: 10px;
}

.section,
.writing-band {
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
}

.section {
  padding-block: clamp(54px, 6vw, 82px);
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 5px;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 750;
  letter-spacing: -1.2px;
  line-height: 1.35;
}

.section-link,
.source-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
}

.section-link {
  flex: 0 0 auto;
  padding: 6px 0 4px;
  border-bottom: 1px solid currentColor;
}

.section-link i,
.source-link i,
.back-link i,
.writing-list > a > i {
  font-size: 11px;
  transition: transform 180ms ease;
}

.section-link:hover i,
.source-link:hover i,
.back-link:hover i,
.writing-list > a:hover > i {
  transform: translateX(-4px);
}

.grid {
  display: grid;
  gap: 30px 22px;
}

.films {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.articles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.articles.single-item {
  grid-template-columns: 1fr;
}

.articles.single-item .card {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(28px, 4vw, 58px);
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.17);
}

.articles.single-item .card-image {
  grid-column: 1;
  grid-row: 1 / 4;
  aspect-ratio: 16 / 9;
}

.articles.single-item .meta,
.articles.single-item h3,
.articles.single-item p {
  grid-column: 2;
}

.articles.single-item .meta {
  align-self: end;
  margin-top: 8px;
}

.articles.single-item h3 {
  align-self: end;
  margin-top: 8px;
  font-size: clamp(23px, 2.7vw, 38px);
}

.articles.single-item p {
  align-self: start;
  max-width: 560px;
  margin-top: 8px;
  font-size: 14px;
}

.card {
  min-width: 0;
  display: block;
  color: var(--ink);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7cabb;
  box-shadow: 0 10px 30px rgba(29, 24, 20, 0.08);
}

.card-image.poster {
  aspect-ratio: 2 / 3;
  background: #d4c8b9;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover !important;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 250ms ease, opacity 280ms ease;
}

.card-film .card-image img {
  object-position: center;
}

.card-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(18, 16, 14, 0.76);
  color: var(--light);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease;
}

.card:hover .card-image img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.045);
}

.card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.card h3 {
  margin-top: 6px;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.55;
}

.card p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.writing-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.45fr);
  gap: clamp(38px, 7vw, 105px);
  padding-block: clamp(58px, 6vw, 86px);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background:
    linear-gradient(115deg, rgba(113, 53, 47, 0.14), transparent 42%),
    var(--night-soft);
  color: var(--light);
}

.writing-intro {
  align-self: start;
}

.writing-band h2 {
  margin-top: 10px;
  font-size: clamp(36px, 4vw, 55px);
  font-weight: 720;
  letter-spacing: -1.4px;
  line-height: 1.35;
}

.writing-intro > p {
  max-width: 320px;
  margin-top: 13px;
  color: var(--light-muted);
  font-size: 14px;
  line-height: 1.95;
}

.button-light {
  margin-top: 24px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.writing-list {
  border-top: 1px solid var(--line-light);
}

.writing-list > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding-right 180ms ease, background-color 180ms ease;
}

.writing-list > a:hover {
  padding-right: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.writing-list .number {
  color: var(--copper-light);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
}

.writing-list small {
  color: #a89e92;
  font-size: 10px;
}

.writing-list h3 {
  margin: 2px 0 3px;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 650;
  line-height: 1.55;
}

.writing-list p {
  color: var(--light-muted);
  font-size: 12px;
  line-height: 1.75;
}

.news-section {
  background: var(--paper-deep);
}

.memories {
  background: var(--night);
  color: var(--light);
}

.memories .section-heading {
  border-color: var(--line-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  gap: 14px;
}

.gallery-grid a {
  position: relative;
  height: clamp(290px, 26vw, 390px);
  overflow: hidden;
  background: var(--night-raised);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) contrast(1.04);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 240ms ease, opacity 280ms ease;
}

.gallery-grid a > span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(17, 17, 15, 0.72);
  color: var(--light);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-grid a:hover img {
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.04);
}

.gallery-grid a:hover > span {
  opacity: 1;
  transform: translateY(0);
}

.archive {
  min-height: 76vh;
}

.archive-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.archive-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.25;
}

.archive-head > p {
  color: var(--ink-soft);
  font-size: 15px;
}

.filters {
  display: none;
  grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.45fr);
  gap: 14px;
  margin: 28px 0 38px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

.js .filters {
  display: grid;
}

.filters label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.filters label > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.filters label > span i {
  color: var(--wine);
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(37, 30, 24, 0.24);
  border-radius: 0;
  background: #f8f2e9;
  color: var(--ink);
  padding: 11px 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(189, 129, 85, 0.12);
}

.archive #archive-grid > div {
  min-width: 0;
}

.empty-results {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--ink-soft);
}

.detail {
  min-height: 72vh;
}

.back-link {
  margin-bottom: 30px;
  color: var(--ink-soft);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 7vw, 94px);
  margin-bottom: 48px;
}

.detail-copy h1 {
  margin: 11px 0 13px;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 790;
  letter-spacing: -2px;
  line-height: 1.25;
}

.detail-copy > .lead {
  max-width: 680px;
  color: #403a34;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 500;
}

.detail-role {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0 9px;
  margin-top: 20px;
  color: #39332d;
  font-size: 14px;
}

.detail-role i {
  grid-row: 1 / 3;
  margin-top: 6px;
  color: var(--wine);
}

.detail-role span {
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-role strong {
  grid-column: 2;
  font-weight: 500;
}

.detail-copy > .button {
  margin-top: 23px;
}

.detail-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #cec0af;
  box-shadow: 18px 18px 0 rgba(113, 53, 47, 0.12);
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image.poster {
  height: auto;
  padding: 0;
  background: var(--night-soft);
  object-fit: contain;
}

.detail-film .detail-visual {
  aspect-ratio: auto;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.detail-photo .detail-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

.detail-photo .detail-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-photo .detail-visual {
  width: 100%;
  max-width: 1120px;
  aspect-ratio: auto;
  justify-self: center;
  background: var(--night-soft);
  box-shadow: none;
}

.detail-photo .detail-image {
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.detail-photo .prose {
  margin-top: 24px;
}

.portrait-visual .detail-image {
  filter: saturate(0.75) contrast(1.03);
}

.reading-tools {
  max-width: 800px;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 auto 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.js .reading-tools {
  display: flex;
}

.reading-tools > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.reading-tools button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.reading-tools button:hover {
  border-color: var(--copper);
  background: rgba(189, 129, 85, 0.08);
}

.prose {
  max-width: 800px;
  margin-inline: auto;
  color: #302b26;
  font-size: 19px;
  line-height: 2.08;
  overflow-wrap: anywhere;
}

.prose p {
  margin-bottom: 20px;
}

.inline-prose {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 2;
}

.source-link {
  width: max-content;
  margin-top: 4px;
  color: var(--wine);
  border-bottom: 1px solid currentColor;
}

.detail-source {
  max-width: 800px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.image-caption {
  margin: -24px 0 28px;
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-state {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-state > i {
  color: var(--wine);
  font-size: 28px;
}

.empty-state > span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 4px;
}

.empty-state h1 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 52px);
}

.empty-state p {
  margin: 6px 0 22px;
  color: var(--ink-soft);
}

footer {
  border-top: 1px solid var(--line-light);
  background: #0d0d0c;
}

.footer-inner {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  font-size: 16px;
}

.footer-inner > p {
  color: #8f867c;
  font-size: 11px;
}

.scroll-top {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(217, 173, 135, 0.5);
  border-radius: 50%;
  background: rgba(17, 17, 15, 0.92);
  color: var(--copper-light);
  font-size: 13px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 220ms ease, transform 220ms ease, border-color 180ms ease, background-color 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--night);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 110;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--copper-light));
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

.js .reveal-item {
  opacity: 1;
  transform: none;
}

.js .reveal-item.is-revealed {
  animation: cinema-reveal 500ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.js .hero-photo.reveal-item {
  transform: none;
}

.js .hero-photo.reveal-item.is-revealed {
  animation: cinema-photo-reveal 620ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.js .hero-photo img,
.js .card-image img,
.js .gallery-grid img {
  opacity: 1;
}

.js .hero-photo img.is-loaded,
.js .card-image img.is-loaded,
.js .gallery-grid img.is-loaded {
  opacity: 1;
}

@keyframes cinema-reveal {
  from {
    opacity: 0.35;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinema-photo-reveal {
  from {
    opacity: 0.45;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.writing-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  background: var(--paper);
}
.writing-card .meta { margin-top: 0; flex-wrap: wrap; }
.writing-card h3 { line-height: 1.85; overflow-wrap: anywhere; }
.writing-card > p { margin-top: 12px; line-height: 1.95; }
.writing-card-author { margin-top: auto; padding-top: 20px; font-size: 12px; line-height: 1.9; color: var(--ink-soft); }
.writing-card-link { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--wine); font-size: 13px; }
.archive-count { margin-bottom: 24px; color: var(--ink-soft); font-size: 14px; }
.archive-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.archive-pagination button:disabled { opacity: .4; cursor: default; }
.archive-provenance { max-width: 800px; margin: 16px auto; font-size: 14px; line-height: 2; color: var(--ink-soft); overflow-wrap: anywhere; }
.document-scans { max-width: 850px; margin: 40px auto 0; }
.document-scans h2 { font-size: 24px; margin-bottom: 24px; }
.document-scans figure { margin-bottom: 24px; }
.document-scans img { width: 100%; height: auto; }
.document-scans figcaption { font-size: 13px; margin-top: 8px; }
.source-footnotes { max-width: 800px; margin: 40px auto; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 2; }
.source-footnotes h2 { font-size: 22px; margin-bottom: 12px; }
.source-footnotes dl > div { display: flex; gap: 14px; margin-top: 10px; }
.source-footnotes dt { flex: 0 0 26px; color: var(--wine); }
.source-footnotes dd { margin: 0; overflow-wrap: anywhere; }

.honor-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 250px;
  height: 100%;
  aspect-ratio: 4 / 3;
  color: var(--copper);
  background: linear-gradient(135deg, #272420, #11110f);
  font-size: clamp(58px, 7vw, 100px);
}
.card-honor .card-image { aspect-ratio: 4 / 3; }
.card-honor .card-image img { object-fit: contain; background: #211f1b; }
.detail-honor .detail-image { object-fit: contain; }
.honor-facts { margin: 24px 0; display: grid; gap: 12px; }
.honor-facts > div { padding-block: 10px; border-bottom: 1px solid var(--line); }
.honor-facts dt { font-size: 13px; color: var(--ink-soft); }
.honor-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.related-honors { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.related-honors > h2 { margin-bottom: 24px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.admin-tabs a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; }
.admin-tabs a[aria-current="page"] { background: var(--wine); color: white; }
.admin-tabs small { margin-inline-start: 8px; opacity: .75; }
.admin-hint { margin: 12px 0 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.admin-search { display: grid; gap: 8px; margin-bottom: 16px; }
.admin-form fieldset { border: 1px solid var(--line); padding: 20px; display: grid; gap: 16px; min-width: 0; }
.admin-form legend { padding: 0 8px; font-weight: 600; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-columns > * { min-width: 0; }
.admin-row > div { overflow-wrap: anywhere; min-width: 0; }
.admin-row > a { flex-shrink: 0; }
.admin-wrap h2 { font-size: 24px; }
@media (min-width: 861px) and (max-width: 1050px) {
  .header-inner { gap: 12px; }
  nav a { padding-inline: 8px; gap: 4px; }
  nav a i { display: none; }
}
@media (max-width: 640px) {
  .form-columns { grid-template-columns: 1fr; }
  .admin-tabs a { flex: 1 1 42%; text-align: center; }
  .admin-form fieldset { padding: 12px; }
  .admin-row small { display: block; margin-right: 0; }
}

.admin-wrap {
  width: min(calc(100% - 40px), 1120px);
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: clamp(25px, 4vw, 48px);
  background: var(--paper);
  color: var(--ink);
}

.admin-wrap > a:first-child {
  color: var(--wine);
  font-size: 13px;
}

.admin-wrap h1 {
  margin: 8px 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.45;
}

.admin-form {
  max-width: 820px;
  display: grid;
  gap: 16px;
}

.admin-form textarea {
  min-height: 230px;
  resize: vertical;
}

.admin-form .check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form .check input {
  width: auto;
}

.admin-form > img {
  width: 160px;
  height: 200px;
  object-fit: cover;
}

.notice {
  margin: 18px 0;
  padding: 13px 15px;
  border-right: 3px solid var(--copper);
  background: #dfd1c0;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row > a {
  color: var(--wine);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.admin-actions form {
  margin: 0;
}

.admin-row small {
  margin-right: 6px;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 38px;
  }

  .films {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }

  .articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .gallery-grid a:last-child {
    grid-column: 1 / -1;
    height: 330px;
  }
}

@media (max-width: 860px) {
  body.menu-open {
    position: fixed;
    top: var(--menu-scroll-top, 0);
    width: 100%;
    overflow: hidden;
  }

  /* A fixed mobile header keeps the menu trigger anchored while the page is scrolled. */
  .js .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
  }

  .js body {
    padding-top: var(--nav-height, 69px);
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-block: 11px;
  }

  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(217, 173, 135, 0.24);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, background-color 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] {
    border-color: rgba(217, 173, 135, 0.6);
    background: rgba(189, 129, 85, 0.12);
  }

  nav {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
  }

  .js nav {
    position: fixed;
    top: var(--nav-height, 69px);
    right: 0;
    z-index: 105;
    width: min(84vw, 360px);
    height: calc(100vh - var(--nav-height, 69px));
    height: calc(100dvh - var(--nav-height, 69px));
    max-height: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 18px 14px max(20px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(217, 173, 135, 0.2);
    background: #151412;
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 260ms cubic-bezier(0.22, 0.7, 0.2, 1), opacity 180ms ease, visibility 180ms ease;
  }

  .js nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  nav a {
    min-height: 52px;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-light);
    background: transparent;
    font-size: 14px;
    flex-shrink: 0;
  }

  nav a i {
    width: 24px;
    color: var(--copper-light);
    font-size: 13px;
    text-align: center;
  }

  nav a::after {
    right: 14px;
    bottom: 6px;
  }

  .nav-scrim {
    position: fixed;
    inset: var(--nav-height, 69px) 0 0;
    z-index: 99;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .articles.single-item .card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 40px 54px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-photo {
    width: min(100%, 680px);
    justify-self: center;
  }

  .writing-band {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .writing-intro > p {
    max-width: 540px;
  }

  .writing-band h2 br {
    display: none;
  }

  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    width: min(100%, 560px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .footer-inner,
  .hero {
    width: min(calc(100% - 32px), var(--max));
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    padding-block: 30px 44px;
  }

  .hero h1 {
    margin-top: 15px;
    font-size: clamp(46px, 13.8vw, 68px);
    letter-spacing: -2.5px;
  }

  .hero-intro {
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .hero-note {
    display: grid;
  }

  .hero-photo figcaption {
    right: 22px;
    bottom: 20px;
    left: 22px;
  }

  .hero-photo figcaption span:last-child {
    display: none;
  }

  .section,
  .writing-band {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section {
    padding-block: 44px;
  }

  .section-heading {
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 23px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-link {
    font-size: 12px;
  }

  .films,
  .articles {
    grid-template-columns: 1fr 1fr;
    gap: 28px 13px;
  }

  .articles .card p {
    display: none;
  }

  .articles.single-item .card {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .articles.single-item .card p {
    display: block;
  }

  .articles.single-item .card-image {
    aspect-ratio: 16 / 10;
  }

  .card h3 {
    font-size: 17px;
  }

  .meta {
    gap: 5px 12px;
    font-size: 11px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .writing-list > a {
    grid-template-columns: 34px minmax(0, 1fr) 15px;
    gap: 12px;
  }

  .writing-list p {
    display: none;
  }

  .writing-list h3 {
    font-size: 17px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .gallery-grid a {
    height: 215px;
  }

  .gallery-grid a:first-child,
  .gallery-grid a:last-child {
    grid-column: 1 / -1;
    height: 280px;
  }

  .filters {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
    padding: 14px;
  }

  .archive #archive-grid.articles {
    grid-template-columns: 1fr;
  }

  .archive #archive-grid.articles .card p {
    display: block;
  }

  .detail-head {
    gap: 28px;
    margin-bottom: 36px;
  }

  .detail-copy h1 {
    font-size: 38px;
    letter-spacing: -1.3px;
  }

  .prose {
    font-size: 17px;
    line-height: 2.05;
  }

  .inline-prose {
    font-size: 15px;
  }

  .footer-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-block: 25px;
  }

  .footer-inner > p {
    order: 3;
    width: 100%;
  }

  .scroll-top {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  .admin-row {
    flex-wrap: wrap;
  }
}

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

  .card h3 {
    font-size: 19px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid a,
  .gallery-grid a:first-child,
  .gallery-grid a:last-child {
    grid-column: auto;
    height: 270px;
  }
}

@media (hover: none), (pointer: coarse) {
  .card-action,
  .gallery-grid a > span {
    opacity: 1;
    transform: none;
  }
}

.card:focus-visible .card-action,
.gallery-grid a:focus-visible > span {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Film catalogue: keep poster lettering intact and media provenance visible. */
.card-film .card-image.poster img { object-fit: contain; background: #151513; }
.poster-placeholder { min-height: 100%; width: 100%; aspect-ratio: 3/4; background: linear-gradient(150deg,#292b27,#131412); color: #e7dfca; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; }
.poster-placeholder strong { font-size: clamp(22px,3vw,38px); line-height: 1.6; }
.poster-placeholder i { font-size: 30px; opacity: .5; }
.poster-placeholder small { font-size: 11px; opacity: .65; }
.archive-cover { position: relative; isolation: isolate; overflow: hidden; }
.archive-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover !important; z-index: -2; }
.archive-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.35)); z-index: -1; }
.archive-cover small { opacity: 1; }
.image-fallback-note { position: absolute; bottom: 8px; right: 8px; left: 8px; padding: 8px; color: #fff; background: rgba(0,0,0,.8); font-size: 12px; text-align: center; z-index: 2; }
.detail-visual { position: relative; }
.card-honor .card-image img { object-fit: contain; background: #191916; }
.film-credit { font-size: 12px; line-height: 1.8; margin: 6px 0; }
.film-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; margin-top: 9px; }
.film-badges span { border: 1px solid #a59a7844; padding: 2px 8px; border-radius: 4px; font-size: 10px; }
.film-facts { margin: 24px 0; border-top: 1px solid #9e956e44; }
.film-facts>div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 15px; border-bottom: 1px solid #9e956e33; padding: 11px 0; font-size: 13px; line-height: 1.9; }
.film-facts dt { opacity: .65; }.film-facts dd { margin: 0; }
.film-media h2 { font-size: 18px; margin: 24px 0 12px; }
.film-media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.film-media-actions .button { white-space: normal; text-align: center; }
.media-note,.media-unavailable { font-size: 12px; line-height: 2; opacity: .72; }
.media-note p { margin: 5px 0; }
.filmography { margin-top: 65px; }.filmography-scroll { overflow-x: auto; }
.filmography table { width: 100%; border-collapse: collapse; text-align: right; font-size: 14px; }
.filmography caption { text-align: right; font-size: 12px; opacity: .7; padding: 0 0 16px; }
.filmography th,.filmography td { padding: 13px 16px; border-bottom: 1px solid #9e956e33; line-height: 1.8; }
.filmography th { font-weight: 500; }.filmography thead { background: #9e956e15; }
.filmography td:first-child { white-space: nowrap; }
.filmography a { text-decoration: underline; text-underline-offset: 5px; }
@media(max-width:600px) { .film-facts>div { grid-template-columns: 86px minmax(0,1fr); gap: 10px; }.filmography th,.filmography td { padding: 10px 6px; font-size: 12px; } }
