@font-face {
  font-family: "Lulo Clean One";
  src: url("/fonts/lulo-clean-one.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Light";
  src: url("/fonts/avenir-lt-35-light-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/fonts/poppins-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/fonts/archivo-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #f2f0e9;
  --bg: #111110;
  --muted: #a4a49e;
  --accent: #ff2038;
  --rail: 78px;
  font-family: Space, Arial, sans-serif;
  color: var(--paper);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
h1,
h2,
p {
  margin: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--paper);
  color: var(--bg);
  padding: 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--muted);
  line-height: 1.6;
}
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
.site-header {
  position: relative;
  z-index: 10;
  height: 132px;
  margin: 0 var(--rail);
  padding: 34px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.signature {
  font-family: Archivo, Arial, sans-serif;
  text-transform: uppercase;
  position: relative;
  font-size: 24px;
  line-height: 0.86;
  letter-spacing: -1.3px;
}
.menu-toggle {
  display: none;
}
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
  padding: 26px 0;
}
.rail-left {
  left: 0;
  border-right: 1px solid #ffffff16;
}
.rail-right {
  right: 0;
  border-left: 1px solid #ffffff16;
  padding: 16vh 0;
}
.rail a {
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(11px, 2vh, 18px);
  letter-spacing: -0.04em;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
  padding: 10px 14px;
}
.rail-left a {
  transform: rotate(180deg);
}
.rail a:hover,
.rail a[aria-current="page"] {
  color: var(--accent);
}
.rail a[aria-current="page"]:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  left: 5px;
  top: 50%;
}
.external-arrow {
  font-family: Space, sans-serif;
  font-weight: 400;
}
.is-home {
  overflow: hidden;
}
.is-home .site-header {
  position: absolute;
  inset: 0 0 auto;
  height: auto;
}
.is-home .signature {
  visibility: hidden;
}
.is-home .rail {
  border-color: #ffffff25;
}
.home {
  height: 100svh;
  min-height: 460px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
/* Footage clipped to real Poppins outlines. The poster remains
   visible when autoplay is unavailable or motion/data saving is requested. */
.wordmark {
  position: absolute;
  width: calc(100% - 2 * var(--rail) - 72px);
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  aspect-ratio: 4603 / 807;
  font: 900 15vw / 1 Poppins, Arial, sans-serif;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
}
.wordmark-film { display: none; }
.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s;
}
.hero-video.is-playing { opacity: 1; }
@supports (mask-image: url("/brand/norbert-fill.svg")) or (-webkit-mask-image: url("/brand/norbert-fill.svg")) {
  .wordmark-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .wordmark-film {
    display: block;
    position: absolute;
    inset: 0;
    background: transparent;
    -webkit-mask: url("/brand/norbert-fill.svg?v=4") center / 100% 100% no-repeat;
    mask: url("/brand/norbert-fill.svg?v=4") center / 100% 100% no-repeat;
  }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .wordmark-film { display: none; }
  .wordmark-text { position: static; width: auto; height: auto; clip-path: none; }
}
.home-bottom {
  position: absolute;
  bottom: 36px;
  left: calc(var(--rail) + 26px);
  right: calc(var(--rail) + 26px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}
.home-index {
  grid-column: 3;
  font-size: 10px;
  letter-spacing: 0.14em;
  justify-self: end;
  padding-bottom: 8px;
}
.mobile-categories {
  display: none;
}
.work-page,
.film-page,
.contact-page {
  margin: 0 calc(var(--rail) + 22px);
}
.page-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 46px 0 56px;
}
.page-heading h1 {
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(48px, 6.8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
  text-transform: uppercase;
}
.work-count {
  font-size: 15px;
  letter-spacing: -0.05em;
  margin-top: 9px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 44px;
}
.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #262624;
}
.project-image img {
  transition:
    transform 0.6s,
    filter 0.3s;
}
.project-image video {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Reveal the complete opaque surface together; a fade mixes two pictures. */
  background: #000;
  object-fit: contain;
}
.project-image video.is-playing {
  opacity: 1;
}
.project-link:hover img {
  transform: scale(1.025);
}
.card-play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #0003;
  transition: background 0.2s;
}
.project-link:hover .card-play {
  background: var(--paper);
  color: var(--bg);
}
.project-caption {
  padding-top: 16px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
}
.project-caption h2 {
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.project-number {
  font-size: 11px;
  color: var(--muted);
}
.back-top {
  display: block;
  width: fit-content;
  margin: 65px auto 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-footer {
  margin: 74px calc(var(--rail) + 22px) 0;
  padding: 24px 0;
  border-top: 1px solid #ffffff25;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--paper);
}
.is-film .film-page {
  margin: 0 var(--rail);
  padding: 0;
  width: auto;
  max-width: none;
}
.is-film .rail {
  background: var(--bg);
}
.is-film .site-header {
  position: fixed;
  inset: 0 var(--rail) auto;
  z-index: 1;
  height: auto;
  margin: 0;
  padding: 32px 36px;
  pointer-events: none;
}
.is-film .site-header a,
.is-film .site-header button {
  pointer-events: auto;
}
.film-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  filter: drop-shadow(0 1px 6px #000c);
}
.film-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
}
.film-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.film-content,
.is-film .site-footer {
  width: min(1200px, calc(100% - 72px));
  margin-inline: auto;
}
.is-film .film-player {
  --film-summary-height: clamp(80px, 9svh, 96px);
  --film-stage-height: calc(100svh - var(--film-summary-height));
  padding-top: var(--film-stage-height);
}
.is-film .film-player.has-episodes {
  --film-summary-height: clamp(112px, 12svh, 128px);
}
.is-film .player-stage {
  position: fixed;
  inset: 0 var(--rail) auto;
  z-index: 0;
  height: var(--film-stage-height);
  aspect-ratio: auto;
  margin: 0;
}
.film-sheet {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid #ffffff25;
}
.film-sheet > .film-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr);
  column-gap: 40px;
  padding-bottom: 28px;
}
.is-film .site-footer {
  margin-top: 0;
  padding-block: 18px;
}
.film-summary {
  grid-column: 1 / -1;
  min-height: var(--film-summary-height);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.film-summary .film-heading {
  margin: 0 0 16px;
}
.film-summary .film-heading h1 {
  font-size: clamp(24px, 2.3vw, 34px);
}
.film-summary .film-tabs {
  margin-top: 0;
}
.film-player:not(.has-episodes) .film-summary .film-heading {
  margin-bottom: 0;
}
.film-sheet .film-details {
  grid-column: 1;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  margin-top: 0;
  padding-top: 20px;
}
.film-sheet .next-project {
  grid-column: 2;
  align-self: start;
  margin-top: 0;
  padding-top: 20px;
  gap: 10px;
}
.film-sheet .next-project > span:last-child {
  font-size: clamp(20px, 2vw, 30px);
}
.film-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.film-scroll-hint:hover {
  color: var(--paper);
}
.film-scroll-hint .icon {
  width: 14px;
  height: 14px;
}
@media (min-width: 901px) {
  .has-episodes .film-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-content: center;
    align-items: start;
  }
  .has-episodes .film-summary .film-heading {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    display: block;
    margin: 0;
  }
  .has-episodes .film-scroll-hint {
    margin-top: 6px;
  }
  .has-episodes .film-summary .film-tabs {
    grid-column: 2;
    grid-row: 1;
  }
  .has-episodes .episode-title {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }
  .has-episodes .player-status {
    grid-column: 2;
    grid-row: 3;
  }
}
.film-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin: 40px 0 24px;
}
.film-heading h1 {
  font-size: clamp(32px, 4.3vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.film-heading .eyebrow {
  flex-shrink: 0;
}
.player-stage {
  background: #050505;
  aspect-ratio: 16/9;
  position: relative;
}
.player-stage > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.player-stage > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-film {
  padding: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
.play-film:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 10%);
  transition: background 0.3s;
}
.play-film video[data-preview] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.play-film video.is-playing { opacity: 1; }
.project-image:has(> video.is-playing) > img,
.play-film:has(> video.is-playing) > img {
  /* Remove the still from painting only after decoded playback is visible.
     Keep its intrinsic layout contribution so cards never resize on handoff. */
  visibility: hidden;
}
.play-film img {
  object-fit: cover;
}
/* No selected-looking perimeter on the poster or programmatically focused player. */
.player-stage, .player-stage > video, .player-stage > iframe, .play-film {
  border: 0;
  outline: none;
  box-shadow: none;
}
.play-film:focus-visible { outline: none; }
[data-player-keyboard] .play-film:focus-visible::before,
[data-player-keyboard] .player-stage:focus-visible::before,
[data-player-keyboard] .player-stage:has(> video:focus-visible, > iframe:focus-visible)::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 18px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 4px #000;
  pointer-events: none;
}
.film-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.film-tab {
  min-width: 48px;
  min-height: 44px;
  border: 2px solid transparent;
  --episode-pearl: linear-gradient(115deg, #60f0df, #b6a0ff 32%, #ff92cf 62%, #ffe08a);
  background: linear-gradient(115deg, #123b39, #382a55 32%, #54273f 62%, #4b3c19) padding-box, var(--episode-pearl) border-box;
  color: #f5f5f5;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.episode-title {
  margin-top: 14px;
  max-width: 65ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.film-tab:hover {
  filter: brightness(1.18);
}
.film-tab[aria-pressed="true"] {
  background: var(--episode-pearl) border-box;
  color: #111;
  font-weight: 700;
}
.film-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (forced-colors: active) {
  .film-tab { border-color: ButtonText; }
  .film-tab[aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
}
.player-status {
  font-size: 13px;
  color: var(--accent);
  margin-top: 12px;
}
.player-status:empty {
  display: none;
}
.film-details {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid #ffffff25;
  margin-top: 44px;
  padding-top: 24px;
  gap: 20px;
}
.credits {
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #d5d4ce;
  overflow-wrap: anywhere;
}
.credits p + p {
  margin-top: 0.55em;
}
.credits a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.next-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 96px;
  border-top: 1px solid #ffffff25;
  padding: 30px 0 10px;
}
.next-project > span:last-child {
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: -0.04em;
}
.next-project:hover > span:last-child {
  color: var(--accent);
}
.contact-page {
  padding-top: 6vh;
  min-height: calc(100svh - 260px);
}
.contact-page > h1 {
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(58px, 9.5vw, 180px);
  text-transform: uppercase;
  letter-spacing: -0.075em;
  line-height: 0.96;
  margin: 30px 0 40px;
}
.contact-star {
  font-family: Arial, sans-serif;
  color: var(--accent);
  font-size: 0.85em;
  margin-left: 20px;
  vertical-align: 4%;
}
.email-link {
  display: inline-block;
  font-size: clamp(17px, 2.3vw, 36px);
  letter-spacing: -0.035em;
  border-bottom: 1px solid #ffffff50;
  padding-bottom: 8px;
}
.email-link:hover {
  color: var(--accent);
}
.contact-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 1600px) {
  :root {
    --rail: 100px;
  }
  .project-grid {
    gap: 60px 32px;
  }
  .work-page,
  .film-page {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2 * var(--rail) - 80px);
  }
}
@media (max-width: 900px) {
  :root {
    --rail: 56px;
  }
  .rail a {
    padding: 10px 8px;
    font-size: clamp(11px, 1.8vh, 16px);
  }
  .wordmark {
    left: calc(var(--rail) + 20px);
    top: 22%;
    font-size: 14vw;
  }
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .work-page,
  .film-page,
  .contact-page {
    margin-inline: calc(var(--rail) + 16px);
  }
  .project-grid {
    gap: 34px 16px;
  }
  .page-heading {
    padding: 34px 0 42px;
  }
  .page-heading h1 {
    font-size: 6.4vw;
  }
  .film-heading {
    display: block;
  }
  .film-heading .film-scroll-hint {
    margin-top: 8px;
  }
  .is-film .film-player {
    --film-summary-height: clamp(96px, 14svh, 112px);
  }
  .is-film .film-player.has-episodes {
    --film-summary-height: clamp(156px, 22svh, 176px);
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  .film-sheet > .film-content {
    column-gap: 24px;
  }
  .film-summary .film-heading {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
  }
  .film-summary .film-heading .film-scroll-hint {
    margin-top: 0;
  }
  .film-summary .episode-title {
    margin-top: 6px;
  }
}
@media (max-width: 640px) {
  :root {
    --rail: 0px;
  }
  .site-header {
    margin: 0;
    padding: 28px 24px;
    height: 112px;
    align-items: flex-start;
  }
  .signature {
    font-size: 22px;
  }
  .menu-toggle {
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0;
  }
  .menu-toggle span {
    font-size: 20px;
    line-height: 12px;
  }
  .rail {
    position: static;
    width: auto;
    display: none;
    border: 0;
    padding: 0;
  }
  .is-inner #site-navigation {
    display: none;
  }
  :is(.is-inner, .is-home).menu-open {
    overflow: hidden;
  }
  :is(.is-inner, .is-home).menu-open #site-navigation {
    display: flex;
    position: fixed;
    inset: 106px 0 0;
    z-index: 30;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    padding: 20px 32px 70px;
    gap: 36px;
    overflow: auto;
  }
  :is(.is-inner, .is-home).menu-open .rail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  :is(.is-inner, .is-home).menu-open .rail-left a {
    transform: none;
  }
  :is(.is-inner, .is-home).menu-open .rail a {
    writing-mode: horizontal-tb;
    padding: 0;
    font-size: clamp(20px, 5.7vw, 32px);
    line-height: 1.3;
  }
  :is(.is-inner, .is-home).menu-open .rail-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  :is(.is-inner, .is-home).menu-open .rail-right a {
    font-family: Space, sans-serif;
    font-size: 13px;
  }
  .rail a[aria-current="page"]:after {
    display: none;
  }
  .is-home .site-header {
    padding: 28px 24px;
  }
  .is-home .menu-toggle {
    display: none;
  }
  .is-home .signature {
    visibility: visible;
    font-size: 28px;
  }
  .is-home .rail-left {
    display: none;
  }
  .is-home .rail-right {
    display: flex;
    position: absolute;
    inset: auto 24px 25px;
    width: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    z-index: 20;
    border: 0;
  }
  .is-home .rail-right a {
    font-family: Space, sans-serif;
    writing-mode: horizontal-tb;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 10px 0;
  }
  .home {
    min-height: 540px;
    height: 100svh;
  }
  .wordmark {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hero-media img,
  .hero-video {
    object-position: 58% center;
  }
  .mobile-categories {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 46%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
  }
  .mobile-categories a {
    font-family: Archivo, Arial, sans-serif;
    font-size: clamp(24px, 7.2vw, 43px);
    text-transform: uppercase;
    letter-spacing: -0.055em;
    line-height: 1.2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
  }
  .mobile-categories a:hover {
    color: var(--accent);
  }
  .home-bottom {
    bottom: 100px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
  }
  .home-index {
    display: none;
  }
  .work-page,
  .film-page,
  .contact-page {
    margin: 0 24px;
  }
  .page-heading {
    padding: 20px 0 24px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: clamp(29px, 8.4vw, 52px);
  }
  .work-count {
    font-size: 11px;
    margin-top: 3px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-image {
    aspect-ratio: 16/11;
  }
  .project-caption {
    padding-top: 12px;
  }
  .project-caption h2 {
    font-size: 18px;
  }
  .card-play {
    width: 40px;
    height: 40px;
    font-size: 20px;
    right: 14px;
    bottom: 14px;
  }
  .site-footer {
    margin: 50px 24px 0;
    padding: 20px 0 24px;
    font-size: 10px;
    gap: 20px;
  }
  .film-page {
    padding-top: 12px;
  }
  .film-heading {
    margin: 28px 0 24px;
  }
  .film-heading h1 {
    font-size: clamp(28px, 8vw, 44px);
  }
  .is-film .site-header {
    position: relative;
    inset: auto;
    z-index: 10;
    padding: 24px;
  }
  .film-brand {
    gap: 14px;
    filter: none;
  }
  .film-content,
  .is-film .site-footer {
    width: calc(100% - 48px);
  }
  .is-film .player-stage {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 16/9;
  }
  .is-film .film-player {
    padding-top: 0;
  }
  .film-sheet {
    min-height: 0;
    border-top: 0;
  }
  .film-sheet > .film-content {
    display: block;
  }
  .film-sheet .next-project {
    margin-top: 28px;
  }
  .film-summary {
    min-height: 0;
    padding: 28px 0 32px;
  }
  .film-summary .film-heading h1 {
    font-size: clamp(28px, 8vw, 44px);
  }
  .film-summary .film-heading .film-scroll-hint {
    margin-top: 8px;
  }
  .player-stage {
    margin-inline: -24px;
  }
  .film-details {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 12px;
  }
  .next-project {
    margin-top: 60px;
  }
  .contact-page {
    padding-top: 8vh;
    min-height: calc(100svh - 230px);
  }
  .contact-page > h1 {
    font-size: 13.4vw;
    margin: 25px 0 36px;
  }
  .contact-star {
    margin-left: 12px;
  }
  .email-link {
    font-size: clamp(16px, 4.6vw, 25px);
  }
  .contact-bottom {
    margin-top: 65px;
    font-size: 12px;
  }
}
@media (max-height: 650px) and (min-width: 641px) {
  .wordmark {
    top: 17%;
    font-size: 12vw;
  }
  .site-header {
    padding-top: 24px;
  }
  .home-bottom {
    bottom: 22px;
  }
  .rail a {
    font-size: clamp(10px, 2.1vh, 14px);
  }
}
@media (max-height: 640px) and (max-width: 640px) {
  .home {
    min-height: 440px;
  }
  .is-home .signature {
    font-size: 22px;
  }
  .mobile-categories {
    gap: 12px;
    top: 46%;
  }
  .mobile-categories a {
    font-size: 6.5vw;
  }
  .home-bottom {
    bottom: 81px;
  }
  .is-home .rail-right {
    bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .project-link:hover img {
    transform: none;
  }
}

/* Keep every home link reachable on phones rotated to landscape. */
@media (max-height: 480px) and (orientation: landscape) {
  .home {
    min-height: 0;
  }
  .is-home .site-header {
    margin: 0;
    padding: 22px 24px;
  }
  .is-home .signature {
    visibility: visible;
    font-size: 22px;
  }
  .is-home .rail-left,
  .is-home .menu-toggle {
    display: none;
  }
  .is-home .wordmark {
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-categories {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 40px;
    top: 47%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
  }
  .mobile-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font:
      900 clamp(18px, 3.3vw, 30px) / 1.2 Archivo,
      Arial,
      sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.05em;
  }
  .is-home .rail-right {
    display: flex;
    position: absolute;
    inset: auto 24px 10px;
    width: auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: 28px;
    padding: 0;
    border: 0;
  }
  .is-home .rail-right a {
    writing-mode: horizontal-tb;
    font:
      400 10px Space,
      sans-serif;
    padding: 8px 0;
  }
  .home-bottom {
    bottom: 57px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
  }
  .home-index {
    display: none;
  }
}

/* Branding and navigation share the reference site's Poppins Black. */
.signature {
  font-family: Poppins, Arial, sans-serif;
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.04em;
  line-height: 1;
}
.rail, .is-home .rail { border: 0; }
.rail a, .rail a[aria-current="page"], .mobile-categories a {
  font-family: Poppins, Arial, sans-serif;
  font-weight: 900;
  color: var(--nav-ink);
}
:root { --nav-ink: #fff; --nav-size: calc(clamp(20.55625px, 3.7375vh, 33.6375px) * .85); --mobile-menu-size: 22px; }
/* Norbert625: only the three functional category links on inner pages. */
.is-inner .rail-left a { --nav-ink: var(--accent); }
.rail a { font-size: var(--nav-size); padding-top: 4px; padding-bottom: 4px; }
/* Steady menus; hovered links get shallow, continuously legible exposure changes. */
.rail a, .mobile-categories a, .menu-toggle {
  --glow-near: 1px;
  --glow-mid: 3px;
  --glow-outer: 6px;
  --glow-strength: 1;
  color: var(--nav-ink);
  text-shadow: 0 0 var(--glow-near) color-mix(in srgb, currentColor calc(45% * var(--glow-strength)), transparent), 0 0 var(--glow-mid) color-mix(in srgb, currentColor calc(30% * var(--glow-strength)), transparent), 0 0 var(--glow-outer) color-mix(in srgb, currentColor calc(16% * var(--glow-strength)), transparent);
  animation: none;
  opacity: 1;
  filter: none;
}
/* Keep mobile menu letter edges crisp without changing their halo. */
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape), (hover: none) and (pointer: coarse) {
  .rail a, .mobile-categories a, .menu-toggle { filter: none; }
}
.rail a:hover, .rail a:focus-visible,
.mobile-categories a:hover, .mobile-categories a:focus-visible,
.menu-toggle:hover, .menu-toggle:focus-visible {
  --glow-near: 1px;
  --glow-mid: 4px;
  --glow-outer: 8px;
  --glow-strength: 1.2;
  color: var(--nav-ink);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rail a:where(:hover), .mobile-categories a:where(:hover) {
    animation: menu-halation calc(1.6s / 1.8 / 3) linear infinite;
  }
}
.rail a:focus-visible, .mobile-categories a:focus-visible,
.menu-toggle:focus-visible {
  outline-color: #fff;
  filter: none;
  animation: none;
  opacity: 1;
}
@keyframes menu-halation {
  0%, 16%, 29%, 52%, 71%, 89%, 100% {
    opacity: 1;
    text-shadow: 0 0 var(--glow-near) color-mix(in srgb, currentColor calc(45% * var(--glow-strength)), transparent), 0 0 var(--glow-mid) color-mix(in srgb, currentColor calc(30% * var(--glow-strength)), transparent), 0 0 var(--glow-outer) color-mix(in srgb, currentColor calc(16% * var(--glow-strength)), transparent);
  }
  21%, 61%, 94% {
    opacity: .97;
    text-shadow: 0 0 var(--glow-near) color-mix(in srgb, currentColor calc(38% * var(--glow-strength)), transparent), 0 0 var(--glow-mid) color-mix(in srgb, currentColor calc(24% * var(--glow-strength)), transparent), 0 0 var(--glow-outer) color-mix(in srgb, currentColor calc(12% * var(--glow-strength)), transparent);
  }
  38%, 79% {
    opacity: .985;
    text-shadow: 0 0 var(--glow-near) color-mix(in srgb, currentColor calc(42% * var(--glow-strength)), transparent), 0 0 var(--glow-mid) color-mix(in srgb, currentColor calc(27% * var(--glow-strength)), transparent), 0 0 var(--glow-outer) color-mix(in srgb, currentColor calc(14% * var(--glow-strength)), transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail a, .mobile-categories a, .menu-toggle { animation: none; }
}
@media (prefers-contrast: more), (forced-colors: active) {
  .rail a, .mobile-categories a, .menu-toggle {
    animation: none;
    text-shadow: none;
    filter: none;
  }
}
@media (max-width: 640px) {
  .is-home .signature { visibility: hidden; }
  .wordmark {
    width: calc(100% - 48px);
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    top: 24%;
    left: 50%;
    right: auto;
    font-size: 19vw;
  }
  .mobile-categories { top: 54%; gap: 18px; }
  .mobile-categories a {
    font-size: calc(clamp(44.85px, 13.455vw, 80.35625px) * .85);
    justify-content: center;
    letter-spacing: -0.045em;
  }
  .is-home .rail-right a { font-family: Poppins, Arial, sans-serif; font-size: calc(20.55625px * .85); }
  :is(.is-inner, .is-home).menu-open .rail a { font-size: calc(clamp(37.375px, 10.6375vw, 59.8px) * .85); }
  :is(.is-inner, .is-home).menu-open .rail-right a { font-family: Poppins, Arial, sans-serif; font-size: calc(24.29375px * .85); }
}
@media (max-height: 640px) and (max-width: 640px) {
  .wordmark { top: 23%; }
  .mobile-categories { top: 55%; gap: 12px; }
  .mobile-categories a { font-size: calc(12.146875vw * .85); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .is-home .signature { visibility: hidden; }
  .is-home .wordmark {
    width: 34%; height: auto; overflow: visible; clip-path: none;
    top: 18%; left: 50%; font-size: 8vw;
  }
  .mobile-categories { top: 56%; }
  .mobile-categories a { font-family: Poppins, Arial, sans-serif; font-size: calc(clamp(33.6375px, 6.166875vw, 56.0625px) * .85); justify-content: center; }
  .is-home .rail-right a { font-family: Poppins, Arial, sans-serif; font-size: calc(18.6875px * .85); }
}

@media (max-height: 650px) and (min-width: 641px) and (min-height: 481px) {
  :root { --nav-size: calc(clamp(18.6875px, 3.924375vh, 26.1625px) * .85); }
}

.rail a[aria-current="page"]::after { display: none; }

/* Wide film rows follow the reference's still / hover-preview / credits layout. */
.hero-media { position: absolute; inset: 0; }
.hero-media { z-index: -1; }

.wordmark { width: calc(100% - 2 * var(--rail) - 24px); font-size: 15.136875vw; }
.category-title {
  font: 900 clamp(20.16px, 2.856vw, 50.4px) / 1 Archivo, Arial, sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.project-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
.project-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.project-image { aspect-ratio: 2; }
.project-caption { padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.project-caption h2 { font: 400 clamp(11px, .85vw, 12px) / 1.55 "Lulo Clean One", Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; overflow-wrap: normal; word-break: normal; }
.project-role { font: italic 400 clamp(12px, 1.05vw, 16px) / 1.5 "Avenir Light", Arial, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
@media (max-width: 900px) {
  .category-title { font-size: 2.688vw; }
}
@media (max-width: 640px) {
  .wordmark { width: calc(100% - 24px); font-size: 22vw; }
  .category-title { font-size: clamp(12.18px, 3.528vw, 21.84px); }
  .project-caption { gap: 8px; }
  .project-grid { gap: 40px; }
  .mobile-categories a { letter-spacing: -.06em; }
  :is(.is-inner, .is-home).menu-open .rail-right { gap: 18px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .is-home .wordmark { width: min(calc(100% - 24px), 72svh); font-size: min(22vw, 16svh); }
  .mobile-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mobile-categories a:last-child { grid-column: 1 / -1; }
}

/* Complete editorial words occupy their own lanes, inside the link rails. */
.rail-left { padding-top: 34px; }
.category-edge { position: fixed; top: 0; bottom: 0; width: var(--editorial-rail); overflow: hidden; pointer-events: none; color: var(--nav-ink); opacity: 1; }
.category-edge-name { left: var(--rail); }
.category-edge-label { right: var(--rail); }
.category-edge > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); font: 900 min(clamp(102.4px, 12vw, 192px), calc((100svh - 16px) / 8.8), calc(var(--editorial-rail) / .8)) / .8 Poppins, Arial, sans-serif; letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap; }
/* Align the ink, not the advance box, to the lower edge. Poppins Black has
   50/1000em left bearings for D/N/R and 30/1000em for C (also before JS). */
.category-edge > span { top: calc(100% + .05em * var(--edge-length-scale, 1)); transform-origin: 0 50%; transform: translateY(-50%) rotate(-90deg) scaleX(var(--edge-length-scale, 1)); }
.category-edge > span[data-initial="C"] { top: calc(100% + .03em * var(--edge-length-scale, 1)); }
.is-category { --editorial-rail: clamp(80px, 9vw, 150px); }
.is-category .site-header { margin-inline: calc(var(--rail) + var(--editorial-rail)); }
.is-category .work-page, .is-category .site-footer { width: auto; max-width: none; margin-inline: calc(var(--rail) + var(--editorial-rail) + 22px); }
/* Work listings use the screen edge for their category word. */
.is-inner.is-work-category .rail-right { display: none; }
.is-work-category .category-edge-label { right: 0; }
@media (min-width: 1101px) {
  .is-work-category .site-header { margin-right: var(--editorial-rail); }
  .is-work-category .work-page, .is-work-category .site-footer { margin-right: calc(var(--editorial-rail) + 22px); }
}
.is-home .wordmark { top: 16px; left: calc(var(--rail) + 12px); transform: none; text-align: left; }

@media (max-width: 1100px) {
  .category-edge { display: none; }
  .is-category { --editorial-rail: 0px; }
}
@media (max-width: 640px) {
  .is-category .work-page, .is-category .site-footer { margin-inline: 24px; }
  .is-home .wordmark { top: 12px; left: 12px; }
  :is(.is-inner, .is-home).menu-open .rail-left { position: relative; padding-top: 36px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .is-home .wordmark { top: 12px; left: 12px; }
}

/* Cap only phone labels that would otherwise exceed the available width. */
@media (max-width: 640px) {
  .mobile-categories { left: 12px; right: 12px; }
  .mobile-categories a { font-size: calc(min(clamp(44.85px, 13.455vw, 80.35625px), calc((100vw - 24px) / 7.6)) * .85); }
  :is(.is-inner, .is-home).menu-open .rail-left a { font-size: calc(min(clamp(37.375px, 10.6375vw, 59.8px), calc((100vw - 64px) / 7.8)) * .85); }
  .is-home .rail-right { left: 16px; right: 16px; gap: 8px; }
  .is-home .rail-right a { font-size: calc(min(20.55625px, 5.3vw) * .85); }
}
@media (max-height: 640px) and (max-width: 640px) {
  .mobile-categories a { font-size: calc(min(12.146875vw, calc((100vw - 24px) / 7.6)) * .85); }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.is-category .contact-page { margin-inline: calc(var(--rail) + var(--editorial-rail) + 22px); }
.is-category.is-film .film-page { margin-inline: calc(var(--rail) + var(--editorial-rail)); }
.is-category.is-film .player-stage { inset-inline: calc(var(--rail) + var(--editorial-rail)); }
.is-category.is-film .site-header { inset-inline: calc(var(--rail) + var(--editorial-rail)); margin: 0; }
.is-category.is-film .site-footer { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
@media (max-width: 640px) {
  .is-category .contact-page { margin-inline: 24px; }
  .is-category.is-film .player-stage { inset-inline: auto; }
  .is-category.is-film .site-footer { width: calc(100% - 48px); }
}

.is-category .menu-toggle, .is-film .menu-toggle { margin-left: auto; }

/* Film pages keep the footage dominant, with one compact line beneath it. */
.is-film .film-player { --film-stage-height: calc(100svh - 56px); }
.is-film .film-player.has-episodes { --film-stage-height: calc(100svh - 140px); }
.film-info { position: relative; z-index: 2; background: var(--bg); padding: 8px 24px 16px; }
.film-meta { display: flex; align-items: baseline; gap: 4px 0; flex-wrap: nowrap; overflow-x: auto; overflow-wrap: normal; white-space: nowrap; font: italic 400 13.5px / 1.6 "Avenir Light", Arial, sans-serif; scrollbar-width: thin; }
.film-meta h1 { display: inline; font: 400 11.25px / 1.8 "Lulo Clean One", Arial, sans-serif; margin: 0; }
.film-meta > * { flex: 0 0 auto; }
.film-meta > * + *::before { content: "|"; color: var(--muted); margin-inline: 12px; }
.film-info .film-tabs { margin-top: 10px; gap: 6px; }
.film-info .film-tab { padding: 8px 12px; }
.film-info .episode-title { font-size: 12.375px; margin: 0; max-width: none; white-space: nowrap; }
@media (max-width: 640px) {
  .is-film .site-header { height: 84px; }
  .is-film .film-player, .is-film .film-player.has-episodes { padding-top: 0; }
  .film-info { padding: 8px 24px 16px; }
  .project-image { aspect-ratio: 16 / 9; }
}

@media (min-width: 1101px) {
  .is-category.is-film.is-work-category .film-page { margin-right: var(--editorial-rail); }
  .is-category.is-film.is-work-category .player-stage,
  .is-category.is-film.is-work-category .site-header { right: var(--editorial-rail); }
}


.project-caption h2, .film-meta h1 { font-weight: 700; font-synthesis: weight; }

/* Keep the final project clear of the viewport edge when the list ends. */
.work-page { padding-bottom: 96px; }
@media (max-width: 640px) {
  .work-page { padding-bottom: 64px; }
}

/* Strengthen the supplied regular Lulo face without changing caption sizing. */
.project-caption h2 {
  font-weight: 900;
  -webkit-text-stroke: .25px currentColor;
  paint-order: stroke fill;
}


.is-inner { --bg: #000; background: var(--bg); min-height: 100svh; }
.is-inner .player-stage { background: #000; }

.category-glyph { display: inline-block; }

@media (min-width: 641px) and (min-height: 481px) {
  :root { --rail: clamp(112px, 7.778vw, 128px); }
  .rail-left a { left: 20px; }
  .rail-right a { left: -20px; }
}

@media (max-width: 640px) {
  .is-inner .menu-toggle {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    margin: 0;
    min-height: 44px;
    padding: 8px 12px;
    font-size: var(--mobile-menu-size);
  }
  .is-inner .menu-toggle span { font-size: inherit; line-height: inherit; }
}

/* Match the background crop while independently timing the masked footage. */
.hero-media img, .hero-video, .wordmark-film img, .wordmark-film video { object-position: 50% 50%; }
.wordmark-film img, .wordmark-film video {
  position: absolute;
  inset: auto;
  left: var(--wordmark-media-left, 0px);
  top: var(--wordmark-media-top, 0px);
  width: var(--wordmark-media-width, 100%);
  height: var(--wordmark-media-height, 100%);
  object-fit: cover;
  filter: none;
}

.wordmark-filter { position: absolute; width: 0; height: 0; pointer-events: none; }
.wordmark-film img, .wordmark-film video { filter: url("#wordmark-prism"); }
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .wordmark-film img, .wordmark-film video { left: 0; top: 0; width: 100%; height: 100%; object-position: 50% 100%; filter: url("#wordmark-prism-mobile"); transform: scale(2.07); transform-origin: 50% 100%; }
}

@media (max-width: 640px) {
  .is-inner.is-work-category.menu-open .rail-right { display: flex; }
}

/* Keep the parent link inside the content lane, clear of decorative rails. */
.is-inner .site-header { z-index: 10; }
.page-back {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  color: var(--nav-ink);
  font: 900 var(--nav-size) / 1.3 Poppins, Arial, sans-serif;
}
.page-back > span {
  position: relative;
  z-index: 1;
}
.page-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 641px) {
  .is-film .page-back { left: 0; }
  .is-film .site-header { height: 80px; padding: 0; }
  .is-film .film-player { --film-stage-height: calc(100svh - 136px); padding-top: calc(var(--film-stage-height) + 80px); }
  .is-film .film-player.has-episodes { --film-stage-height: calc(100svh - 220px); }
  .is-film .player-stage { top: 80px; }
}

@media (max-width: 640px) {
  /* Keep Back clear of the centered Menu at narrow phone widths. */
  .page-back {
    left: 24px;
    font-size: var(--mobile-menu-size);
    padding-inline: clamp(0px, calc((100vw - 352px) / 2), 8px);
  }
}

/* Only incidental restored card focus is quiet; new keyboard input restores native focus styling. */
.project-link[data-return-focus="pointer"]:focus { outline: none; }
.project-link:focus, .project-link:focus-visible { outline: none; }
.project-link:focus-visible .project-caption h2,
.project-link[data-return-focus="keyboard"]:focus .project-caption h2 { text-decoration: underline; text-decoration-color: #fff; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.project-link[data-return-focus="pointer"]:focus .project-caption h2 { text-decoration: none; }
@keyframes episode-shine {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .film-tab, .film-tab[aria-pressed="true"] { background-size: 300% 100%; animation: episode-shine 2.8s linear infinite alternate; }
}

/* Every inner page shares Back coordinates and reserves a clear top header. */
.is-inner { --back-base-inset: calc(var(--rail) + var(--back-editorial-rail) + 8px); --back-editorial-rail: 0px; }
@media (min-width: 1101px) {
  .is-inner { --back-editorial-rail: clamp(80px, 9vw, 150px); }
}
.is-inner .site-header { height: 80px; }
.is-inner .page-back {
  position: fixed;
  top: 40px;
  left: var(--back-base-inset);
  opacity: 1;
  isolation: isolate;
}
.page-back::before {
  content: "";
  position: absolute;
  inset: -12px -20px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, #000e 20%, #0009 48%, transparent 74%);
  filter: blur(12px);
}
@media (max-width: 640px) {
  .is-inner .site-header { height: calc(84px + env(safe-area-inset-top, 0px)); }
  .is-inner { --back-base-inset: max(16px, env(safe-area-inset-left, 0px)); }
  .is-inner .page-back { top: calc(42px + env(safe-area-inset-top, 0px)); }
}

.is-inner .page-back:hover, .is-inner .page-back:focus-visible { opacity: 1; }

/* The viewport (HTML), not a nested list, owns Commercial scrolling. */
html.commercial-list {
  --commercial-inset: 80px;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--commercial-inset);
  scroll-behavior: smooth;
}
.commercial-list .project-card { scroll-snap-align: start; scroll-snap-stop: normal; }
.commercial-list .work-page {
  padding-bottom: max(96px, calc(100svh - var(--commercial-inset) - var(--commercial-last-height, 0px)));
}
/* Exact Back restoration wins until the visitor resumes scrolling. */
html.commercial-list[data-restoring-scroll] { scroll-snap-type: none; scroll-behavior: auto; }
@media (max-width: 640px) {
  html.commercial-list { --commercial-inset: calc(84px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html.commercial-list { scroll-behavior: auto; }
}

/* Measured visible ink leaves one antialiasing pixel at each viewport edge. */
.category-edge > span { top: var(--edge-anchor, calc(100% + .05em * var(--edge-length-scale, 1))); }
.category-edge > span[data-initial="C"] { top: var(--edge-anchor, calc(100% + .03em * var(--edge-length-scale, 1))); }

/* Local X becomes screen Y through the fitted, rotated word. */
.category-glyph { transform: translateX(var(--glyph-repel-x, 0px)); }

/* Solid header glyphs on every platform; feathered backings remain separate. */
.page-back, .page-back > span, .menu-toggle, .menu-toggle span {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  animation: none;
  opacity: 1;
  filter: none;
  forced-color-adjust: none;
}
/* Menu stays opposite Back on phones. */
@media (max-width: 640px) {
  .menu-toggle, .is-inner .menu-toggle, .is-home .menu-toggle {
    display: flex; position: fixed; left: auto;
    right: max(16px, env(safe-area-inset-right, 0px));
    top: calc(42px + env(safe-area-inset-top, 0px));
    transform: translateY(-50%); margin: 0; min-height: 44px;
    padding: 8px; font: 900 var(--mobile-menu-size) / 1.3 Poppins, Arial, sans-serif;
    gap: 8px; letter-spacing: 0; text-transform: none;
    text-shadow: none; filter: none;
  }
  .menu-toggle span { font-size: inherit; line-height: inherit; }
}

@media (max-width: 640px) {
  .is-home.menu-open .mobile-categories { visibility: hidden; }
  .is-home.menu-open .rail-right { position: static; inset: auto; width: auto; justify-content: flex-start; }
}

/* Phone Back and Menu keep equal lettering brightness, including after scroll. */
@media (max-width: 640px) {
  .is-inner .page-back { opacity: 1; }
  .page-back > span {
    display: inline-block;
    padding-block: .15em;
    margin-block: -.15em;
    opacity: 1;
  }
  .page-back:hover > span, .page-back:focus-visible > span { opacity: 1; }
}

/* Match Back's feathered black backing at the mirrored phone header edge. */
@media (max-width: 640px) {
  .is-inner .menu-toggle { isolation: isolate; background: none; }
  .menu-label {
    /* Preserve ascender/descender paint room without moving the baseline. */
    padding-block: .15em;
    margin-block: -.15em;
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: 8px;
  }
  .is-inner .menu-toggle::before {
    content: "";
    position: absolute;
    inset: -12px -20px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse, #000e 20%, #0009 48%, transparent 74%);
    filter: blur(12px);
  }
  /* Give the blur three radii of transparent paint room on every edge.
     Keep the original radial image dimensions and strength: only its filter
     surface grows, so compositors cannot cut through the visible feather. */
  .page-back::before, .is-inner .menu-toggle::before {
    inset: -48px -56px;
    background-size: calc(100% - 72px) calc(100% - 72px);
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Mobile film dimensions share the Back/Menu safe-area strip. */
@media (max-width: 640px), (pointer: coarse) and (max-height: 480px) and (orientation: landscape) {
  .is-film {
    --film-header-space: calc(84px + env(safe-area-inset-top, 0px));
    --film-viewport-space: max(0px, calc(100dvh - var(--film-header-space) - env(safe-area-inset-bottom, 0px)));
  }
  .is-film .site-header {
    position: relative;
    inset: auto;
    height: var(--film-header-space);
  }
  .is-film .film-page, .is-category.is-film .film-page { margin-inline: 0; }
  .is-film .film-player, .is-film .film-player.has-episodes {
    --mobile-film-width: min(calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), calc(max(0px, var(--film-viewport-space) - 24px) * 16 / 9));
    --mobile-film-height: calc(var(--mobile-film-width) * 9 / 16);
    --mobile-film-gap: max(12px, calc((var(--film-viewport-space) - var(--mobile-film-height)) / 2));
    padding-top: var(--mobile-film-gap);
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .is-film .player-stage, .is-category.is-film .player-stage {
    position: relative;
    inset: auto;
    width: var(--mobile-film-width);
    height: var(--mobile-film-height);
    aspect-ratio: 16 / 9;
    margin: 0 auto var(--mobile-film-gap);
  }
  .is-film .play-film img, .is-film .play-film video { object-fit: contain; }
  .is-film .film-info { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
}

/* Norbert530: one mobile film, clipped to unchanged Poppins contours in NO/RB/ER/T. */
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .is-home { background: #000; }
  .is-home .home { height: auto; min-height: 100dvh; overflow: visible; background: #000; padding-top: 0; }
  .is-home .hero-media { display: none; }
  .is-home .rail-right { top: calc(100dvh + 20px); bottom: auto; }
  .is-home .wordmark {
    position: relative; inset: auto; transform: none; margin: 0;
    width: 100%; height: 100dvh; aspect-ratio: auto; overflow: visible; clip-path: none;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    display: grid; place-items: center;
  }
  .is-home .wordmark-film {
    position: relative; inset: auto;
    width: min(100%, calc((100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))) * 1447 / 3028));
    height: auto; aspect-ratio: 1447 / 3028; overflow: hidden;
    background: #f2f0e9;
    -webkit-mask-image: url('/brand/norbert-mobile-fill.svg');
    mask-image: url('/brand/norbert-mobile-fill.svg');
  }
  .is-home .mobile-categories {
    display: flex; flex-direction: column;
    position: relative; inset: auto; transform: none; margin: 0;
    padding: 84px max(12px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .is-home .wordmark-text { white-space: normal; overflow-wrap: anywhere; max-width: 2ch; text-align: center; }
}

/* Norbert532: keep metadata directly beneath an aspect-ratio-preserving film,
   reserving its measured height before sizing the video in the dynamic viewport. */
@media (max-width: 640px), (pointer: coarse) and (max-height: 480px) and (orientation: landscape) {
  .is-film .film-page { padding-top: 0; }
  .is-category.is-film .site-header { inset: auto; }
  .is-film .film-player, .is-film .film-player.has-episodes {
    --film-info-height: 110px;
    display: flex;
    flex-direction: column;
    min-height: var(--film-viewport-space);
    --mobile-film-width: min(calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), calc(max(90px, var(--film-viewport-space) - var(--film-info-height)) * 16 / 9));
    --mobile-film-height: calc(var(--mobile-film-width) * 9 / 16);
    padding-top: max(0px, calc((var(--film-viewport-space) - var(--film-info-height) - var(--mobile-film-height)) / 2));
  }
  .is-film .player-stage, .is-category.is-film .player-stage { margin-bottom: 0; flex-shrink: 0; }
  .is-film .film-info { padding: 8px 12px 0; flex: 1; display: flex; flex-direction: column; }
  .is-film .film-meta { display: block; overflow: visible; white-space: normal; text-align: center; }
  .is-film .film-meta > :not([hidden]) { display: block; }
  .is-film .film-meta > * + *::before { content: none; }
  .is-film .film-meta > * { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
  .is-film .film-info .episode-title { white-space: normal; }
  /* Equal vertical padding and flex centering use the entire remaining black
     area, ending above the safe inset. Intrinsic reservation allows overflow
     for large text without shrinking the touch targets or cropping the film. */
  .is-film .film-info .film-tabs { flex: 1; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding-block: 12px; margin-top: 0; }
  .is-film .film-info .film-tab { flex: 0 0 auto; }
  .is-film .film-info .film-tab:first-child { margin-left: auto; }
  .is-film .film-info .film-tab:last-child { margin-right: auto; }
}

@media (min-width: 641px) and (pointer: coarse) and (max-height: 480px) and (orientation: landscape) {
  .is-film .rail-left { padding-block: 0; gap: 0; justify-content: space-evenly; }
  .is-film .rail-left a { font-size: min(var(--nav-size), 3dvh); }
  .is-film .film-info { padding-inline: calc(var(--rail) + 12px); }
}

/* Norbert545/555: foreground links over the full-height video-filled stack. */
.home-links { display: contents; }
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .is-home .wordmark-film img, .is-home .wordmark-film video { transform: scale(1.7595); }
  /* Mobile footage retains its in-mask prism at natural brightness. */
  .is-home .wordmark-film video { filter: url("#wordmark-prism-mobile"); }
  .is-home .site-header { display: none; }
  .is-home .home { position: relative; min-height: max(100dvh, 320px); }
  .is-home .mobile-categories {
    position: absolute; z-index: 5; inset: 0;
    justify-content: center; align-items: center; gap: clamp(8px, 3dvh, 28px);
    padding: max(16px, env(safe-area-inset-top)) 12px max(72px, calc(56px + env(safe-area-inset-bottom)));
    pointer-events: none;
  }
  .is-home .mobile-categories a {
    pointer-events: auto; min-height: 44px; padding: 5px 12px; max-width: 100%;
    background: rgb(0 0 0 / .65); color: var(--nav-ink); border-radius: 2px;
    overflow-wrap: anywhere; text-align: center;
  }
  /* Only the three main category links: a feather, without a rectangular card. */
  .is-home .mobile-categories a {
    position: relative; isolation: isolate; background: transparent;
  }
  .is-home .mobile-categories a::before {
    content: ""; position: absolute; z-index: -1; inset: -10px -18px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgb(0 0 0 / .44) 0%, rgb(0 0 0 / .38) 42%, rgb(0 0 0 / .19) 67%, transparent 100%);
    filter: blur(6px);
  }
  .is-home .rail-right {
    position: absolute; top: auto; bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 6; min-height: 44px; flex-wrap: wrap;
  }
  .is-home .rail-right a { min-height: 44px; padding: 10px 8px; background: rgb(0 0 0 / .65); }
  .is-home :is(.mobile-categories, .rail-right) a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .is-home .mobile-categories { gap: 4px; }
  .is-home .mobile-categories a { font-size: min(6dvh, 26px); }
}

/* The browser owns the snapshots, cancellation, and history. No SPA routing. */
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
    @view-transition { navigation: auto; }
    html[data-page-reveal]::view-transition { background: #000; pointer-events: none; }
    html[data-page-reveal]::view-transition-group(root) { animation: none; }
    html[data-page-reveal]::view-transition-old(root) { animation: page-out 200ms ease-out both; }
    html[data-page-reveal]::view-transition-new(root) {
      animation: page-cover 300ms ease-in-out both, page-in 200ms ease-out both;
      mix-blend-mode: normal;
    }
    .menu-open #site-navigation { animation: menu-cover 300ms ease-in-out both; }
    .menu-open #site-navigation .rail { animation: page-in 200ms ease-out both; }
  }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-cover {
  from { clip-path: circle(0 at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
  to { clip-path: circle(var(--reveal-radius, 150vmax) at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
}
@keyframes menu-cover {
  from { clip-path: circle(0 at calc(100% - 48px) 42px); }
  to { clip-path: circle(150vmax at calc(100% - 48px) 42px); }
}

/* Norbert572: restore phone insets; wider layouts keep their rail clearance. */
@media (max-width: 640px) {
  .is-inner .page-back {
    left: max(16px, env(safe-area-inset-left, 0px)); padding-inline: 8px;
  }
  .is-inner .menu-toggle {
    right: max(16px, env(safe-area-inset-right, 0px)); padding-inline: 8px;
  }
}

/* Authored bilingual profile: normal document flow, separate from film layouts. */
.profile-page {
  margin-inline: calc(var(--rail) + 22px);
  max-width: 72ch;
  padding-block: 24px 80px;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.profile-page h1, .profile-page h2, .profile-page h3 {
  line-height: 1.25;
  text-wrap: balance;
}
.profile-page h1 { font-size: clamp(32px, 5vw, 56px); margin-block: 24px 8px; }
.profile-role { margin-top: 0; font-size: 1.25em; }
.profile-page h2 { font-size: 1.45em; margin-top: 0; }
.profile-page h3 { font-size: 1.05em; margin-bottom: 8px; }
.profile-page section { margin-top: 48px; }
.profile-page article { margin-top: 24px; }
.profile-page article p { margin-top: 0; }
.profile-page a { text-decoration: underline; text-underline-offset: .2em; }
.profile-languages, .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.profile-languages a, .profile-actions a, .profile-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.profile-languages a[aria-current="page"] { text-decoration-thickness: 3px; }
@media (max-width: 640px) {
  .profile-page {
    margin-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
    padding-top: 12px;
    font-size: 16px;
  }
}

/* Norbert687: desktop media sits 4px from visible editorial ink, not its lane box. */
@media (min-width: 1101px) {
  .is-work-category {
    --editorial-media-left: calc(var(--rail) + var(--editorial-left-ink, var(--editorial-rail)) + 4px);
    --editorial-media-right: calc(var(--editorial-right-ink, var(--editorial-rail)) + 4px);
    --editorial-fit-inset: 0px;
  }
  .is-work-category .work-page {
    margin-left: var(--editorial-media-left);
    margin-right: var(--editorial-media-right);
  }
  .is-work-category .project-image { aspect-ratio: auto; display: grid; place-items: center; background: #000; }
  /* Keep a 16:9 minimum slot; taller stills retain their full intrinsic image. */
  .is-work-category .project-image::before { content: ""; grid-area: 1 / 1; width: 100%; aspect-ratio: 16 / 9; }
  .is-work-category .project-image img { grid-area: 1 / 1; height: auto; }
  .is-work-category .project-link:hover img { transform: none; }
  .is-work-category .project-image :is(img, video) { object-fit: contain; }
  .is-category.is-work-category.is-film {
    --editorial-stage-limit: calc(100svh - 136px);
    --editorial-frame-height: min(var(--editorial-stage-limit), calc((100vw - var(--editorial-media-left) - var(--editorial-media-right)) * 9 / 16));
    --editorial-fit-inset: max(0px, calc((100vw - var(--editorial-media-left) - var(--editorial-media-right) - var(--editorial-stage-limit) * 16 / 9) / 2));
  }
  .is-category.is-work-category.is-film .category-edge-name { left: calc(var(--rail) + var(--editorial-fit-inset)); }
  .is-category.is-work-category.is-film .category-edge-label { right: var(--editorial-fit-inset); }
  .is-category.is-work-category.is-film .film-page {
    margin-left: calc(var(--editorial-media-left) + var(--editorial-fit-inset));
    margin-right: calc(var(--editorial-media-right) + var(--editorial-fit-inset));
  }
  .is-category.is-work-category.is-film .player-stage {
    left: calc(var(--editorial-media-left) + var(--editorial-fit-inset));
    right: calc(var(--editorial-media-right) + var(--editorial-fit-inset));
    top: calc(80px + (var(--editorial-stage-limit) - var(--editorial-frame-height)) / 2);
    height: var(--editorial-frame-height);
  }
  .is-category.is-work-category.is-film .play-film :is(img, video) { object-fit: contain; }
}

/* Reels alone moves its rails inward beside a height-limited desktop frame.
   Keep Back above that frame and to the right of the moving decorative ink. */
@media (min-width: 1101px) {
  .is-category.is-work-category.is-film .page-back {
    left: max(var(--back-base-inset), calc(var(--editorial-media-left) + var(--editorial-fit-inset) + 8px));
  }
}
