/**
 * Lovetsky.art — Programme
 * Editorial film catalog (concept v2)
 */

:root {
  color-scheme: dark;
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --text: #eae6df;
  --muted: #8f877c;
  --accent: #d4835a;
  --accent-hover: #e8a07a;
  --accent-soft: rgba(212, 131, 90, 0.15);
  --accent-border: rgba(212, 131, 90, 0.55);
  --accent-border-soft: rgba(212, 131, 90, 0.45);
  --accent-banner: rgba(212, 131, 90, 0.92);
  --accent-banner-solid: rgba(212, 131, 90, 0.9);
  --line: rgba(234, 230, 223, 0.1);
  --bar-bg: rgba(12, 11, 10, 0.92);
  --error: #e07070;
  --max: 68rem;
  --nav-h: 3.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bar-h: calc(var(--nav-h) + var(--safe-top));
  --page-x: clamp(1.25rem, 4.5vw, 2.5rem);
  --section-y: clamp(2rem, 6vh, 3.5rem);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f4ef;
  --bg-elevated: #fffdf9;
  --text: #1c1916;
  --muted: #6f675c;
  --accent: #b8653a;
  --accent-hover: #9a5230;
  --accent-soft: rgba(184, 101, 58, 0.12);
  --accent-border: rgba(184, 101, 58, 0.45);
  --accent-border-soft: rgba(184, 101, 58, 0.35);
  --accent-banner: rgba(184, 101, 58, 0.92);
  --accent-banner-solid: rgba(184, 101, 58, 0.9);
  --line: rgba(28, 25, 22, 0.1);
  --bar-bg: rgba(247, 244, 239, 0.92);
  --error: #c44;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-snap-type: y proximity;
  scroll-padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
}

html.nav-scrolling {
  scroll-snap-type: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

picture {
  display: block;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent intrinsic dimensions from widening layout (scoped — global breaks WP admin bar) */
.site-content img[width],
.site-content img[height] {
  width: 100% !important;
  height: auto !important;
}

/* Card thumbnails must fill their aspect-ratio frame (override rule above) */
.site-content .still-card__img img,
.site-content .film-card__poster img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.h-scroll-hint {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.post-card__title a {
  color: inherit;
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__media {
  display: block;
  color: inherit;
}

.notes-page__feed {
  color: var(--muted);
  margin: var(--space-sm) 0 var(--space-lg);
}

.error-page {
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  min-height: 100vh;
}

.error-page__hero {
  padding-top: var(--section-y);
  margin-bottom: var(--space-xl);
  max-width: 42rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--accent) 35%, transparent);
  margin: 0 0 var(--space-sm);
}

.error-page__hero .section__title {
  margin-bottom: 0;
}

.error-page__path {
  margin: var(--space-md) 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.error-page__path code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--text);
  word-break: break-all;
}

.error-page__lead {
  max-width: 32rem;
  line-height: 1.6;
  margin-top: var(--space-md);
}

.error-page__nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.error-page__nav .section__label {
  margin-bottom: var(--space-md);
}

.page-error .site-footer {
  padding: var(--space-lg) 0 calc(var(--space-lg) + var(--safe-bottom));
}

.error-page__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.error-page__links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.note-detail__media {
  margin: var(--space-lg) 0;
  max-width: 40rem;
}

.note-detail__body {
  color: var(--muted);
  line-height: 1.7;
  max-width: 40rem;
}

.prose {
  color: var(--text);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.25;
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.prose h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.prose p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose blockquote {
  margin: var(--space-md) 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prose a:hover {
  color: var(--text);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--space-md) 0;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.1em 0.35em;
}

.prose pre {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.prose pre code {
  padding: 0;
  border: none;
  background: none;
}

.prose hr {
  margin: var(--space-lg) 0;
  border: none;
  border-top: 1px solid var(--line);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.album-film-link {
  margin: 0 0 var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

  .film-card:hover .film-card__poster img,
  .still-card:hover .still-card__img img {
    transform: none;
  }
}

/* —— WordPress admin bar —— */
:root {
  --wp-admin-bar-h: 0px;
}

body.admin-bar,
html:has(body.admin-bar) {
  --wp-admin-bar-h: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar,
  html:has(body.admin-bar) {
    --wp-admin-bar-h: 46px;
  }
}

body.admin-bar .site-bar-shell {
  top: var(--wp-admin-bar-h);
}

@media (max-width: 960px) {
  body.admin-bar .site-bar__nav {
    top: calc(var(--wp-admin-bar-h) + var(--bar-h));
  }
}

#wpadminbar img {
  width: auto !important;
  height: auto !important;
  max-width: none;
  display: inline;
}

/* —— Site bar —— */
.site-bar-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--bar-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo actions";
  align-items: center;
  column-gap: var(--space-md);
  padding: var(--safe-top) calc(var(--page-x) + var(--safe-right)) 0
    calc(var(--page-x) + var(--safe-left));
  background: var(--bar-bg);
  border-bottom: 1px solid var(--line);
}

.site-bar-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.site-bar__logo {
  grid-area: logo;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 0;
}

.site-bar__logo:hover {
  color: var(--accent);
}

.site-bar__nav {
  display: none;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  flex-shrink: 0;
}

.site-nav li[hidden] {
  display: none !important;
}

.site-nav a {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  flex-shrink: 0;
}

.site-bar__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  justify-self: end;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch__link {
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible {
  color: var(--color-text);
}

.lang-switch__link.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.lang-switch__sep {
  color: var(--color-muted);
  opacity: 0.45;
  user-select: none;
}

.theme-toggle,
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  margin: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  position: relative;
  z-index: 1002;
}

.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  border-color: var(--accent);
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .theme-toggle__icon--moon,
[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

.nav-toggle {
  grid-area: auto;
}

.nav-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle__icon--close {
  display: none;
}

.nav-toggle.is-open .nav-toggle__icon--open {
  display: none;
}

.nav-toggle.is-open .nav-toggle__icon--close {
  display: flex;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.nav-open .site-bar-shell {
  z-index: 1000;
}

@media (max-width: 960px) {
  .site-bar__logo {
    font-size: 1rem;
  }

  .site-bar__nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background: var(--bg);
    overflow: hidden;
    pointer-events: none;
  }

  .site-bar__nav.is-open {
    display: flex;
    pointer-events: auto;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: var(--space-md) calc(var(--page-x) + var(--safe-right))
      calc(var(--space-xl) + var(--safe-bottom)) calc(var(--page-x) + var(--safe-left));
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav li {
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    font-size: 1rem;
    padding: var(--space-md) 0;
    min-height: 2.75rem;
    line-height: 1.4;
  }
}

@media (min-width: 961px) {
  .site-bar-shell {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "logo nav actions";
  }

  .site-bar__actions {
    grid-area: actions;
  }

  .nav-toggle {
    display: none;
  }

  .site-bar__nav {
    grid-area: nav;
    display: flex;
    position: static;
    justify-self: end;
    pointer-events: auto;
  }
}

/* —— Layout —— */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: calc(var(--page-x) + var(--safe-left)) calc(var(--page-x) + var(--safe-right));
  min-width: 0;
}

/* —— Full viewport sections —— */
.full-viewport {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  border-bottom: 1px solid var(--line);
}

.full-viewport__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-block: var(--section-y);
}

#films .full-viewport__inner,
#stills .full-viewport__inner,
#about .full-viewport__inner {
  flex: 0 1 auto;
  min-height: auto;
  justify-content: flex-start;
}

.full-viewport--compact {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  scroll-snap-align: end;
}

.full-viewport--compact .full-viewport__inner {
  justify-content: center;
  padding-block: var(--space-lg);
}

.section {
  padding: 0;
}

.section__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-lg);
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-head .section__title {
  margin-bottom: 0;
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.section-head__more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head__more:hover {
  color: var(--accent);
}

/* —— Notes feed —— */
.section--notes {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}

.notes-feed {
  display: flex;
  flex-direction: column;
  max-width: 42rem;
}

.notes-feed--archive {
  max-width: 44rem;
}

.post-feed__item {
  border-top: 1px solid var(--line);
}

.post-feed__item:last-child {
  border-bottom: 1px solid var(--line);
}

.post-feed__link {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  color: inherit;
  text-decoration: none;
}

.post-feed__link:hover .post-feed__title {
  color: var(--accent);
}

.post-feed__date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2rem;
}

.post-feed__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.15s ease;
}

.notes-feed--archive .post-feed__title {
  font-size: 1.2rem;
}

.post-feed__excerpt {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.notes-feed--archive .post-feed__excerpt {
  -webkit-line-clamp: 3;
}

.post-feed__thumb {
  width: 4.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.post-feed__thumb picture,
.post-feed__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes-empty,
.notes-page__empty,
.press-empty,
.events-empty {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* —— Press —— */
.section--press {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}

.press-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--space-md);
  max-width: 56rem;
}

.press-quote {
  margin: 0;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 72%, var(--bg));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 100%;
}

.press-quote__blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.press-quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.3rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
}

.press-quote__text::before {
  content: "\201C";
  margin-right: 0.1em;
  color: var(--accent);
}

.press-quote__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.press-quote__attribution {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.press-quote__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}

.press-quote__link:hover {
  text-decoration: underline;
}

/* —— Events —— */
.section--events {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}

.events-group + .events-group {
  margin-top: var(--space-xl);
}

.events-group__title {
  margin: 0 0 var(--space-md);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 56rem;
}

.event-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 55%, var(--bg));
  padding: var(--space-md) var(--space-lg);
}

.event-card--past {
  opacity: 0.78;
}

.event-card__layout {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr) auto;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
}

.event-card__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.event-card__datetime {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.event-card__body {
  min-width: 0;
}

.event-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-card__link:hover .event-card__title {
  color: var(--accent);
}

.event-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.15s ease;
}

.event-card__venue {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.event-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.event-card__press {
  margin: var(--space-sm) 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.event-card__press-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-card__link-out {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}

.event-card__link-out:hover {
  text-decoration: underline;
}

.event-card__badge {
  align-self: flex-start;
  padding: 0.2rem 0.4rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.event-card__countdown {
  align-self: center;
}

.event-card--has-countdown .event-countdown--card .event-countdown__units {
  display: grid;
  grid-template-columns: repeat(2, minmax(3.25rem, 1fr));
  gap: 0.35rem;
  min-width: 7rem;
}

.event-countdown--card .event-countdown__units {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(2.75rem, 1fr));
  gap: 0.35rem;
}

.event-countdown--card .event-countdown__unit {
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
  text-align: center;
}

.event-countdown--card .event-countdown__value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.event-countdown--card .event-countdown__name {
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-status {
  margin: var(--space-md) 0 var(--space-lg);
}

.event-status--upcoming {
  padding: var(--space-lg);
  border: 1px solid var(--accent-border-soft);
  background: var(--bg-elevated);
}

.event-status--past {
  margin: 0 0 var(--space-md);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-detail__datetime,
.event-detail__venue {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.event-detail__venue {
  margin-bottom: var(--space-md);
  font-weight: 600;
  color: var(--text);
}

.event-detail__press {
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.event-detail__press-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-detail__link-wrap {
  margin: 0 0 var(--space-md);
}

.event-detail__link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}

.event-detail__link:hover {
  text-decoration: underline;
}

.event-detail__body {
  margin-top: var(--space-lg);
}

.event-countdown--detail .event-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xs);
  max-width: 22rem;
}

.event-countdown--detail .event-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.35rem;
  border: 1px solid var(--accent-border-soft);
  background: var(--bg);
  border-radius: 2px;
}

.event-countdown--detail .event-countdown__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.event-countdown--detail .event-countdown__name {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-countdown--detail .event-countdown__heading {
  margin: 0 0 var(--space-sm);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.event-countdown--detail .event-countdown__date {
  margin: var(--space-sm) 0 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.event-countdown--detail .event-countdown__date-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-countdown--detail .event-countdown__date-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

@media (max-width: 720px) {
  .event-card__layout {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .event-card__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm) var(--space-md);
  }

  .event-card__countdown {
    justify-self: start;
  }

  .event-card--has-countdown .event-countdown--card .event-countdown__units {
    grid-template-columns: repeat(4, minmax(2.75rem, 1fr));
    min-width: 0;
  }
}

/* —— Notes cards (legacy grid) —— */
.notes-list {
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  width: min(16rem, 72vw);
  min-height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}

.post-card__media picture,
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-md);
  min-width: 0;
}

.post-card__date {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
  color: var(--text);
}

.post-card__excerpt {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.post-card__link {
  margin: var(--space-md) 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__link a {
  color: var(--accent);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  gap: var(--space-lg);
  min-width: 0;
}

.notes-grid .post-card {
  width: auto;
}

.notes-page {
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  min-height: 100vh;
}

.notes-page__head {
  padding-top: var(--section-y);
  margin-bottom: var(--space-lg);
}

.notes-page__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: var(--space-md) 0 0;
  max-width: 32rem;
}

.notes-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.notes-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
}

.notes-pagination a,
.notes-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  text-decoration: none;
}

.notes-pagination a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.notes-pagination .current {
  color: var(--text);
  border-color: var(--accent);
}

.page-notes .site-footer {
  padding: var(--space-lg) 0 calc(var(--space-lg) + var(--safe-bottom));
}

/* —— Search —— */
.search-page {
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  min-height: 100vh;
}

.search-page__head {
  padding-top: var(--section-y);
  margin-bottom: var(--space-xl);
}

.search-page__head .section__title {
  margin-bottom: 0;
}

.search-page__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: var(--space-md) 0 0;
  max-width: 36rem;
}

.content-page {
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  min-height: 100vh;
}

.content-page__head {
  padding-top: var(--section-y);
  margin-bottom: var(--space-xl);
}

.content-page__body {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.content-page__body > :first-child {
  margin-top: 0;
}

.content-page__body a {
  color: var(--accent);
}

.page-search .site-footer {
  padding: var(--space-lg) 0 calc(var(--space-lg) + var(--safe-bottom));
}

.search-panel {
  max-width: 42rem;
}

.error-page .search-panel {
  margin-bottom: 0;
}

.search-field {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  transition: border-color 0.2s ease;
}

.search-field:focus-within {
  border-color: var(--accent-border);
}

.search-field__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.search-field__icon .icon {
  width: 1rem;
  height: 1rem;
}

.search-field__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-field__input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.search-field__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-filters {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.search-filters__label {
  margin: 0 0 var(--space-sm);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.search-tag {
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search-tag:hover {
  border-color: var(--accent-border-soft);
  color: var(--text);
}

.search-tag.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.search-status {
  min-height: 1.25rem;
  margin: var(--space-lg) 0 var(--space-md);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.search-result {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.search-result__link {
  display: block;
  padding: var(--space-md) 0;
  color: inherit;
  text-decoration: none;
}

.search-result__link:hover .search-result__title {
  color: var(--accent);
}

.search-result__type {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.search-result__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  transition: color 0.2s ease;
}

.search-result__excerpt {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.search-result__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.search-result__tag {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.search-empty {
  margin: var(--space-lg) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 961px) {
  .search-panel {
    max-width: min(42rem, 100%);
  }
}

/* —— Intro —— */
.intro__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.intro__role {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-lg);
}

.intro__text {
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 var(--space-xl);
  line-height: 1.7;
}

.intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
}

.intro__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intro .social-icons {
  margin-top: var(--space-xl);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.social-icons .icon {
  width: 1rem;
  height: 1rem;
}

.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Horizontal scroll lists —— */
.h-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  margin: 0;
  margin-inline: calc(-1 * (var(--page-x) + var(--safe-left))) calc(-1 * (var(--page-x) + var(--safe-right)));
  padding: var(--space-xs) calc(var(--page-x) + var(--safe-right)) var(--space-md)
    calc(var(--page-x) + var(--safe-left));
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

.h-scroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 0;
}

.h-scroll-track {
  height: 2px;
  margin: 0.85rem calc(var(--page-x) + var(--safe-left)) 0
    calc(var(--page-x) + var(--safe-right));
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.h-scroll-track__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
}

.h-scroll-track.is-complete .h-scroll-track__bar {
  opacity: 0.55;
}

.has-magnetic {
  display: inline-block;
  transition: transform 0.2s ease-out;
  transform: translate3d(var(--magnetic-x, 0), var(--magnetic-y, 0), 0);
}

/* —— Film cards —— */
.film-list {
  padding: 0;
}

.film-card {
  width: min(13.5rem, 40vw);
  display: flex;
  flex-direction: column;
}

.film-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.film-card--announcement .film-card__media {
  border-color: var(--accent-border-soft);
}

.film-card__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.film-card__poster picture,
.film-card__poster > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.film-card__poster.has-tilt,
.still-card__img.has-tilt {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out;
}

.still-card__img.has-tilt {
  position: relative;
}

.film-card__poster.has-tilt::after,
.still-card__img.has-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.16),
    transparent 58%
  );
  transition: opacity 0.25s ease;
}

.film-card:hover .film-card__poster.has-tilt,
.still-card:hover .still-card__img.has-tilt {
  border-color: transparent;
}

.film-card:hover .film-card__poster.has-tilt::after,
.still-card:hover .still-card__img.has-tilt::after {
  opacity: 1;
}

.film-card__poster img {
  transition: transform 0.45s ease;
}

.film-card:hover .film-card__poster img {
  transform: scale(1.04);
}

.film-card:hover .film-card__poster.has-tilt img {
  transform: scale(1.06) translateZ(14px);
}

.film-card__body {
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.film-card__year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-xs);
}

.film-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  line-height: 1.25;
}

.film-card__title a {
  color: var(--text);
}

.film-card__title a:hover {
  color: var(--accent);
}

.film-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 var(--space-md);
  line-height: 1.45;
  flex: 1;
}

.film-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.film-card__actions a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.film-card__announcement {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 11, 10, 0.84) 0%,
    rgba(12, 11, 10, 0.1) 38%,
    rgba(12, 11, 10, 0.22) 58%,
    rgba(12, 11, 10, 0.94) 100%
  );
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.film-card__media:hover .film-card__announcement {
  opacity: 0;
  visibility: hidden;
}

.film-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  padding: 0.35rem 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0b0a !important;
  background: #d4835a !important;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.film-countdown--card {
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
}

.film-countdown--card .film-countdown__units {
  gap: 0.3rem;
}

.film-countdown--card .film-countdown__unit {
  padding: 0.35rem 0.12rem;
  border: 1px solid rgba(212, 131, 90, 0.45);
  background: rgba(12, 11, 10, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.film-countdown--card .film-countdown__value {
  font-size: 0.95rem;
  color: #eae6df;
}

.film-countdown--card .film-countdown__name {
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: rgba(234, 230, 223, 0.72);
}

.film-announcement__soon--card {
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 1;
  padding: 0.5rem 0.65rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #eae6df;
  background: rgba(12, 11, 10, 0.92);
  border: 1px solid rgba(212, 131, 90, 0.45);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.film-announcement--detail {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--accent-border-soft);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.film-announcement--detail .film-countdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.film-announcement {
  margin: 0;
}

.film-announcement__badge {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0c0b0a !important;
  background: #d4835a !important;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .film-card__badge,
[data-theme="light"] .film-announcement__badge {
  color: #fffdf9 !important;
  background: #b8653a !important;
}

.film-announcement__soon {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.film-announcement--released {
  margin: 0 0 var(--space-md);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.film-countdown__heading {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.film-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xs);
}

.film-countdown--detail .film-countdown__units {
  max-width: 22rem;
}

.film-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.25rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
}

.film-countdown--detail .film-countdown__unit {
  padding: 0.75rem 0.35rem;
  border-color: var(--accent-border-soft);
}

.film-countdown__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.film-countdown--detail .film-countdown__value {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.film-countdown__name {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-countdown__date {
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.film-countdown__date-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-countdown__date-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.film-countdown.is-complete .film-countdown__units {
  opacity: 0.45;
}

/* —— Stills row —— */
.stills-list {
  align-items: stretch;
}

.still-card {
  display: flex;
  flex-direction: column;
  width: min(18rem, 72vw);
  color: inherit;
  overflow: hidden;
}

.still-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.still-card__img img {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 100%;
  min-height: 100%;
  transition: transform 0.4s ease;
}

.still-card__img picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.still-card:hover .still-card__img img {
  transform: scale(1.03);
}

.still-card:hover .still-card__img.has-tilt img {
  transform: scale(1.05) translateZ(12px);
}

.still-card:hover .still-card__title {
  color: var(--accent);
}

.still-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: var(--space-md) 0 var(--space-xs);
  line-height: 1.3;
  color: var(--text);
}

.still-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, min(16rem, 40vw)) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
  min-width: 0;
}

@media (max-width: 720px) {
  :root {
    --nav-h: 3.25rem;
    --page-x: 1rem;
    --section-y: clamp(1.25rem, 4vh, 2rem);
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }

  html {
    scroll-snap-type: none;
  }

  .full-viewport {
    min-height: auto;
    scroll-snap-align: none;
    padding-bottom: var(--space-md);
  }

  #intro.full-viewport,
  #contact.full-viewport {
    min-height: 100svh;
    min-height: 100dvh;
  }

  #intro .full-viewport__inner {
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding-top: var(--section-y);
    padding-bottom: calc(var(--section-y) + var(--safe-bottom));
  }

  #films .full-viewport__inner,
  #stills .full-viewport__inner,
  #about .full-viewport__inner,
  #contact .full-viewport__inner {
    padding-top: calc(var(--section-y) + var(--space-sm));
    padding-bottom: calc(var(--section-y) + var(--safe-bottom));
  }

  .section-head {
    margin-bottom: var(--space-md);
  }

  .section__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    margin-bottom: var(--space-sm);
  }

  .intro__name {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
    margin-bottom: var(--space-sm);
  }

  .intro__role {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  .intro__text {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: var(--space-lg);
  }

  .intro__links {
    gap: var(--space-sm) var(--space-md);
  }

  .intro__links a {
    font-size: 0.75rem;
  }

  .intro .social-icons {
    margin-top: var(--space-lg);
  }

  .social-icons a {
    width: 2.5rem;
    height: 2.5rem;
  }

  .h-scroll {
    gap: var(--space-md);
    margin-inline: calc(-1 * (var(--page-x) + var(--safe-left)))
      calc(-1 * (var(--page-x) + var(--safe-right)));
    scroll-padding-inline: calc(var(--page-x) + var(--safe-left));
    scrollbar-width: none;
    max-width: 100vw;
  }

  .h-scroll::-webkit-scrollbar {
    display: none;
  }

  .film-card {
    width: min(10.75rem, 72vw);
  }

  .film-card__body {
    padding-top: var(--space-sm);
  }

  .film-card__title {
    font-size: 1.05rem;
  }

  .film-card__meta {
    font-size: 0.72rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .film-card__actions a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .notes-feed {
    max-width: none;
  }

  .post-feed__link {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
  }

  .post-feed__date {
    padding-top: 0;
  }

  .post-feed__thumb {
    width: 100%;
    max-width: 12rem;
    order: 3;
  }

  .post-card {
    width: min(14.5rem, 78vw);
  }

  .post-card__title {
    font-size: 1rem;
  }

  .post-card__excerpt {
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .still-card {
    width: min(12.5rem, 76vw);
  }

  .still-card__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .still-card__title {
    font-size: 1rem;
    margin-top: var(--space-sm);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-grid__photo {
    max-width: 14rem;
    margin-inline: auto;
  }

  .about-grid__statement {
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-edu,
  .about-career {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }

  details {
    padding: var(--space-sm) var(--space-md);
  }

  details summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .contact-head__lead {
    font-size: 0.9rem;
  }

  .contact-direct {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-panel {
    padding: var(--space-md);
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-block__email {
    font-size: clamp(1.2rem, 6.5vw, 1.65rem);
    overflow-wrap: anywhere;
  }

  .contact-block__note {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
  }

  .site-footer {
    font-size: 0.7rem;
    line-height: 1.5;
    padding-bottom: var(--safe-bottom);
  }
}

.about-grid__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.about-grid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid__statement {
  font-size: 1.15rem;
  line-height: 1.75;
  margin: 0 0 var(--space-lg);
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
}

.about-facts li {
  margin-bottom: var(--space-sm);
  color: var(--muted);
}

.about-facts li:last-child {
  margin-bottom: 0;
}

.about-facts strong {
  color: var(--text);
  font-weight: 500;
}

.about-edu,
.about-career {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.about-edu h3,
.about-career h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}

.edu-item,
.career-item {
  margin-bottom: var(--space-md);
}

.edu-item:last-child,
.career-item:last-child {
  margin-bottom: 0;
}

.edu-item h4,
.career-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.edu-item p,
.career-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.edu-item time,
.career-item time {
  font-size: 0.8rem;
  color: var(--muted);
}

details {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-facts--nested {
  margin-top: var(--space-md);
  margin-bottom: 0;
}

/* —— Contact —— */
.section--contact .full-viewport__inner {
  justify-content: center;
}

.contact-shell {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-head {
  margin-bottom: var(--space-lg);
}

.contact-head .section__title {
  margin-bottom: var(--space-sm);
}

.contact-head__lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: 32rem;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.contact-direct__email {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-direct__email:hover {
  color: var(--accent);
}

.contact-direct__social {
  flex-shrink: 0;
}

.contact-form-panel {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: var(--space-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.contact-form__field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}

.contact-form__submit {
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-form__submit:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form__status {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.contact-form__status.is-success {
  color: var(--accent);
}

.contact-form__status.is-error {
  color: var(--error);
}

/* —— Comments —— */
.comments-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.comments-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 var(--space-lg);
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.comments-list--children {
  margin-top: var(--space-md);
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  gap: var(--space-sm);
}

.comments-list__item {
  margin: 0;
}

.comment {
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}

.comment__author {
  font-size: 0.9rem;
}

.comment__date {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.comment__body {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

.comment__body p {
  margin: 0 0 0.75rem;
}

.comment__body p:last-child {
  margin-bottom: 0;
}

.comment__footer {
  margin-top: 0.65rem;
}

.comment__reply {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.comment__reply:hover,
.comment__reply:focus-visible {
  color: var(--accent);
  outline: none;
}

.comments-form {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-md);
}

.comments-form.is-replying {
  border: 1px solid var(--accent-border);
  border-radius: 2px;
  padding: var(--space-md);
  background: color-mix(in srgb, var(--bg-elevated) 60%, transparent);
}

.comments-form__replying {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.comments-form__replying strong {
  color: var(--text);
}

.comments-form__cancel-reply {
  margin-left: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.comments-form__cancel-reply:hover,
.comments-form__cancel-reply:focus-visible {
  text-decoration: underline;
  outline: none;
}

.comments-form__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.comments-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.comments-form__field {
  display: grid;
  gap: 0.35rem;
}

.comments-form__field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.comments-form__field input,
.comments-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.comments-form__field input:focus,
.comments-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comments-form__field textarea {
  resize: vertical;
  min-height: 6rem;
}

.comments-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comments-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.comments-form__submit {
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--accent-border);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.comments-form__submit:hover:not(:disabled) {
  background: var(--accent-banner);
  border-color: var(--accent);
}

.comments-form__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.comments-form__status {
  font-size: 0.85rem;
  margin: 0;
}

.comments-form__status.is-success {
  color: var(--accent);
}

.comments-form__status.is-error {
  color: var(--error);
}

@media (max-width: 640px) {
  .comments-form__row {
    grid-template-columns: 1fr;
  }
}

/* Legacy contact block (unused on front page) */
.contact-block__email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 var(--space-lg);
  line-height: 1.3;
}

.contact-block__note {
  color: var(--muted);
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
}

.contact-block .social-icons {
  justify-content: center;
}

.contact-block__email a {
  color: var(--text);
}

.contact-block__email a:hover {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: none;
}

/* —— Detail pages (films / photos) —— */
.page-detail {
  min-height: 100vh;
  padding-top: calc(var(--bar-h) + var(--wp-admin-bar-h));
  padding-bottom: var(--space-xl);
  overflow-x: clip;
}

.page-detail > .wrap {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.page-detail .wrap {
  min-width: 0;
  max-width: 100%;
}

main {
  min-width: 0;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  .full-viewport {
    scroll-snap-align: none;
  }
}

.page-detail .section__label {
  margin-bottom: var(--space-lg);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  padding: 0;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-detail > .wrap {
    padding-top: var(--section-y);
    padding-bottom: calc(var(--section-y) + var(--safe-bottom));
  }

  .detail-layout {
    gap: var(--space-lg);
  }

  .detail-layout h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .press-panel {
    padding: var(--space-md);
  }

  .btn-watch,
  .btn-watch--off {
    min-height: 2.75rem;
    width: 100%;
    justify-content: center;
  }

  .portfolio-details-slider .swiper-pagination {
    position: relative;
    margin-top: var(--space-sm);
  }

  .page-detail {
    padding-bottom: calc(var(--space-xl) + var(--safe-bottom));
  }
}

.detail-layout h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.25rem;
}

.detail-layout .lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.press-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.press-panel h2 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-md);
  font-family: var(--font-body);
}

.press-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.press-panel li {
  margin-bottom: var(--space-sm);
  color: var(--muted);
  line-height: 1.5;
}

.press-panel li:last-child {
  margin-bottom: 0;
}

.press-panel strong {
  color: var(--text);
  font-weight: 500;
}

.press-panel i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.detail-copy h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--space-lg) 0 var(--space-sm);
}

.detail-copy h2:first-of-type {
  margin-top: 0;
}

.detail-copy p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  line-height: 1.65;
}

.btn-watch .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 2px;
}

.btn-watch:hover {
  background: var(--accent-hover);
  color: var(--bg) !important;
}

.btn-watch--off {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--line);
  pointer-events: none;
}

.stills-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.portfolio-details-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}

.portfolio-details-slider--film {
  width: 75%;
  max-width: 75%;
  margin-inline: auto;
  align-self: center;
  cursor: grab;
}

.portfolio-details-slider--film:active {
  cursor: grabbing;
}

.portfolio-details-slider.swiper {
  margin: 0;
}

.portfolio-details-slider .swiper-wrapper {
  max-width: 100%;
  align-items: stretch;
}

.portfolio-details-slider.swiper-fade .swiper-slide {
  height: auto;
}

.portfolio-details-slider .swiper-slide {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.portfolio-details-slider .swiper-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
}

.portfolio-details-slider .swiper-pagination {
  position: relative;
  z-index: 2;
}

.portfolio-details-slider .swiper-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.portfolio-details-slider .swiper-nav:hover,
.portfolio-details-slider .swiper-nav:focus-visible {
  background: var(--bg-elevated);
  border-color: var(--accent);
  outline: none;
}

.portfolio-details-slider .swiper-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.portfolio-details-slider .swiper-nav--prev {
  left: 0.5rem;
}

.portfolio-details-slider .swiper-nav--next {
  right: 0.5rem;
}

.swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
}

/* —— Site visibility / maintenance —— */
html.site-is-gated .site-content {
  display: none;
}

.maintenance-gate {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: calc(var(--bar-h) + var(--wp-admin-bar-h) + var(--space-xl)) var(--page-x) var(--space-xl);
}

html.site-is-gated .maintenance-gate,
body.maintenance-active .maintenance-gate {
  display: flex;
}

.maintenance-gate__inner {
  max-width: 32rem;
  text-align: center;
}

.maintenance-gate__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 var(--space-md);
}

.maintenance-gate__text {
  color: var(--muted);
  margin: 0 0 var(--space-lg);
  line-height: 1.7;
}

.maintenance-gate__admin {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.editor-preview-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 0.65rem var(--page-x) calc(0.65rem + var(--safe-bottom));
  background: var(--accent-banner);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.editor-preview-banner a {
  color: var(--bg);
  text-decoration: underline;
  margin-left: 0.35rem;
}

body.editor-preview-active {
  padding-bottom: calc(2.5rem + var(--safe-bottom));
}

.section-preview-hidden {
  position: relative;
  outline: 1px dashed var(--accent-border);
  outline-offset: -1px;
}

.section-preview-hidden::after {
  content: "Hidden from public";
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 5;
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-banner-solid);
  color: var(--bg);
  pointer-events: none;
}

.section-is-hidden {
  display: none !important;
}

/* —— Ambient & motion —— */
.site-content {
  position: relative;
  isolation: isolate;
}

.site-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[data-theme="light"] .site-ambient__grain {
  opacity: 0.035;
}

.site-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: ambient-drift 22s ease-in-out infinite alternate;
}

.site-ambient__orb--warm {
  width: min(42rem, 90vw);
  height: min(42rem, 90vw);
  top: calc(-12% + (var(--pointer-y, 0.5) - 0.5) * 7%);
  left: calc(-8% + (var(--pointer-x, 0.5) - 0.5) * 8%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  transition: top 0.6s ease-out, left 0.6s ease-out;
}

.site-ambient__orb--cool {
  width: min(36rem, 80vw);
  height: min(36rem, 80vw);
  bottom: calc(-15% - (var(--pointer-y, 0.5) - 0.5) * 5%);
  right: calc(-10% - (var(--pointer-x, 0.5) - 0.5) * 6%);
  background: radial-gradient(circle, rgba(120, 140, 180, 0.12) 0%, transparent 70%);
  animation-duration: 28s;
  animation-delay: -6s;
  transition: bottom 0.7s ease-out, right 0.7s ease-out;
}

.pointer-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: min(36rem, 92vw);
  height: min(36rem, 92vw);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 244, 228, 0.28) 0%,
      rgba(212, 131, 90, 0.12) 24%,
      rgba(212, 131, 90, 0.04) 48%,
      transparent 72%
    );
  filter: blur(40px);
  transition: opacity 0.45s ease;
  mix-blend-mode: screen;
}

[data-theme="light"] .pointer-glow {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 252, 247, 0.72) 0%,
      rgba(184, 101, 58, 0.14) 26%,
      rgba(184, 101, 58, 0.04) 50%,
      transparent 72%
    );
  mix-blend-mode: soft-light;
  filter: blur(48px);
}

body.is-pointer-active .pointer-glow {
  opacity: 0.95;
}

[data-theme="light"] .site-ambient__orb {
  opacity: 0.45;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.06);
  }
}

.intro {
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 58% 48% at var(--spot-x, 12%) var(--spot-y, 18%),
    color-mix(in srgb, var(--accent-soft) 140%, transparent),
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  transition: background 0.35s ease;
}

.intro > .wrap {
  position: relative;
  z-index: 1;
}

.intro--hero .intro__name,
.intro--hero .intro__role,
.intro--hero .intro__text,
.intro--hero .intro__links,
.intro--hero .social-icons {
  opacity: 1;
  transform: none;
}

html.js .intro--hero:not(.is-ready) .intro__name,
html.js .intro--hero:not(.is-ready) .intro__role,
html.js .intro--hero:not(.is-ready) .intro__text,
html.js .intro--hero:not(.is-ready) .intro__links,
html.js .intro--hero:not(.is-ready) .social-icons {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0);
}

.intro--hero.is-ready .intro__name,
.intro--hero.is-ready .intro__role,
.intro--hero.is-ready .intro__text,
.intro--hero.is-ready .intro__links,
.intro--hero.is-ready .social-icons {
  animation: intro-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro--hero.is-ready .intro__name {
  animation-delay: 0.08s;
}

.intro--hero.is-ready .intro__role {
  animation-delay: 0.2s;
}

.intro--hero.is-ready .intro__text {
  animation-delay: 0.32s;
}

.intro--hero.is-ready .intro__links {
  animation-delay: 0.44s;
}

.intro--hero.is-ready .social-icons {
  animation-delay: 0.56s;
}

@keyframes intro-rise {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.intro__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-lg) + var(--safe-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.intro__scroll-cue:hover {
  color: var(--accent);
}

.intro__scroll-cue-line {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-cue-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-cue-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

#films,
#stills {
  background: color-mix(in srgb, var(--bg-elevated) 38%, var(--bg));
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 85% 85%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--contact .full-viewport__inner {
  position: relative;
  z-index: 1;
}

.section--contact {
  position: relative;
  overflow: hidden;
}

.section__label::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 0.45rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible .section__label::after {
  transform: scaleX(1);
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

html.js .reveal-stagger:not(.is-visible) > * {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.04s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.22s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.28s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.34s;
}
.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.4s;
}
.reveal-stagger.is-visible > *:nth-child(8) {
  transition-delay: 0.46s;
}

.post-feed__link {
  transition:
    padding-left 0.25s ease,
    background 0.25s ease;
}

.post-feed__link:hover {
  padding-left: 0.4rem;
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.about-grid__photo::before {
  content: "";
  position: absolute;
  inset: -5px -5px 5px 5px;
  border: 1px solid var(--accent-border-soft);
  pointer-events: none;
  z-index: 1;
}

.contact-form-panel {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-form-panel.is-visible,
.contact-form-panel:focus-within {
  border-color: var(--accent-border-soft);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 48px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .contact-form-panel.is-visible,
[data-theme="light"] .contact-form-panel:focus-within {
  box-shadow: 0 0 0 1px var(--accent-soft), 0 16px 40px rgba(28, 25, 22, 0.08);
}

html.is-tab-hidden .site-ambient__orb,
html.is-tab-hidden .intro__scroll-cue-line {
  animation-play-state: paused;
}

/* —— Weak device / save-data mode —— */
html.perf-lite {
  scroll-snap-type: none;
}

html.perf-lite .site-ambient__grain {
  display: none;
}

html.perf-lite .site-ambient__orb {
  animation: none;
  filter: blur(40px);
  opacity: 0.35;
}

html.perf-lite .site-bar-shell::before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.perf-lite .full-viewport,
html.perf-lite .section--notes,
html.perf-lite .section--press,
html.perf-lite .section--events {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

html.perf-lite .intro__scroll-cue-line {
  animation: none;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .site-ambient__orb,
  .intro__scroll-cue-line {
    animation: none !important;
  }

  .site-ambient__orb--warm {
    top: -12%;
    left: -8%;
    transition: none !important;
  }

  .site-ambient__orb--cool {
    bottom: -15%;
    right: -10%;
    transition: none !important;
  }

  .pointer-glow {
    display: none !important;
  }

  .film-card__poster.has-tilt,
  .still-card__img.has-tilt {
    transform: none !important;
    will-change: auto;
  }

  .film-card__poster.has-tilt::after,
  .still-card__img.has-tilt::after {
    display: none;
  }

  .has-magnetic {
    transform: none !important;
  }

  .intro--hero .intro__name,
  .intro--hero .intro__role,
  .intro--hero .intro__text,
  .intro--hero .intro__links,
  .intro--hero .social-icons,
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .section__label::after {
    transform: scaleX(1);
  }
}
