@font-face {
  font-family: "Site AppleGothic";
  src: local("AppleGothic Regular"), local("AppleGothic");
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0020-024F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: "SF Mada";
  src: url("/fonts/sfmada.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  color-scheme: light;
  --ink: #181818;
  --muted: #626262;
  --paper: #fff;
  --gutter: clamp(18px, 4.7vw, 76px);
  font-family: "SF Mada", "Site AppleGothic", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.shell { width: min(calc(100% - 2 * var(--gutter)), 1520px); margin-inline: auto; }
.signature { display: inline-block; color: inherit; font: 400 1.36rem/.92 "Site AppleGothic", Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.signature-n { margin-inline-end: .075em; }
.skip { position: fixed; inset: 10px 10px auto auto; background: #fff; color: #000; padding: 10px; z-index: 5; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.landing { color: #fffdf5; background: #171712; }
.cover { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.cover-frames, .cover-frame, .cover::after { position: absolute; inset: 0; height: 100%; }
.cover-frames { z-index: -2; }
.cover-frame { object-fit: cover; }
.cover-first { object-position: 58% 50%; }
.cover-second { object-position: 46% 50%; opacity: 0; animation: dissolve-middle 21s infinite; }
.cover-third { object-position: 54% 50%; opacity: 0; animation: dissolve-last 21s infinite; }
.cover::after { content: ""; width: 100%; z-index: -1; background: linear-gradient(180deg, #0009, transparent 28%, #0006 55%, #000e), linear-gradient(90deg, #000a, transparent 66%); }
@keyframes dissolve-middle {
  0%, 28%, 70%, 100% { opacity: 0; }
  35%, 64% { opacity: 1; }
}
@keyframes dissolve-last {
  0%, 60%, 100% { opacity: 0; }
  67%, 93% { opacity: 1; }
}
.landing-header, .cover-credit { margin-inline: var(--gutter); }
.landing-header { direction: ltr; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: clamp(22px, 6.1vh, 60px); }
.landing-header .signature { font-size: clamp(1.55rem, 2.35vw, 2.15rem); }
.landing-header nav { display: flex; flex-wrap: wrap; justify-content: end; gap: clamp(7px, 1.25vw, 17px); }
.landing-link { white-space: nowrap; display: grid; place-items: center; padding-inline: clamp(13px, 2.15vw, 30px); min-height: 49px; border: 1px solid currentColor; background: #18181824; font-size: .88rem; font-weight: 700; }
.landing-link:hover, .landing-link:focus-visible { background: #fffdf5; color: #181818; }
.cover-intro {
  width: min(650px, calc(100% - 2 * var(--gutter)));
  margin: auto auto 16px var(--gutter);
  padding-top: clamp(68px, 14vh, 130px);
  text-align: left;
}
.cover-intro-label { font-size: .77rem; letter-spacing: .09em; }
.cover-intro h1 {
  margin-block: 10px 14px;
  font-size: clamp(1.8rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-shadow: 0 2px 16px #0007;
}
.cover-intro h1 span { display: block; }
.cover-work-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html[dir="rtl"] .cover-intro-label { direction: rtl; }
.cover-credit { width: fit-content; margin-block: 0 clamp(20px, 5vh, 48px); font-size: .81rem; line-height: 1.5; text-shadow: 0 1px 5px #000; }
.cover-credit .credit-divider { margin-inline: .35em; }

.page-header, .viewer-header { direction: ltr; display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); min-height: clamp(90px, 12vw, 148px); }
.page-header nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.5vw, 36px); align-items: center; font-size: .88rem; color: var(--muted); }
.page-header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.page-header nav a:hover, .page-header nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.gallery-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.gallery-head h1 { font-size: 1rem; font-weight: 600; }
.filters { display: flex; gap: 7px; }
.filters button { border: 0; background: transparent; color: var(--muted); min-height: 42px; padding: 5px 8px; font-size: .79rem; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px) clamp(6px, .8vw, 12px); }
.film { display: block; position: relative; min-width: 0; overflow: hidden; }
.film-image { aspect-ratio: 4/3; background: #e8e7e4; }
.film-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.film-meta { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 10px 1px 4px; }
.film:hover h3, .film:focus-visible h3 { text-decoration: underline; text-underline-offset: 3px; }
.film:hover img, .film:focus-visible img { transform: scale(1.025); }
.film-meta h3 { font-size: .95rem; line-height: 1.45; margin-bottom: 4px; overflow-wrap: anywhere; }
.film-featured { margin-inline-start: .55em; font-size: .7rem; font-weight: 400; color: var(--muted); }
.film-meta p { color: var(--muted); font-size: .75rem; line-height: 1.6; }

.page-footer { display: flex; justify-content: space-between; padding-block: 28px; border-top: 1px solid #e9e9e9; margin-top: clamp(26px, 6vw, 75px); font-size: .82rem; color: var(--muted); }
.page-footer a:hover { color: var(--ink); text-decoration: underline; }

.film-viewer { margin: 0; border: 0; padding: 0 0 36px; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--paper); color: var(--ink); }
body:has(.film-viewer[open]) { overflow: hidden; }
.viewer-header { justify-content: space-between; }
.viewer-close { border: 0; background: transparent; width: 44px; height: 44px; font: 400 1.6rem Arial, sans-serif; }
.viewer-content { width: min(calc(100% - 2 * var(--gutter)), 900px); margin-inline: auto; }
.viewer-media { aspect-ratio: 16/9; background: #131313; }
.viewer-play { width: 100%; height: 100%; padding: 0; border: 0; background: none; position: relative; display: grid; place-items: center; }
.viewer-play img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: brightness(.8); }
.viewer-play-icon { position: relative; border-block: 12px solid transparent; border-left: 21px solid #fff; filter: drop-shadow(0 1px 6px #0009); }
.viewer-media iframe { display: block; border: 0; width: 100%; height: 100%; }
.viewer-caption { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; padding-block: 17px; }
.viewer-caption h2 { font-size: 1.2rem; margin-bottom: 6px; }
.viewer-caption p, .viewer-external { font-size: .85rem; line-height: 1.6; color: var(--muted); }
.viewer-external { text-decoration: underline; text-underline-offset: 4px; }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(26px, 7vw, 110px); align-items: start; padding-top: 12px; }
.portrait { max-width: 510px; height: auto; }
.profile-copy { max-width: 590px; }
.profile h1 { font-size: clamp(2.55rem, 6vw, 5rem); line-height: 1.13; margin-block: 12px 22px; }
.profile h2 { font-size: 1.08rem; margin-block: 26px 8px; }
.profile p { color: var(--muted); font-size: .95rem; line-height: 1.9; }
.profile .label { font-size: .78rem; }
.profile #contact { margin-top: 28px; padding: 4px 0 0; border-top: 1px solid #e3e3e3; scroll-margin-top: 20px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.contact-links a { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-size: .92rem; }

@media (max-width: 620px) {
  .page-header { gap: 14px; }
  .page-header .signature, .viewer-header .signature { font-size: 1.18rem; }
  .page-header nav { gap: clamp(9px, 2.4vw, 15px); font-size: .75rem; }
  .film-grid, .profile { grid-template-columns: 1fr; }
  .film-grid { gap: 16px; }
  .film-image { aspect-ratio: 16/10; }
  .profile .portrait { width: min(100%, 400px); }
}
@media (prefers-reduced-motion: reduce) {
  .cover-frame { animation: none; }
  .film-image img { transition: none; }
}

.cover-footer { margin: 0 var(--gutter) clamp(12px, 3.5vh, 35px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cover-footer .cover-credit { margin: 0; }
.cover-pause { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: inherit; text-shadow: 0 1px 5px #000; font-size: .72rem; }
.is-paused .cover-frame { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cover-pause { display: none; }
}

.language-switch {
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .82rem;
  white-space: nowrap;
}
.language-switch:hover { text-decoration: underline; text-underline-offset: 4px; }
.landing-header .language-switch { background: #18181845; }
@media (max-width: 370px) {
  .page-header { flex-wrap: wrap; gap: 0 14px; padding-block: 12px; }
  .landing-header nav { gap: 4px; }
  .landing-link { padding-inline: 8px; }
  .landing-header .language-switch { padding-inline: 5px; }
}
