@font-face {
  font-family: Inter;
  src: url("Inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Keep fallback text close to Inter’s line lengths while it downloads. */
@font-face {
  font-family: "Inter layout fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 108%;
}

:root {
  color-scheme: dark;
  --body: Inter, "Inter layout fallback", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --display: var(--serif);
  --measure: 78rem;
  --gutter: clamp(1.25rem, 4.6vw, 5.5rem);
  --ink: #0b0e11;
  --text: #f0e9de;
  --muted: #c1bab1;
  --rule: #44403c;
  --accent: #e19e86;
  --focus: #fcba9e;
  --masthead-height: 0px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  scrollbar-gutter: stable;
  scroll-padding-block-start: calc(var(--masthead-height) + 1rem);
}

:root:has(dialog[open]) { overflow: hidden; overscroll-behavior: none; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
main { min-height: 55vh; }
/* Align the first chapter below the navigation when jumping past the rail. */
:is(.studio-dock, .chapter-dock) + section { scroll-margin-block-start: -1rem; }
img { display: block; max-width: 100%; }
video { display: block; max-width: 100%; }
figure, h1, h2, h3, h4, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font-family: inherit; font-size: inherit; }
button { color: inherit; }

:where(a, button, input, select, video, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  scroll-margin-block: .5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 20;
  inset: .5rem auto auto .5rem;
  padding: .75rem 1.2rem;
  transform: translateY(calc(-100% - 1rem));
  color: #141014;
  background: #f2e8de;
}

.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--measure)); margin-inline: auto; }

.masthead {
  position: relative;
  z-index: 10;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  container: masthead / inline-size;
}

[data-sticky] .masthead { position: sticky; inset-block-start: 0; }
.masthead__shell {
  width: min(calc(100% - 2 * clamp(1.25rem, 3.6vw, 4rem)), 93rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.65rem;
  gap: 1.25rem;
}

.masthead__brand { flex: none; display: block; width: clamp(7.75rem, 13vw, 10.25rem); }
.masthead__brand img { width: 100%; height: auto; }
.masthead__nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.7rem, 1.75vw, 1.85rem); }
.masthead__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: .05rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
}

.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: var(--text); }
.masthead__nav a[aria-current="page"]::after {
  position: absolute;
  content: "";
  height: 2px;
  inset: auto 0 .08rem;
  background: var(--accent);
}

.masthead__nav .masthead__peer {
  min-height: 2.65rem;
  justify-content: center;
  padding-inline: .9rem;
  border: 1px solid var(--rule);
  color: var(--text);
}

.masthead__nav .masthead__peer:hover { border-color: var(--accent); }
.masthead__mobile, .masthead__controls { display: none; }
.masthead__controls { align-items: center; gap: .36rem; margin-inline-start: auto; }
.masthead__search {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
}
.masthead__search:hover, .masthead__search[aria-current="page"] { border-color: var(--accent); }
.masthead__search-icon {
  position: relative;
  width: .76rem;
  height: .76rem;
  margin: -.12rem .12rem 0 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.masthead__search-icon::after {
  content: "";
  position: absolute;
  inset: 83% auto auto 83%;
  width: .39rem;
  border-block-start: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}
.masthead__toggle {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.7rem;
  padding: .45rem .7rem;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: .875rem;
  cursor: pointer;
  list-style: none;
}

.masthead__toggle::-webkit-details-marker { display: none; }
.masthead__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.masthead__mobile[open] .masthead__toggle { border-color: var(--accent); }

.menu-bars {
  position: relative;
  display: block;
  width: 1rem;
  height: .55rem;
  border-block: 1px solid currentColor;
}

@container masthead (max-width: 62rem) {
  .masthead__shell { flex-wrap: wrap; min-height: 4rem; gap: .4rem 1rem; }
  .masthead__nav--desktop { display: none; }
  .masthead__controls { display: flex; }
  .masthead__mobile { display: block; }
  .masthead__nav--mobile {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: max(5rem, calc(100dvh - var(--menu-clearance, 4.5rem)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem var(--gutter) 1.2rem;
    border-bottom: 1px solid var(--rule);
    background: var(--ink);
    box-shadow: 0 1rem 2rem #0008;
  }
  .masthead__nav--mobile a {
    padding-inline: .7rem;
    min-height: 3.1rem;
    border-bottom: 1px solid var(--rule);
  }
  .masthead__nav--mobile a[aria-current="page"]::after { inset: .45rem auto .45rem 0; width: 2px; height: auto; }
  .masthead__nav--mobile .masthead__peer { align-self: flex-start; margin-top: .85rem; }
}

h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(3.4rem, 7.2vw, 7.4rem); }
h2 { font-size: clamp(2.15rem, 4.75vw, 4.35rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2.1rem); }

.kicker {
  font: 650 .87rem/1.35 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.15rem;
  max-width: 100%;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  font-size: .95rem;
  font-weight: 660;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.action--outline { border-color: #927c6b; background: #10101274; }
.action--outline:hover { border-color: #e2b394; background: #2d221b; }
.action--solid { border-color: #a7826a; background: #33251e; }
.action--solid:hover { background: #4a362b; }
.action--paper { color: #1b1615; background: #ede5d8; }
.action--paper:hover { background: #fff6e8; }
.action--accent { border-color: #ba836d; background: #603831; }
.action--accent:hover { background: #78463c; }
.action--ember { border-color: #c88a73; background: #75382f; }
.action--ember:hover { background: #8c4235; }

.inline-link {
  display: inline-block;
  color: var(--text);
  font-weight: 630;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

.inline-link:hover { color: var(--accent); }
.section-heading { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; }

.sub-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 17rem;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: #121419;
}

.sub-hero--art { min-height: clamp(22rem, 36vw, 31rem); }
.sub-hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.sub-hero--art::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #0b0e11 0%, #0b0e11ce 39%, #0b0e111c 75%), linear-gradient(0deg, #0b0e11e8, transparent 72%);
}

.sub-hero__copy { padding-block: clamp(3rem, 7vw, 6.9rem) clamp(2.6rem, 5.3vw, 4.6rem); }
.sub-hero__copy h1 { max-width: 19ch; margin-block: .42rem .82rem; }
.sub-hero__lead { max-width: 54ch; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.26rem); }
.breadcrumb { margin-bottom: 1.15rem; display: flex; gap: .6rem; color: var(--muted); font-size: .9rem; }
.breadcrumb a { text-underline-offset: .25em; text-decoration-color: var(--accent); }

.arcena-mark {
  position: relative;
  display: block;
  aspect-ratio: 2058 / 468;
  overflow: hidden;
}

.arcena-mark img {
  position: absolute;
  inset: -23.93% auto auto -2.28%;
  width: 105.54%;
  height: auto;
  max-width: none;
}

.site-end { container: site-footer / inline-size; background: #100f11; border-top: 1px solid var(--rule); }
.site-end__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .65fr); gap: clamp(1rem, 3vw, 2rem); padding-block: 3.15rem; }
.arcena-site .site-end__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .83fr) minmax(0, .7fr); }
.site-end__identity a { display: inline-block; max-width: 100%; }
.site-end__identity img { width: 9rem; height: auto; }
.site-end__identity p { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.site-end__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.1rem; align-content: start; }
.site-end__related, .site-end__equipment { display: grid; align-content: start; gap: .55rem; }
.site-end a:not(:has(img)) { width: fit-content; max-width: 100%; color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: .26em; }
.site-end a:hover { color: var(--text); }
.site-end__last { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding-block: 1.1rem 1.35rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.missing-page { background: radial-gradient(ellipse at 80% 30%, #2d221e, #171519 70%); }
.empty-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1rem, 5vw, 4rem); padding-block: clamp(2.75rem, 8vw, 6rem); }
.empty-page h1 { margin-block: .45rem 1.8rem; }
.missing-page__art { width: 100%; aspect-ratio: 1.45; object-fit: cover; border: 1px solid #73584b; }
.missing-page__press { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1rem; }
.missing-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; max-width: 32rem; margin-top: 1.25rem; }
.missing-search input { width: 100%; min-width: 0; height: 100%; padding: .45rem .7rem; border: 1px solid #8a6f60; border-radius: 0; background: #211a1a; color: var(--text); }
.missing-search input::placeholder { color: var(--muted); }

.film-player {
  width: min(calc(100% - 2rem), 59rem);
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 3.1vw, 2rem);
  color: var(--text);
  background: #111417;
  border: 1px solid #8e7161;
  overscroll-behavior: contain;
}

.film-player::backdrop { background: #08090cef; }
.film-player__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.close-control { min-height: 2.7rem; padding: .4rem .75rem; border: 1px solid #8e7161; background: #241f1e; cursor: pointer; }
.close-control:hover { background: #3a2923; }
.film-player h2 { margin-block: .4rem 1rem; font-size: clamp(1.65rem, 4vw, 3rem); }
.film-player video { width: 100%; height: auto; max-height: 62dvh; background: #070809; aspect-ratio: 16 / 9; object-fit: contain; }
.film-player video + p { margin-block: 1rem .65rem; color: var(--muted); }
.film-player__error:not(:empty) { margin-block: .4rem .65rem; color: var(--accent); }
.play-triangle { display: inline-block; flex: none; width: .7rem; height: .75rem; clip-path: polygon(0 0, 100% 50%, 0 100%); background: currentColor; }

@media (max-width: 43rem) {
  :root { --gutter: clamp(1.1rem, 5vw, 2.2rem); }
  .sub-hero--art { min-height: 20rem; }
  .sub-hero--art::after { background: linear-gradient(0deg, #0b0e11, #0b0e1194 73%, #0b0e115e); }
  .empty-page { grid-template-columns: minmax(0, 1fr); }
}

@container site-footer (max-width: 43rem) {
  :is(.studio-site, .arcena-site) .site-end__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; padding-block: 2rem; }
  .site-end__identity { grid-column: 1 / -1; }
  .site-end__nav { grid-template-columns: minmax(0, 1fr); }
}

@media (pointer: coarse) {
  a.inline-link:not(p a), .site-end a:not(:has(img)) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    min-width: min(100%, 2.75rem);
  }
  .site-end__nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.7rem), 1fr)); }
  :is(.site-end__nav, .site-end__related, .site-end__equipment) { gap: .1rem .35rem; }
  .site-end__last { align-items: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .action, .masthead__nav a { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
}

@media (forced-colors: active) {
  .masthead__nav a[aria-current="page"]::after, .play-triangle {
    forced-color-adjust: none;
    background: Highlight;
  }
}
