/* Photo Index, site-2026-10. White ground, Helvetica Neue Light, blue on
   the wordmark and the current link only. Motion classes at the foot;
   every hidden state is gated on html.m-js, which js/motion.js adds only
   when scripting runs and reduced motion is not requested. */

@font-face {
  font-family: "PI Sans";
  src: local("Helvetica Neue Light"), local("HelveticaNeue-Light"),
       url("../fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PI Sans";
  src: local("Helvetica Neue Light Italic"), local("HelveticaNeue-LightItalic");
  font-weight: 300;
  font-style: italic;
}

:root {
  --ground: #ffffff;
  --ink: #2b2b2b;
  --grey: #767676;
  --blue: #4a86b8;
  --hairline: #e6e6e6;
  --stack: "PI Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --label: 0.8rem;
  --track: 0.18em;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--stack);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

p, ul, ol, figure, h1, h2 { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: italic; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
  padding: clamp(1rem, 2.6vw, 2rem) var(--gutter) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--blue);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.1rem, 2.4vw, 2rem);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--grey);
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }

@media (max-width: 767px) {
  .nav { width: 100%; }
}

/* ---- text pages ---- */

.sheet {
  padding: clamp(3rem, 9vw, 8rem) var(--gutter) 0;
  max-width: 90rem;
}

.lede {
  max-width: 34em;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -0.003em;
}

.label {
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--grey);
  line-height: 1.6;
}

.part {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.part:first-child { margin-top: 0; }

.label em { font-style: italic; }

@media (min-width: 1024px) {
  .part {
    grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr);
    gap: 2.5rem;
  }
  .part > .label { padding-top: 1.35rem; }
  .part.solo > * { grid-column: 2; }
}

.rows { max-width: 60ch; }

.rows > li, .rows > p {
  position: relative;
  padding: 1.25rem 0 1.35rem;
}

.rows > li::before, .rule-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}

.after { margin-top: 2rem; max-width: 60ch; color: var(--ink); }

/* clients: name left, place right */
.roster { max-width: 52rem; }

.roster > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 2rem;
  padding: 0.95rem 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.roster .place {
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--grey);
  line-height: 1.6;
}


.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.4rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 500ms var(--ease);
  overflow-wrap: anywhere;
}

.contact-mail:hover { border-bottom-color: var(--ink); }

.contact-place { margin-top: 1rem; }

/* ---- colophon ---- */

.colophon {
  position: relative;
  margin-top: clamp(5rem, 12vw, 10rem);
  padding: 1.75rem var(--gutter) 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 2rem;
}

.colophon::before { left: var(--gutter); right: var(--gutter); }

.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.colophon a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }

/* ---- home: the orbit composition with the bio, below the gallery ---- */

.cue {
  width: 1px;
  height: 3rem;
  margin: 0.75rem auto 0;
  background: var(--grey);
  transform-origin: top center;
}

.studio {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0 var(--gutter);
  overflow: clip;
}

@media (min-width: 1200px) {
  .studio {
    grid-template-columns: minmax(0, auto) minmax(18rem, 30rem);
    justify-content: center;
    align-items: start;
    gap: clamp(2rem, 4vw, 5rem);
  }
  .studio .bio {
  max-width: 60ch;
}

/* the bio settles like a photograph: opacity only, 300 ms, once */
.m-js .settle {
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.m-js .settle.is-in { opacity: 1; }
}

.stage {
  --r: min(31vmin, 270px);
  position: relative;
  width: min(calc(2 * var(--r) + 6rem), calc(100vw - 2 * var(--gutter)));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.stage .title { position: relative; z-index: 2; text-align: center; }

.stage h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 9vmin, 5.5rem);
  line-height: 1.15;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.stage .title p {
  margin-top: 0.9rem;
  font-size: clamp(0.75rem, 2vmin, 0.95rem);
  letter-spacing: 0.18em;
  color: var(--grey);
}

.orbit {
  position: absolute;
  inset: 0;
  animation: orbit 90s linear infinite;
}

.g {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #3d3d3d;
  font-size: clamp(2.2rem, 7vmin, 4.2rem);
  opacity: 0.85;
  user-select: none;
  line-height: 1.3;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r, min(31vmin, 270px)))) rotate(calc(-1 * var(--a)));
  animation: counter 90s linear infinite;
}

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r, min(31vmin, 270px)))) rotate(calc(-360deg - var(--a))); } }

.bio {
  max-width: 34em;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
}

/* ---- home: compact services, clients and contact ---- */

.digest {
  padding: 0 var(--gutter) 4rem;
  max-width: 90rem;
}

.digest .part { margin-top: 3rem; }
.digest .part:first-child { margin-top: 2.5rem; }

.digest-lede { max-width: 60ch; margin-bottom: 1rem; }

@media (min-width: 1024px) {
  .rows.two {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

.names {
  columns: 2 14rem;
  column-gap: 2.5rem;
  max-width: 52rem;
}

.names li {
  break-inside: avoid;
  padding: 0.3rem 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.4;
}

.names-sub { margin: 1.5rem 0 0.5rem; }

.more { margin-top: 0.75rem; }

.label-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--grey);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.label-link:hover { color: var(--ink); }

/* ---- rolling gallery ---- */

.roll {
  --h: 54vh;
  position: relative;
  margin-top: clamp(1rem, 3vh, 2.5rem);
  padding: clamp(0.5rem, 2vh, 1.5rem) 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

@supports (height: 1svh) {
  .roll { --h: 54svh; }
}

@media (min-width: 768px) {
  .roll { --h: 58vh; }
}

@media (min-width: 1024px) {
  .roll { --h: 66vh; }
}

.roll.is-scrubbing { cursor: grabbing; }

.roll:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.roll-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: max-content;
  animation: roll-drift 600s linear infinite;
}

.roll[data-tactile="on"] .roll-track { animation: none; }

.roll:focus-visible .roll-track,
.roll:has(:focus-visible) .roll-track { animation-play-state: paused; }

@keyframes roll-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.roll .w {
  display: block;
  flex: 0 0 auto;
  cursor: inherit;
  -webkit-user-drag: none;
}

.roll .w:focus-visible { outline-offset: -2px; }

.roll img {
  height: var(--h);
  width: auto;
  max-width: none;
  background: #f4f4f4;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ---- full view ---- */

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  overscroll-behavior: contain;
}

.viewer::backdrop { background: var(--ground); }

.viewer[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: var(--gutter) var(--gutter) 0;
  touch-action: pan-y;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 300ms ease-out;
}

.viewer-stage img.is-loading { opacity: 0; }

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--gutter) max(0.75rem, env(safe-area-inset-bottom));
}

.viewer-bar .steps { display: flex; gap: 0 1.5rem; }

.viewer button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--grey);
  cursor: pointer;
  transition: color 300ms var(--ease);
}

.viewer button:hover { color: var(--ink); }

html.viewer-open { overflow: hidden; }

/* ==== motion: the gallery, the orbit, and one opacity settle per photograph ==== */

/* roll.js sets data-tactile and marks each photograph .is-in as it enters
   the viewport; without roll.js nothing is hidden */
.m-js .roll[data-tactile="on"] img {
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.m-js .roll[data-tactile="on"] img.is-in { opacity: 1; }

/* ---- reduced motion: everything visible and static ---- */

@media (prefers-reduced-motion: reduce) {
  .roll-track { animation: none; }
  .roll {
    overflow-x: auto;
    cursor: auto;
  }
  .roll .w[aria-hidden="true"] { display: none; }
  .viewer-stage img { transition: none; }
  .nav a, .viewer button, .contact-mail { transition: none; }
  .orbit, .g { animation: none; }
}

