/* Ottomat (converted from the supplied Type 1 files) */
@font-face { font-family: "Ottomat"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/Ottomat-Book.woff2") format("woff2"), url("fonts/Ottomat-Book.ttf") format("truetype"); }
@font-face { font-family: "Ottomat"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/Ottomat-Italic.woff2") format("woff2"), url("fonts/Ottomat-Italic.ttf") format("truetype"); }
@font-face { font-family: "Ottomat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/Ottomat-Bold.woff2") format("woff2"), url("fonts/Ottomat-Bold.ttf") format("truetype"); }

:root {
  --bg: #000;
  --fg: #9a9a9a;      /* the one gray used for all text */
  --muted: #9a9a9a;
  --dot: #83cfc2;     /* mint green sampled from the beauty portrait */
  --ongray: #9a9a9a;  /* same gray for captions that sit on top of photos */
  --line: #2a2a2a;
  --inv: clamp(84px, 11.9vh, 112px);
  --peek: calc(var(--inv) + 30px);
  --band: #0e0e0e;
  --head: calc(56px + env(safe-area-inset-top, 0px));
  --font: "Ottomat", "Cabin", "Gill Sans", "Gill Sans MT", "Helvetica Neue", Arial, sans-serif;
}
body.white {
  --bg: #fff;
  --fg: #6a6a6a;
  --muted: #6a6a6a;
  --dot: #4fb3a1;
  --band: #f3f3f3;
  --line: #e2e2e2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- header ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; height: var(--head); padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 22px; padding-right: 22px; background: var(--bg); transition: background .25s;
}
.brand { font-size: 15px; letter-spacing: 0.22em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a, .nav button { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { border-bottom-color: var(--dot); }
.menu-btn { display: none; }
.dot { color: var(--dot); }
.theme { font-size: 12px; }

@media (max-width: 860px) {
  .head { padding-left: 16px; padding-right: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--head) 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; padding: 28px 16px; font-size: 22px; letter-spacing: 0.16em;
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a, .nav button { padding: 10px 0; }
  .theme { font-size: 13px; margin-top: 18px; }
}

/* ---------- page shell ---------- */
main { padding-top: var(--head); min-height: 100vh; min-height: 100dvh; }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- landing strip ---------- */
.strip {
  position: relative; height: calc(100vh - var(--head) - var(--peek)); height: calc(100dvh - var(--head) - var(--peek));
  overflow: hidden;
}
.track { display: flex; height: 100%; width: max-content; animation: roll var(--dur, 60s) linear infinite; will-change: transform; }
@keyframes roll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.slide { height: 100%; flex: none; position: relative; }
.slide img, .slide video { height: 100%; width: 100%; object-fit: cover; display: block; }
.slide video { filter: invert(0); } /* keeps the film on its own paint layer so Safari keeps drawing it */
.corners { position: absolute; inset: 14px; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 1px rgba(0,0,0,.55)); }
.corners i { position: absolute; width: 18px; height: 18px; border: 0 solid #fff; }
.corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .strip { overflow-x: auto; }
}

/* ---------- gapless justified grid ---------- */
.grid { width: 100%; }
.row { display: flex; width: 100%; }
.tile { position: relative; display: block; min-width: 0; cursor: pointer; overflow: hidden; background: #111; }
.tile img, .tile video { width: 100%; height: auto; }
.tile::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: 0; transition: opacity .2s;
  mix-blend-mode: difference;
  background:
    linear-gradient(#fff, #fff) left top / 18px 1px no-repeat,
    linear-gradient(#fff, #fff) left top / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) right top / 18px 1px no-repeat,
    linear-gradient(#fff, #fff) right top / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 18px 1px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 1px 18px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 18px 1px no-repeat,
    linear-gradient(#fff, #fff) right bottom / 1px 18px no-repeat;
}
@media (hover: hover) { .tile:hover::after { opacity: 1; } }
.tile:focus-visible::after { opacity: 1; }

.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 20px; color: var(--ongray);
  background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: 12px; line-height: 1.5;
  pointer-events: none;
}
.tile .cap b { display: block; font-weight: 400; font-size: 14px; letter-spacing: .18em; }
.tile .cap span { font-size: 12px; }
.grid.hovercap .tile .cap { display: none; }
@media (hover: hover) {
  .grid.hovercap .tile .cap { display: block; opacity: 0; transition: opacity .2s; }
  .grid.hovercap .tile:hover .cap { opacity: 1; }
}

.page-title {
  padding: 34px 22px 26px; font-size: clamp(34px, 7vw, 92px); line-height: 1; letter-spacing: .06em;
}
.page-title small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 14px; }
.page-title a { color: var(--muted); }
.page-title a:hover { color: var(--fg); }

/* ---------- bio / inquire ---------- */
.bio { padding: 40px 22px 90px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; max-width: 1500px; }
.bio h1 { font-weight: 400; font-size: clamp(40px, 8vw, 120px); line-height: .95; letter-spacing: .04em; grid-column: 1 / -1; }
.bio p { font-size: 15px; line-height: 1.9; letter-spacing: .1em; text-transform: none; max-width: 52ch; }
.bio h2 { font-weight: 400; font-size: 12px; letter-spacing: .22em; color: var(--muted); margin-bottom: 14px; }
.bio ul { list-style: none; line-height: 2; }
.bio .block + .block { margin-top: 40px; }
.bio .mail { font-size: clamp(18px, 2.4vw, 30px); letter-spacing: .08em; border-bottom: 1px solid var(--fg); padding-bottom: 4px; display: inline-block; word-break: break-all; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; gap: 34px; padding: 28px 16px 70px; } }

.foot { padding: 26px 22px 34px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 860px) { .foot { padding: 22px 16px 30px; } }

/* ---------- full-screen viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: none; flex-direction: column; touch-action: pan-y;
}
.viewer.on { display: flex; animation: fade .2s ease both; }
.v-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 0 74px; }
.v-stage img, .v-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.v-top { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; z-index: 2; font-size: 12px; }
.v-btn { padding: 12px; margin: -12px; font-size: 12px; }
.v-btn:hover { text-decoration: underline; }
.v-arrow { position: absolute; top: 56px; bottom: 74px; width: 22%; z-index: 1; display: flex; align-items: center; font-size: 30px; letter-spacing: 0; opacity: 0; transition: opacity .2s; }
.v-arrow.prev { left: 0; justify-content: flex-start; padding-left: 22px; }
.v-arrow.next { right: 0; justify-content: flex-end; padding-right: 22px; }
@media (hover: hover) { .v-arrow:hover { opacity: 1; } }
.v-cap { position: absolute; left: 22px; bottom: 18px; font-size: 12px; line-height: 1.5; z-index: 2; max-width: 38vw; }
.v-cap span { color: var(--muted); display: block; }
.v-back {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  border: 1px solid currentColor; border-radius: 999px; padding: 9px 20px; font-size: 12px; background: var(--bg);
  white-space: nowrap;
}
.v-back:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 860px) {
  .v-top { padding: 0 16px; }
  .v-stage { padding: 56px 0 96px; }
  .v-cap { left: 16px; bottom: 62px; max-width: 70vw; }
  .v-arrow { display: none; }
  .v-back { bottom: 16px; }
}
body.lock { overflow: hidden; }

/* ---------- bio / inquire band (sits between the strip and the gallery) ---------- */
.about {
  background: var(--band); padding: clamp(28px, 4vw, 56px) 22px clamp(36px, 4.5vw, 64px);
  display: grid; gap: 14px clamp(24px, 3vw, 56px);
  grid-template-columns: minmax(0, 1.9fr) minmax(0, .85fr) minmax(0, .9fr);
  grid-template-areas: "name name photo" "bio contact photo";
  align-items: start; scroll-margin-top: var(--head);
}
.about-name { grid-area: name; font-weight: 700; font-size: clamp(38px, 6.4vw, 104px); line-height: .95; letter-spacing: .02em; padding-bottom: clamp(14px, 2.4vw, 34px); }
.about-bio { grid-area: bio; }
.about-bio p { font-size: 15px; line-height: 1.75; letter-spacing: .06em; text-transform: none; max-width: 62ch; margin-bottom: 1.1em; }
.about-contact { grid-area: contact; display: flex; flex-direction: column; align-items: flex-start; }
.about-contact .label:not(:first-child) { margin-top: 26px; }
.about-contact .mail { font-size: 15px; letter-spacing: .08em; border-bottom: 1px solid currentColor; padding-bottom: 2px; word-break: break-all; }
.about-contact a, .about-contact span { font-size: 15px; letter-spacing: .08em; }
.label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 12px; letter-spacing: .16em; margin-bottom: 12px; }
.label::before { content: ""; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.about-photo { grid-area: photo; position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; align-self: start; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.about-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 42px 16px 14px; font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--ongray); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 860px) {
  .about { padding: 28px 16px 40px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "photo" "contact" "bio"; gap: 18px; }
  .about-photo { aspect-ratio: 5 / 4; }
  .about-contact { margin-top: 8px; }
}

/* ---------- invitation between the strip and the gallery ---------- */
.arr { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-top: -3px; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
.invite { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 18px; height: var(--inv); font-weight: 400; font-size: clamp(17px, 2.04vw, 28.9px); letter-spacing: .24em; color: var(--fg); cursor: pointer; }
.invite i { width: 41px; height: 41px; border-radius: 50%; border: 1px solid var(--dot); display: grid; place-items: center; color: var(--dot); transition: background .25s, color .25s; }
.invite i .arr { animation: bob 1.8s ease-in-out infinite; }
.invite:hover i { background: var(--dot); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .invite i .arr { animation: none; } }

/* ---------- section titles in the one-page scroll ---------- */
.sec-title { padding: clamp(32px, 5vh, 48px) 16px; text-align: center; font-weight: 400; font-size: clamp(17px, 2.04vw, 28.9px); line-height: 1; letter-spacing: .24em; text-transform: uppercase; border-top: 1px solid var(--line); }
.sec-title::after { content: "."; color: var(--dot); }
#sec-bio .about { padding-top: 6px; }
#sec-bio .about-name { display: none; }

/* project covers: name centered on the image */
.tile .cap.center { inset: 0; padding: 0 16px; display: flex !important; align-items: center; justify-content: center; text-align: center; opacity: 1 !important;
  background: rgba(0,0,0,.34); transition: background .25s; }
.tile:hover .cap.center { background: rgba(0,0,0,.12); }
.tile .cap.center b { font-size: clamp(16px, 2.04vw, 28.9px); letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.sec-title { text-transform: uppercase; }
.proj-head { position: relative; }
.proj-head a { position: absolute; left: 22px; top: clamp(32px, 5vh, 48px); font-size: 12px; letter-spacing: .2em; color: var(--muted); line-height: 1; padding-top: 0.15em; }
.proj-head a:hover { color: var(--fg); }
.proj-head .sec-title { border-top: 0; }
@media (max-width: 860px) { .proj-head a { left: 16px; top: 18px; } .proj-head .sec-title { padding-top: 52px; } }

/* hover: invert the image under the cursor, on the homepage strip only (hover-capable devices only) */
.slide img, .slide video { transition: filter .35s ease; }
@media (hover: hover) {
  .slide:hover img, .slide:hover video { filter: invert(1); }
}
@media (prefers-reduced-motion: reduce) { .slide img, .slide video { transition: none; } }

/* captions on the homepage strip: shown on hover, like the grids (hover-capable devices only) */
.slide .cap { display: none; position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 20px; color: var(--ongray); background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: 12px; line-height: 1.5; pointer-events: none; z-index: 2; }
.slide .cap b { display: block; font-weight: 400; font-size: 14px; letter-spacing: .18em; }
@media (hover: hover) { .slide .cap { display: block; opacity: 0; transition: opacity .2s; } .slide:hover .cap { opacity: 1; } }
/* accessibility: visible keyboard focus, pause control for the moving strip */
:focus-visible { outline: 1px solid var(--dot); outline-offset: 3px; }
.strip { cursor: pointer; }
.strip.paused::after { content: "Paused"; position: absolute; right: 44px; bottom: 20px; z-index: 4; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: .9; text-shadow: 0 0 3px #000, 0 0 10px rgba(0,0,0,.9); pointer-events: none; }
@media (max-width: 860px) { .strip.paused::after { right: 36px; bottom: 16px; } }
.v-stage iframe.vimeo { border: 0; max-height: calc(100vh - 140px); background: #000; }

/* Vimeo film cards */
.vcard { position: relative; width: 100%; background: #0c0c0c; display: grid; place-items: center; overflow: hidden; }
.tile .vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-ring { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--dot); display: grid; place-items: center; background: rgba(0,0,0,.25); transition: background .25s; }
.vc-ring::before { content: ""; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--dot); }
.tile:hover .vc-ring { background: rgba(0,0,0,.55); }
.vc-title { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.vcard.has .vc-title { display: none; }

.v-cap a.watch { display: block; width: max-content; margin-top: 8px; color: var(--muted); border-bottom: 1px solid var(--line); pointer-events: auto; }
.v-cap a.watch:hover { color: var(--fg); border-bottom-color: var(--dot); }

.v-stage a.vlink { color: var(--fg); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; padding: 16px 24px; border: 1px solid var(--dot); border-radius: 999px; text-align: center; }

/* ---------- captions below photos (editor setting) ---------- */
.grid.belowcap .tile { background: transparent; overflow: visible; text-align: left; }
.grid.belowcap .tile img, .grid.belowcap .tile video, .grid.belowcap .tile .vcard { display: block; }
.grid.belowcap .tile .cap { position: static; background: none; padding: 9px 12px 18px; min-height: 52px; pointer-events: none; color: var(--fg); }
.grid.belowcap .tile .cap b { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.grid.belowcap .tile .cap span { display: block; font-size: 12px; color: var(--muted); }
.grid.belowcap .tile::after { bottom: 66px; }

/* cookie notice (EU / UK visitors only) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--fg); border-top: 1px solid var(--fg); font-size: 12px; }
.consent .c-btns { display: flex; gap: 18px; }
.consent button { background: none; border: 0; padding: 4px 0; color: var(--fg); font: inherit; letter-spacing: inherit; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* iPhone: never show the big round play button on films that play by themselves */
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls-overlay-play-button { display: none !important; }
.tile video, .slide video { pointer-events: none; }
