/* Kiagraphy Media: Aperture */
/* Newsreader, copyright 2020 The Newsreader Project Authors, SIL Open Font License 1.1 (/assets/fonts/OFL-newsreader.txt) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/newsreader-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #000000;
  --ink: #F1EFEA;
  --muted: #9B9893;
  --line: #2A2A2A;
  --ring: #55524D;
  --panel: #111111;
  --gutter: clamp(16px, 5vw, 72px);
  --row: 200px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --row: 260px; } }
@media (min-width: 1200px) { :root { --row: 300px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px; line-height: 1.5; font-weight: 350;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--ring); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: #000; padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.site-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px 28px; padding: 20px var(--gutter);
}
.logo { display: block; line-height: 0; padding: 8px 0; }
.logo img { height: 16px; width: auto; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 17px; }
.site-head nav a { text-decoration: none; padding: 8px 0; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: currentColor; }
@media (max-width: 699px) { .site-head nav { flex: 1 1 100%; gap: 2px 14px; font-size: 16px; } }
@media (max-width: 389px) { .site-head nav { gap: 2px 11px; font-size: 15px; } }
@media (min-width: 700px) { .site-head { padding-top: 28px; padding-bottom: 28px; } .logo img { height: 20px; } .site-head nav { font-size: 18px; gap: 4px 28px; } }

/* shared type */
h1, h2, h3 { font-weight: 320; margin: 0; }
.page-title { font-size: clamp(3rem, 8vw, 6.5rem); font-style: italic; font-weight: 300; line-height: 1; letter-spacing: -0.01em; }
.lede { margin: 18px 0 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.lede a { color: var(--ink); }
.section-title { font-size: clamp(28px, 3vw, 34px); margin-bottom: 28px; }
.page-head { padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px); }

/* home: hero */
.hero { display: grid; gap: 48px; align-items: center; padding: clamp(16px, 4vw, 56px) var(--gutter) clamp(72px, 9vw, 120px); }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.02; letter-spacing: -0.015em; font-weight: 300; }
.sections { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 10px; }
.sections a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; text-decoration: none; }
.s-name { font-size: clamp(30px, 3vw, 38px); font-style: italic; font-weight: 300; line-height: 1.2; }
.s-note { font-size: 16px; color: var(--muted); }
.sections a:hover .s-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.aperture { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 18px; }
.aperture-ring { display: block; width: min(100%, 540px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--ring); outline-offset: 16px; }
.aperture-ring img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.aperture-ring:hover img { transform: scale(1.03); }
.aperture figcaption, .caption { font-size: 17px; color: var(--muted); }
.aperture figcaption { text-align: center; }
.caption em, .aperture figcaption em { color: var(--ink); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* home: lately and films */
.home-block { padding: 0 var(--gutter) clamp(72px, 9vw, 112px); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.tile { display: block; text-decoration: none; }
.tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }
.tile .caption { display: block; margin-top: 10px; font-size: 16px; }
.tile:hover em { text-decoration: underline; text-underline-offset: 0.2em; }
.block-foot { margin: 36px 0 0; font-size: 19px; }

/* video cards */
.cards { display: grid; gap: 48px 32px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { min-width: 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.card-title { font-size: clamp(24px, 2.2vw, 28px); font-style: italic; font-weight: 330; line-height: 1.15; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-sub { margin: -6px 0 0; font-size: 17px; color: var(--muted); }
.card-detail { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.card-detail ul { list-style: none; margin: 0; padding: 0; }
.card-detail p { margin: 8px 0 0; }
.video, .poster {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--panel); text-decoration: none; border: 0; padding: 0; width: 100%;
}
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.video:hover img { transform: scale(1.02); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; border: 1px solid rgba(241, 239, 234, 0.85); background: rgba(0, 0, 0, 0.45);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.play::after { content: ""; position: absolute; left: 28px; top: 22px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.video:hover .play, .video:focus-visible .play { background: rgba(0, 0, 0, 0.7); transform: scale(1.06); }
.poster { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.poster span { font-size: clamp(26px, 3vw, 40px); font-style: italic; font-weight: 300; line-height: 1.1; }
.poster small { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }

/* film page */
.film-group { padding: 0 var(--gutter) clamp(64px, 8vw, 104px); }
.film-group + .film-group { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.series-title { font-size: clamp(36px, 4.4vw, 56px); font-style: italic; font-weight: 300; line-height: 1.05; }
.series-head { margin-bottom: 32px; }
.series-head p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }

/* galleries: justified rows that keep each work whole */
.gallery { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter) clamp(64px, 8vw, 112px); }
.work { flex: var(--ar) 1 calc(var(--ar) * var(--row)); display: block; text-decoration: none; min-width: 0; scroll-margin-top: 24px; }
.work img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; background: var(--panel); }
.work-label { display: block; margin-top: 10px; line-height: 1.3; }
.work-title { display: block; font-size: 17px; font-style: italic; }
.work-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work:hover .work-title { text-decoration: underline; text-underline-offset: 0.2em; }
.gallery-end { flex: 1000 1 0; }
.series { scroll-margin-top: 16px; }
.series .series-title { padding: 0 var(--gutter) 28px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) var(--gutter) 40px; }
.foot-grid { display: grid; gap: 40px; }
.foot-about { margin: 0; max-width: 30em; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; scroll-margin-top: 24px; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 19px; scroll-margin-top: 24px; }
.foot-contact li { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: baseline; }
.foot-contact span { color: var(--muted); font-size: 16px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-top: 56px; }
.foot-base img { height: 18px; width: auto; }
.foot-base p { margin: 0; font-size: 15px; color: var(--muted); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

/* viewer: one work at a time, in the dark */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: var(--ink); background: #000; overscroll-behavior: contain;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: #000; }
.viewer-top, .viewer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top)); }
.viewer-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); align-items: flex-end; }
.viewer-count { margin: 0; font-size: 16px; color: var(--muted); }
.viewer-stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px var(--gutter); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.viewer-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; transition: opacity 0.25s ease; }
.viewer-stage img.is-loading { opacity: 0.2; }
.viewer-caption { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.viewer-title { font-size: clamp(22px, 2.2vw, 28px); font-style: italic; line-height: 1.2; }
.viewer-meta { font-size: 16px; color: var(--muted); white-space: pre-line; line-height: 1.45; margin-top: 2px; }
.viewer-nav { display: flex; gap: 8px; }
.viewer-btn { min-height: 44px; min-width: 44px; padding: 0 18px; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 1px solid var(--ring); border-radius: 999px; cursor: pointer; }
.viewer-btn:hover { border-color: var(--ink); }
html.viewer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .viewer-stage img, .aperture-ring img, .video img, .play { transition: none; }
}

/* home page intro: the iris opens on the wordmark, then widens onto the site */
.intro { display: none; }
html.intro-on .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: #000; cursor: pointer;
  animation: intro-failsafe 0s linear 8s forwards; /* never trap anyone if the script fails */
}
@keyframes intro-failsafe { to { visibility: hidden; } }
html.intro-lock { overflow: hidden; }
.intro-aperture { position: relative; width: min(86vw, 28rem, 50vh); min-width: 15rem; aspect-ratio: 1; display: grid; place-items: center; }
.intro-logo { display: block; width: 80%; height: auto; }
/* the page settles in from slightly larger as the aperture opens onto it */
html.intro-on .site-head, html.intro-on main { transform: scale(1.035); transform-origin: 50% 40vh; }
html.intro-on.intro-revealing .site-head, html.intro-on.intro-revealing main { transform: none; transition: transform 1.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px solid var(--ring); border-radius: 50%; pointer-events: none;
}

/* film details */
.feature { display: grid; gap: 24px 48px; align-items: start; scroll-margin-top: 24px; }
.feature + .feature { margin-top: clamp(56px, 7vw, 88px); }
.feature-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature .card-title { font-size: clamp(30px, 3.2vw, 44px); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.film-about { margin: 4px 0 0; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; max-width: 34em; }
.selections { margin-top: 6px; }
.selections-label { margin: 0 0 4px; font-size: 15px; font-style: italic; color: var(--ink); }
.selections ul { list-style: none; margin: 0; padding: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
.selections li { padding-left: 14px; position: relative; }
.selections li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ring); }
.film-quote { margin: 10px 0 0; padding-left: 16px; border-left: 1px solid var(--ring); }
.film-quote p { margin: 0; font-size: 19px; font-style: italic; }
.film-quote footer { margin-top: 4px; font-size: 15px; color: var(--muted); }
.film-action { margin: 4px 0 0; font-size: 17px; }
