/*
Theme Name: RICO PHOTO
Author: RICO PHOTO
Description: Autorski motyw portfolio fotograficznego Krystiana Przeklasy z edytowalnymi projektami i galeriami.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ricophoto
*/

:root {
  --ink: #090909;
  --paper: #d8d6d0;
  --muted: #8d8a84;
  --line: rgba(216, 214, 208, 0.22);
  --orange: #f25b2a;
  --pad: clamp(1.1rem, 2.2vw, 2.2rem);
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--orange) var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: repeating-radial-gradient(circle at 17% 22%, #fff 0 0.6px, transparent 0.7px 3px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

body.menu-open,
body:has(.lightbox[open]),
body:has(.cinema[open]) {
  overflow: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

::selection {
  color: var(--ink);
  background: var(--orange);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

button,
select {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--orange);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-pad {
  padding-right: var(--pad);
  padding-left: var(--pad);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(14px);
}

.site-header:has(.site-nav.is-open) {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  position: relative;
  z-index: 52;
  display: block;
  flex: 0 0 auto;
}

.brand-logo {
  --logo-canvas: 4.15rem;
  position: relative;
  display: block;
  width: calc(var(--logo-canvas) * 0.57);
  height: calc(var(--logo-canvas) * 0.62);
  overflow: hidden;
}

.brand-logo img {
  position: absolute;
  top: calc(var(--logo-canvas) * -0.174);
  left: calc(var(--logo-canvas) * -0.23);
  width: var(--logo-canvas);
  max-width: none;
  height: var(--logo-canvas);
  object-fit: contain;
  transition: filter 250ms ease;
}

.brand-logo--footer {
  --logo-canvas: 6rem;
}

.site-header:has(.site-nav.is-open) .brand-logo img {
  filter: brightness(0);
}

.site-nav {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3.5rem);
}

.site-nav a {
  position: relative;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  bottom: -0.45rem;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav span {
  margin-right: 0.2rem;
  color: var(--orange);
}

.menu-toggle {
  position: relative;
  z-index: 52;
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.65rem 0.4rem;
  border: 0;
  color: inherit;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.35rem 0;
  background: currentColor;
  transition: transform 250ms var(--ease);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1rem) var(--pad) 1.4rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.7rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: clamp(1.5rem, 3vw, 3.2rem) 0 0 -0.025em;
  color: var(--orange);
  font-size: clamp(5rem, 15.2vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.105em;
  line-height: 0.69;
  white-space: nowrap;
  transform: scaleX(0.9);
  transform-origin: left center;
}

.hero-frame {
  position: relative;
  height: clamp(28rem, 60vh, 47rem);
  margin: clamp(1rem, 2vw, 1.8rem) 0 0;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #111;
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.hero-frame > img {
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 1.4s var(--ease);
}

.hero-frame:hover > img {
  transform: scale(1.018);
}

.hero-frame figcaption {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-orbit {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 5.4rem;
  height: 5.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--orange);
  cursor: pointer;
  font: inherit;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 350ms var(--ease);
}

.hero-orbit:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 0.35rem;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-orbit::after {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-left: 0.58rem solid var(--ink);
  content: "";
}

.hero-orbit span {
  position: absolute;
  width: 7.1rem;
  height: 7.1rem;
  font-family: "Courier New", monospace;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  animation: spin 14s linear infinite;
}

.hero-frame:hover .hero-orbit {
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  margin-top: 1rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--orange);
  animation: sweep 2.2s ease-in-out infinite;
}

@keyframes sweep {
  from { transform: translateX(-105%); }
  60%, to { transform: translateX(105%); }
}

.works {
  padding-top: clamp(8rem, 14vw, 15rem);
  padding-bottom: clamp(8rem, 12vw, 13rem);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 4.5fr 1.25fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-kicker {
  margin: 0;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3.4rem, 7.2vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}

h2 em {
  color: var(--orange);
  font-style: normal;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.5rem, 7vw, 8rem) clamp(1rem, 2vw, 2rem);
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.project {
  min-width: 0;
}

.project--wide {
  grid-column: 1 / span 8;
}

.project--portrait {
  grid-column: 9 / -1;
  padding-top: 12vw;
}

.project--square {
  grid-column: 2 / span 5;
}

.project--landscape {
  grid-column: 7 / -1;
  padding-top: 8vw;
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.3rem;
  color: var(--paper);
  background: #141414;
}

.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(242, 91, 42, 0.12);
  opacity: 0;
  transition: opacity 400ms ease;
}

.project-media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: filter 600ms ease, transform 900ms var(--ease);
}

.project--portrait .project-media img {
  aspect-ratio: 4 / 5;
}

.project--square .project-media img {
  aspect-ratio: 1 / 1;
}

.project-media--crop img {
  aspect-ratio: 4 / 3;
  object-position: 65% center;
}

.project-media:hover img,
.project-media:focus-visible img {
  filter: contrast(1.03) saturate(0.82);
  transform: scale(1.035);
}

.project-media:hover::after,
.project-media:focus-visible::after {
  opacity: 1;
}

.project-open {
  position: absolute;
  z-index: 2;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(calc(100% + 1rem));
  transition: transform 350ms var(--ease);
}

.project-open b {
  font-size: 0.9rem;
  font-weight: 400;
}

.project-media:hover .project-open,
.project-media:focus-visible .project-open {
  transform: translateY(0);
}

.project-caption {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 0.55rem;
}

.project-caption h3 {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.project-caption p,
.project-caption > span {
  margin: 0;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-caption > span {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 0.68rem;
}

.about {
  position: relative;
  padding-top: clamp(7rem, 12vw, 12rem);
  padding-bottom: clamp(7rem, 12vw, 12rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.about-rail {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  margin: 0 calc(var(--pad) * -1) clamp(7rem, 12vw, 12rem);
  color: var(--orange);
  font-size: clamp(4.5rem, 11vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.7;
  animation: marquee 25s linear infinite;
}

.about-rail i {
  display: block;
  width: clamp(1.5rem, 3vw, 3rem);
  height: clamp(1.5rem, 3vw, 3rem);
  border-radius: 50%;
  background: currentColor;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  gap: 2rem;
}

.about h2 {
  grid-column: 2 / -1;
  margin-bottom: clamp(3rem, 7vw, 7rem);
}

.about-copy {
  grid-column: 2;
  max-width: 42rem;
}

.about-copy p {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.2vw, 2.45rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.about-copy p:last-child {
  color: var(--muted);
}

.about-details {
  grid-column: 3;
  align-self: end;
  margin: 0;
}

.about-details div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.about-details dt {
  margin-bottom: 0.45rem;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-details dd {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact {
  color: var(--ink);
  background: var(--orange);
}

.contact-top {
  padding-top: clamp(7rem, 12vw, 12rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.contact .section-kicker,
.contact h2 em {
  color: var(--ink);
}

.contact h2 {
  margin-top: clamp(3rem, 6vw, 6rem);
  font-size: clamp(4.2rem, 12vw, 14rem);
  line-height: 0.78;
}

.contact h2 em {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(9, 9, 9, 0.35);
  border-bottom: 1px solid rgba(9, 9, 9, 0.35);
  margin-top: clamp(4rem, 8vw, 8rem);
  font-family: "Courier New", monospace;
  font-size: clamp(0.8rem, 1.4vw, 1.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-mail span {
  font-family: Arial, sans-serif;
  font-size: 1.6em;
  transition: transform 250ms var(--ease);
}

.contact-mail:hover span,
.contact-mail:focus-visible span {
  transform: translate(0.25rem, -0.25rem);
}

.contact-bottom {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: 2rem;
  background: var(--ink);
  color: var(--paper);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1rem;
  max-width: 80rem;
  margin-left: auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.45rem 0 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  resize: vertical;
  transition: border-color 200ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #55534f;
}

.form-field select {
  color-scheme: dark;
}

.form-field select option {
  color: #aaa7a0;
  background: #141414;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: none;
}

.js .custom-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.js .custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  text-align: left;
  transition: border-color 200ms ease;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-bottom-color: var(--orange);
  outline: 0;
}

.custom-select.has-error .custom-select-trigger {
  border-bottom-color: var(--orange);
}

.custom-select-trigger i {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-0.15rem, -0.15rem) rotate(45deg);
  transition: transform 250ms var(--ease), color 250ms ease;
}

.custom-select.is-open .custom-select-trigger i {
  color: var(--orange);
  transform: translate(-0.15rem, 0.15rem) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  display: grid;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: #141414;
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.55rem);
  transition: opacity 220ms ease, transform 300ms var(--ease), visibility 220ms;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  position: relative;
  z-index: 0;
  width: 100%;
  padding: 0.9rem 0.7rem 1rem;
  overflow: hidden;
  border: 0;
  color: #aaa7a0;
  background: transparent;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.custom-select-option::after {
  position: absolute;
  z-index: -1;
  right: 0.7rem;
  bottom: 0.45rem;
  left: 0.7rem;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option[aria-selected="true"] {
  color: var(--paper);
  outline: 0;
}

.custom-select-option:hover::after,
.custom-select-option:focus-visible::after,
.custom-select-option[aria-selected="true"]::after {
  transform: scaleX(1);
}

.submit-button {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0 1.4rem;
  border: 0;
  color: var(--ink);
  background: var(--orange);
  text-align: left;
  text-transform: uppercase;
  transition: background 250ms ease, color 250ms ease;
}

.form-honeypot {
  display: none !important;
}

.submit-button span {
  font-size: clamp(1rem, 1.7vw, 1.5rem);
}

.submit-button b {
  font-size: 1.8rem;
  font-weight: 400;
  transition: transform 250ms var(--ease);
}

.submit-button:hover,
.submit-button:focus-visible {
  color: var(--orange);
  background: var(--paper);
}

.submit-button:disabled {
  color: var(--ink);
  background: var(--orange);
  cursor: wait;
  opacity: 0.58;
}

.submit-button:hover b,
.submit-button:focus-visible b {
  transform: translate(0.3rem, -0.3rem);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: -1rem 0 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-top: clamp(7rem, 12vw, 12rem);
  margin-top: clamp(7rem, 12vw, 12rem);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 2rem;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.socials a span {
  color: var(--orange);
}

.copyright {
  text-align: right;
}

.cinema {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--paper);
  background: #020202;
  opacity: 0;
  transition: opacity 500ms ease, display 500ms allow-discrete;
}

.cinema[open] {
  display: block;
  opacity: 1;
}

.cinema::backdrop {
  background: #020202;
}

.cinema-stage,
.cinema-slide,
.cinema-backdrop,
.cinema-image,
.cinema-vignette,
.cinema-grain {
  position: absolute;
  inset: 0;
}

.cinema-stage {
  overflow: hidden;
  background: #020202;
}

.cinema-slide {
  z-index: 0;
  opacity: 0;
  transition: opacity 1600ms cubic-bezier(0.33, 0, 0.18, 1);
}

.cinema-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.cinema-backdrop {
  width: 112%;
  height: 112%;
  margin: -6%;
  object-fit: cover;
  filter: blur(30px) brightness(0.34) saturate(0.78);
  transform: scale(1.03);
  transition: transform 8s linear;
}

.cinema-slide.is-active .cinema-backdrop {
  transform: scale(1.11);
}

.cinema-image {
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(3.5rem, 7vh, 6rem) clamp(4.5rem, 9vw, 10rem) clamp(4.7rem, 9vh, 7rem);
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.58));
  opacity: 0.92;
  transform: scale(1.025);
  transition: opacity 1800ms ease, transform 8s linear;
}

.cinema-slide.is-active .cinema-image {
  opacity: 1;
  transform: scale(1);
}

.cinema-vignette {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.66) 110%);
}

.cinema-grain {
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background-image: repeating-radial-gradient(circle at 21% 37%, #fff 0 0.55px, transparent 0.65px 3px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.cinema-topbar,
.cinema-controls {
  position: absolute;
  z-index: 5;
  right: clamp(1rem, 2.5vw, 2.4rem);
  left: clamp(1rem, 2.5vw, 2.4rem);
  display: flex;
  align-items: center;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cinema-topbar {
  top: clamp(1rem, 2.5vw, 2.4rem);
  justify-content: space-between;
}

.cinema-topbar strong {
  color: var(--orange);
  font-family: inherit;
  font-size: inherit;
}

.cinema-topbar > span {
  position: absolute;
  left: 50%;
  color: rgba(241, 238, 231, 0.62);
  transform: translateX(-50%);
}

.cinema button,
.cinema a {
  border: 0;
  color: inherit;
  background: transparent;
}

.cinema-close {
  font-size: 2.15rem;
  font-weight: 200;
  line-height: 0.7;
  transition: color 200ms ease, transform 300ms var(--ease);
}

.cinema-close:hover,
.cinema-close:focus-visible {
  color: var(--orange);
  transform: rotate(90deg);
}

.cinema-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(241, 238, 231, 0.24) !important;
  border-radius: 50%;
  font-size: 1.1rem;
  place-items: center;
  transform: translateY(-50%);
  transition: color 250ms ease, border-color 250ms ease, background 250ms ease;
}

.cinema-nav--prev { left: clamp(0.8rem, 2.2vw, 2rem); }
.cinema-nav--next { right: clamp(0.8rem, 2.2vw, 2rem); }

.cinema-nav:hover,
.cinema-nav:focus-visible {
  border-color: var(--orange) !important;
  color: var(--ink);
  background: var(--orange);
}

.cinema-controls {
  bottom: clamp(1rem, 2.5vw, 2.4rem);
  gap: clamp(1rem, 2vw, 2rem);
}

.cinema-controls > span {
  min-width: 3.7rem;
  color: var(--orange);
}

.cinema-pause {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cinema-pause i {
  display: inline-block;
  width: 0.48rem;
  height: 0.58rem;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.cinema.is-paused .cinema-pause i {
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-right: 0;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.5rem solid currentColor;
}

.cinema-pause:hover,
.cinema-pause:focus-visible,
.cinema-controls a:hover,
.cinema-controls a:focus-visible {
  color: var(--orange);
}

.cinema-controls a {
  margin-left: auto;
}

.cinema-controls a b {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 400;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  padding: 1rem;
  border: 0;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.97);
  opacity: 0;
  transition: opacity 250ms ease, display 250ms allow-discrete;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  opacity: 1;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-width: min(78vw, 90rem);
  height: calc(100svh - 2rem);
  margin: auto;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.8rem;
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox figcaption [data-lightbox-meta] {
  color: var(--muted);
}

.lightbox figcaption [data-lightbox-counter] {
  margin-left: auto;
  color: var(--paper);
}

.lightbox button {
  border: 0;
  color: inherit;
  background: transparent;
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 1rem;
  right: 1.4rem;
  font-size: 2.3rem;
  font-weight: 200;
}

.lightbox-nav {
  font-size: 1.8rem;
  transition: color 200ms ease, transform 200ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--orange);
}

.lightbox-nav--prev:hover { transform: translateX(-0.25rem); }
.lightbox-nav--next:hover { transform: translateX(0.25rem); }

.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(0.35rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-0.35rem) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 51;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--pad);
    background: var(--orange);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 500ms var(--ease), visibility 500ms;
  }

  .site-nav.is-open {
    clip-path: inset(0);
    visibility: visible;
  }

  .site-nav a {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(9, 9, 9, 0.25);
    font-family: inherit;
    font-size: clamp(2.8rem, 12vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.07em;
  }

  .brand-logo {
    --logo-canvas: 3.7rem;
  }

  .brand-logo--footer {
    --logo-canvas: 5.4rem;
  }

  .site-nav span {
    align-self: flex-start;
    margin-top: 0.5em;
    color: var(--ink);
    font-family: "Courier New", monospace;
    font-size: 0.16em;
    letter-spacing: 0;
  }

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

  .section-head h2 {
    grid-column: 2;
  }

  .section-intro {
    grid-column: 2;
  }

  .project-grid {
    gap: 5rem 1rem;
  }

  .project--wide {
    grid-column: 1 / span 8;
  }

  .project--portrait {
    grid-column: 9 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr 4fr;
  }

  .about h2,
  .about-copy,
  .about-details {
    grid-column: 2;
  }

  .about-details {
    margin-top: 2rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 3.8rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.2rem);
  }

  .hero h1 {
    margin-top: 2.8rem;
    font-size: 15.2vw;
  }

  .hero-frame {
    height: 67svh;
    min-height: 32rem;
  }

  .hero-frame > img {
    object-position: 60% center;
  }

  .hero-frame figcaption {
    flex-direction: column;
    gap: 0.3rem;
  }

  .hero-orbit {
    top: 50%;
    left: 50%;
    width: 4.5rem;
    height: 4.5rem;
  }

  .hero-orbit span {
    display: none;
  }

  .section-head,
  .about-grid {
    display: block;
  }

  .section-head h2,
  .about h2 {
    margin-top: 2.5rem;
  }

  .section-intro {
    max-width: 22rem;
    margin-top: 2rem;
    margin-left: auto;
  }

  .project-grid {
    display: block;
  }

  .project,
  .project--portrait,
  .project--landscape {
    padding-top: 0;
    margin-bottom: 4.5rem;
  }

  .project--portrait {
    width: 78%;
    margin-left: auto;
  }

  .project--square {
    width: 88%;
  }

  .about-rail {
    margin-bottom: 7rem;
  }

  .about-copy {
    margin-top: 3.5rem;
  }

  .about-details {
    margin-top: 4rem;
  }

  .contact h2 {
    margin-top: 4rem;
    font-size: 17vw;
  }

  .contact h2 em {
    -webkit-text-stroke-width: 0.8px;
  }

  .contact-form {
    display: block;
  }

  .form-field {
    margin-bottom: 2rem;
  }

  .submit-button {
    width: 100%;
    margin-top: 0.5rem;
  }

  .form-status {
    margin-top: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .socials {
    justify-self: end;
  }

  .copyright {
    grid-column: 1 / -1;
    margin-top: 2rem !important;
    text-align: left;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox[open] {
    grid-template-columns: 2.5rem 1fr 2.5rem;
  }

  .lightbox figure {
    max-width: calc(100vw - 6.5rem);
    height: calc(100svh - 1.5rem);
  }

  .lightbox figcaption {
    flex-direction: column;
    gap: 0.3rem;
  }

  .cinema-image {
    padding: 4.5rem 3rem 5.7rem;
  }

  .cinema-topbar > span {
    display: none;
  }

  .cinema-nav {
    width: 2.65rem;
    height: 2.65rem;
  }

  .cinema-nav--prev { left: 0.45rem; }
  .cinema-nav--next { right: 0.45rem; }

  .cinema-controls {
    gap: 0.8rem;
    font-size: 0.56rem;
  }
}

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

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

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