/* SCOPE — darkroom / contact-sheet art direction */

:root {
  --bg: #0b0b0a;
  --bg-2: #151513;
  --fg: #ece8e0;
  --muted: rgba(236, 232, 224, 0.52);
  --line: rgba(236, 232, 224, 0.14);
  --accent: #ff3d1f;
  --leak: linear-gradient(100deg, #ff3d1f 0%, #ff7a2f 35%, #ffc861 60%, #ff3d1f 100%);

  --display: "Syne", "Noto Sans JP", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(10px, 1.3vw, 20px);
  --space: clamp(4rem, 12vw, 11rem);
  --header-h: 64px;
  --title-max: 13.5rem;

  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #333 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }

.mono,
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.label { color: var(--muted); }

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 0.6em 1em;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

.caret { color: var(--accent); animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------ preloader */

.preloader { display: none; }

.js:not(.intro-seen) .preloader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template: 1fr auto / 1fr auto;
  padding: var(--gutter);
  background: var(--bg);
  overflow: hidden;
  transition: transform 1.1s var(--ease), visibility 0s 1.1s;
}

.preloader.is-done { transform: translateY(-100%); visibility: hidden; }

.preloader-word {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 12rem);
  letter-spacing: -0.03em;
  line-height: 1;
  mix-blend-mode: difference;
}

.preloader-count { color: var(--accent); font-size: 13px; }
.preloader-note { color: var(--muted); }

.preloader-leak {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(closest-side at 70% 30%, rgba(255, 61, 31, 0.55), transparent),
    radial-gradient(closest-side at 30% 75%, rgba(255, 170, 60, 0.35), transparent);
  filter: blur(40px);
  opacity: 0.6;
  animation: leak 6s ease-in-out infinite alternate;
}

@keyframes leak {
  to { transform: translate(8%, -6%) rotate(12deg) scale(1.1); opacity: 0.9; }
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform 0.6s var(--ease);
  view-transition-name: header;
}

.site-header.is-hidden { transform: translateY(-100%); }

.logo {
  justify-self: start;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.clock { opacity: 0.8; }
.clock time { font-variant-numeric: tabular-nums; }

.site-header nav { justify-self: end; }
.site-header ul { display: flex; gap: clamp(14px, 2.4vw, 32px); }

.site-header nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header nav a span,
.link-line {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}

.site-header nav a:hover span,
.site-header nav a[aria-current] span,
.link-line:hover { background-size: 100% 1px; background-position: 0 100%; }

/* ------------------------------------------------------------ hero (home) */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: calc(var(--header-h) + 8px) var(--gutter) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; z-index: -1; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero-slide.is-active { opacity: 1; }

/* Separate photo selection for portrait (mobile) screens. */
.hero-media-mobile { display: none; }

@media (max-aspect-ratio: 1/1) {
  .hero-media-mobile { display: block; }
  .hero-media-desktop:has(+ .hero-media-mobile) { display: none; }
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 9s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.hero-slide.is-active img { transform: scale(1.02); }

/* Portrait photos: a print on the right over a blurred copy (landscape screens only). */
@media (min-aspect-ratio: 1/1) {
  .hero-slide.is-portrait .hero-backdrop {
    position: absolute;
    inset: 0;
    filter: blur(48px) brightness(0.5) saturate(0.8);
    transform: scale(1.25);
    transition: none;
  }

  .hero-slide.is-portrait .hero-img {
    position: absolute;
    top: calc(var(--header-h) + 52px);
    right: var(--gutter);
    width: auto;
    height: calc(100% - var(--header-h) - 52px);
    max-width: 48%;
    transform: translateY(4%);
  }

  .hero-slide.is-portrait.is-active .hero-img { transform: none; }
}

@media (max-aspect-ratio: 1/1) {
  .hero-backdrop { display: none; }
}

.hero-shade {
  background:
    linear-gradient(to bottom, rgba(11, 11, 10, 0.55), transparent 22%, transparent 55%, rgba(11, 11, 10, 0.75)),
    rgba(11, 11, 10, 0.15);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-index { font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; min-width: 7ch; }
.hero-current { color: var(--accent); }

.hero-title {
  grid-row: 3;
  display: flex;
  margin: 0 0 0.04em -0.04em;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc((100vw - 2 * var(--gutter)) / 6.86);
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: #fff;
  overflow: hidden;
  padding-top: 0.06em;
}

.hero-title span { display: inline-block; }

.hero-bottom {
  grid-row: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(12px, 2vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-caption { display: grid; gap: 4px; }
.hero-caption .label { color: rgba(255, 255, 255, 0.6); }

.hero-caption-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-caption-title,
.hero-caption-meta { transition: opacity 0.4s, transform 0.5s var(--ease-out); }

.hero-caption.is-swapping .hero-caption-title,
.hero-caption.is-swapping .hero-caption-meta { opacity: 0; transform: translateY(8px); }

.hero-nav {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px 14px;
  color: #fff;
}

.hero-nav button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-nav button:hover { background: #fff; color: #000; border-color: #fff; }

.hero-progress { grid-column: 1 / -1; height: 1px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hero-progress.is-running span { animation: hero-progress var(--hero-delay, 6s) linear forwards; }

@keyframes hero-progress { to { transform: scaleX(1); } }

.no-js .hero-nav { display: none; }

/* With JS, the photos fade in once a random first one is picked and loaded. */
.js .hero-media { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.js .hero.is-init .hero-media { opacity: 1; }

/* ------------------------------------------------------------ statement */

.statement {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem var(--gap);
  padding: var(--space) var(--gutter);
}

.statement > .label { grid-column: 1 / 4; padding-top: 0.9em; }

.statement-text {
  grid-column: 4 / -1;
  font-size: clamp(2rem, 4.9vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-indent: 18%;
  text-wrap: pretty;
}

.statement .link-line { grid-column: 4 / -1; justify-self: start; }

.js .statement-text .w { opacity: 0.14; transition: opacity 0.5s; }
.js .statement-text .w.on { opacity: 1; }

/* ------------------------------------------------------------ practices */

.practices {
  display: flex;
  gap: var(--gap);
  height: 88vh;
  height: 88svh;
  min-height: 520px;
  padding: 0 var(--gutter);
}

.practice {
  position: relative;
  flex: 1 1 0;
  display: grid;
  grid-template: auto 1fr auto / 1fr auto;
  padding: clamp(14px, 1.6vw, 24px);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  transition: flex-grow 1s var(--ease);
}

.practices:hover .practice:hover { flex-grow: 1.7; }

.practice-media { position: absolute; inset: 0; z-index: -1; }

.practice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.8);
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out), filter 0.8s;
}

.practice:hover .practice-media img { transform: scale(1); filter: saturate(1) brightness(0.95); }

.practice-num { color: #fff; }

.practice-title {
  grid-row: 3;
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 10cqi, 6.6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}

.practice-count { grid-row: 1; grid-column: 2; color: #fff; }

/* ------------------------------------------------------------ marquee */

.marquee {
  margin-top: var(--space);
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.m-item {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.m-item:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.m-sep { margin: 0 0.5em; color: var(--accent); font-size: clamp(1.4rem, 3vw, 3rem); }

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

/* ------------------------------------------------------------ index */

.index { padding: var(--space) var(--gutter) 0; }

.index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.block-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.index-list { border-bottom: 1px solid var(--line); counter-reset: idx; }
.index-list li { border-top: 1px solid var(--line); }

.index-list a {
  display: grid;
  grid-template-columns: 4ch 1fr 12ch 13ch 6ch;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.9rem, 1.6vw, 1.4rem) 0;
  transition: opacity 0.5s;
}

.i-num { color: var(--muted); transition: color 0.4s; }

.i-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease-out);
}

.i-place,
.i-date,
.i-count { color: var(--muted); }
.i-count { text-align: right; }
.i-thumb { display: none; }

@media (hover: hover) {
  .index-list:hover a { opacity: 0.28; }
  .index-list a:hover { opacity: 1; }
  .index-list a:hover .i-title { transform: translateX(clamp(0.6rem, 2vw, 2rem)); }
  .index-list a:hover .i-num { color: var(--accent); }
}

.index-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(200px, 21vw, 340px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(-50%, -50%) rotate(var(--rot, 0deg));
  transition: clip-path 0.6s var(--ease);
}

.index-preview.is-visible { clip-path: inset(0 0 0 0); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ page hero */

.page-hero { padding: calc(var(--header-h) + clamp(3rem, 14vh, 10rem)) var(--gutter) 0; }

.eyebrow { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; color: var(--muted); margin-bottom: clamp(1rem, 3vw, 2rem); }
.eyebrow a { color: var(--fg); }
.eyebrow a:hover { color: var(--accent); }

.page-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-left: -0.05em;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem var(--gap);
  margin-top: clamp(2rem, 6vw, 5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.meta dt { color: var(--muted); margin-bottom: 0.3em; }

/* ------------------------------------------------------------ content flow */

.flow {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) var(--space);
}

.lead {
  max-width: 28ch;
  margin-left: calc(100% / 3);
  font-size: clamp(1.6rem, 2.9vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.lead::first-letter { font-style: italic; }

.row { display: flex; gap: var(--gap); align-items: flex-start; }
.row .fig { flex: var(--r) 1 0; min-width: 0; }

.columns {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.col { display: flex; flex-direction: column; gap: var(--gap); }
.col .lead { margin-left: 0; font-size: clamp(1.4rem, 2.2vw, 2.2rem); }

.single .fig { width: min(100%, calc(86svh * var(--r))); margin-inline: auto; }

.fig { position: relative; }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

.frame { display: block; overflow: hidden; }

.fig img {
  width: 100%;
  aspect-ratio: var(--r);
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

@media (hover: hover) {
  .zoom:hover img { transform: scale(1.035); }
}

.fig figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7em;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fig figcaption::before { content: "▸"; color: var(--accent); margin-right: 0.6em; order: -1; }
.fig figcaption span { margin-right: auto; }

/* film strip (slideshow) */

.strip { margin-inline: calc(-1 * var(--gutter)); }

.strip-track {
  display: flex;
  gap: var(--gap);
  padding: 0 var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}

.strip-track::-webkit-scrollbar { display: none; }
.strip-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-track.is-dragging .zoom { pointer-events: none; }

.strip-track li { flex: none; scroll-snap-align: start; }
.strip .fig img { height: clamp(260px, 68vh, 760px); width: auto; user-select: none; -webkit-user-drag: none; }

.strip-ui {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem var(--gutter) 0;
  color: var(--muted);
}

.strip-count { color: var(--fg); font-variant-numeric: tabular-nums; }

.strip-bar { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.strip-bar span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0.1)); }

/* ------------------------------------------------------------ series grid (analog page) */

.series-grid-wrap { padding: 0 var(--gutter) var(--space); }

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem) var(--gap);
}

.card { display: grid; gap: 0.9rem; }
.card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.4s var(--ease-out), filter 0.6s;
}

.card:hover .card-media img { transform: scale(1.07); }

.card-info { display: flex; align-items: baseline; gap: 1rem; }
.card-info .mono { color: var(--muted); }
.card-info .mono:last-child { margin-left: auto; }

.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------ next */

.next {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.8rem;
  min-height: 85vh;
  min-height: 85svh;
  padding: var(--gutter);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.next-media { position: absolute; inset: 0; z-index: -1; }

.next-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.08);
  transition: opacity 1s, transform 1.6s var(--ease-out);
}

.next:hover .next-media img { opacity: 0.62; transform: scale(1); }

.next-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: transform 1s var(--ease-out);
}

.next:hover .next-title { transform: translateX(clamp(0.5rem, 2vw, 2rem)); }
.next-meta { color: var(--muted); }

/* ------------------------------------------------------------ about */

.about-hero { padding: calc(var(--header-h) + clamp(3rem, 14vh, 10rem)) var(--gutter) 0; }

.about-title {
  font-size: clamp(3rem, 9.2vw, 10.5rem);
  text-transform: none;
  letter-spacing: -0.045em;
  line-height: 0.9;
  max-width: 11ch;
}

/* Facts: equal columns across the full width, the outer ones flush with the edges */
.about-name {
  font-weight: 800;
  background: var(--leak);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: leak-pan 9s ease-in-out infinite alternate;
}

.about-hero .meta { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.about-hero .meta > div { text-align: center; }
.about-hero .meta > div:first-child { text-align: left; }
.about-hero .meta > div:last-child { text-align: right; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) 0;
  align-items: start;
}

.about-portrait { grid-column: 1 / 6; }
.about-portrait img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.about-portrait figcaption { color: var(--muted); }

/* The text follows the portrait while scrolling */
.about-text {
  grid-column: 7 / -1;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1.6rem;
}

.about-text .lead { margin-left: 0; }
.about-text .lead ~ .lead { font-size: clamp(1.3rem, 2vw, 2rem); color: rgba(236, 232, 224, 0.78); }

.contact { padding: var(--space) var(--gutter); display: grid; gap: 2rem; justify-items: start; }

.contact-title {
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.4s, color 0.4s;
}

.pill:hover { background: var(--fg); color: var(--bg); }
.pill-big { font-size: clamp(13px, 1.6vw, 18px); text-transform: none; }

.link-line { display: inline-block; }

/* ------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
  padding: var(--space) var(--gutter) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-cta { display: grid; gap: 1rem; justify-items: start; }
.page-about .footer-cta { display: none; }

.footer-big {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.footer-big .arrow {
  font-size: 0.5em;
  color: var(--accent);
  transition: transform 0.8s var(--ease-out);
}

.footer-cta:hover .arrow { transform: rotate(45deg); }

.footer-note { max-width: 30ch; font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--muted); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.to-top:hover { color: var(--fg); }

.footer-word {
  margin: 0 0 -0.2em -0.04em;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc((100vw - 2 * var(--gutter)) / 6.86);
  line-height: 0.9;
  letter-spacing: -0.035em;
  background: var(--leak);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: leak-pan 9s ease-in-out infinite alternate;
  user-select: none;
}

.footer-word .caret { color: transparent; }

@keyframes leak-pan { to { background-position: 100% 0; } }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 8px) var(--gutter) var(--gutter);
  background: rgba(8, 8, 7, 0.97);
  opacity: 0;
  transition: opacity 0.45s;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox figure { display: grid; gap: 0.9rem; max-width: 100%; max-height: 100%; }

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: calc(100svh - var(--header-h) - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.5s;
}

.lightbox.is-open img.is-loaded { transform: none; opacity: 1; }

.lightbox figcaption { display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); }
.lb-count { color: var(--fg); font-variant-numeric: tabular-nums; }

.lb-close {
  position: absolute;
  top: 0;
  right: var(--gutter);
  z-index: 2;
  height: var(--header-h);
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  cursor: pointer;
}

.lb-close:hover { color: var(--accent); }

.lb-prev,
.lb-next {
  position: absolute;
  top: var(--header-h);
  bottom: 0;
  width: 50%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.lb-prev { left: 0; }
.lb-next { right: 0; }

/* ------------------------------------------------------------ grain */

.grain {
  position: fixed;
  inset: -100%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); }
  100% { transform: translate(-2%, -4%); }
}

/* ------------------------------------------------------------ reveal animations */

.w { display: inline-block; overflow: hidden; text-indent: 0; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w > span { display: inline-block; }

.js .page-title .w > span,
.js .block-title .w > span,
.js .contact-title .w > span,
.js .hero-title span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 0.1s);
}

.js .is-ready .is-in .w > span,
.js .is-ready .hero-title span { transform: none; }

.js [data-reveal]:not(.fig) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .is-ready [data-reveal].is-in:not(.fig) { opacity: 1; transform: none; }

.js .fig[data-reveal] .frame {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease);
  transition-delay: calc(var(--d, 0) * 120ms);
}

.js .fig[data-reveal] img { transform: scale(1.22); transition: transform 1.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
.js .fig[data-reveal] figcaption { opacity: 0; transition: opacity 0.8s 0.6s; }

.js .is-ready .fig.is-in .frame { clip-path: inset(0 0 0 0); }
.js .is-ready .fig.is-in img { transform: none; }
.js .is-ready .fig.is-in figcaption { opacity: 1; }

@media (hover: hover) {
  .js .is-ready .fig.is-in .zoom:hover img { transform: scale(1.035); transition-delay: 0s; }
}

/* Series pages: photos simply fade in (titles and text keep the reveal above). */
.js .page-series .fig[data-reveal] { opacity: 0; transition: opacity 0.4s ease-out; }
.js .page-series.is-ready .fig.is-in { opacity: 1; }
.js .page-series .fig[data-reveal] .frame { clip-path: none; transition: none; }
.js .page-series .fig[data-reveal] img { transform: none; transition: transform 0.5s var(--ease-out); }
.js .page-series .fig[data-reveal] figcaption { opacity: 1; transition: none; }
.page-series .next-media img { animation: none; transform: none; transition: opacity 0.4s; }

/* scroll-linked parallax where supported */
@supports (animation-timeline: view()) {
  .next-media img,
  .practice-media img {
    animation: parallax linear both;
    animation-timeline: view();
  }

  .hero-title,
  .hero-top {
    animation: hero-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }

  @keyframes parallax {
    from { translate: 0 -7%; }
    to { translate: 0 7%; }
  }

  @keyframes hero-out {
    to { translate: 0 22vh; opacity: 0.15; }
  }
}

/* ------------------------------------------------------------ page transitions */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.55s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.85s var(--ease) both; }

@keyframes vt-out { to { opacity: 0; transform: translateY(-3vh); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list a { grid-template-columns: 3.5ch 1fr 11ch 5ch; }
  .i-place { display: none; }
  .lead { margin-left: 15%; }
}

@media (max-width: 760px) {
  :root { --header-h: 56px; }

  .clock { display: none; }
  .site-header { grid-template-columns: auto 1fr; }

  .hero-nav { gap: 10px 8px; flex: none; }
  .hero-nav button { width: 36px; height: 36px; }

  .statement { display: block; }
  .statement > .label { margin-bottom: 1.5rem; }
  .statement-text { text-indent: 12%; margin-bottom: 2rem; }

  .practices { flex-direction: column; height: auto; }
  .practice { min-height: 72svh; }

  .index-list a { grid-template-columns: 3ch 1fr auto; gap: 0.8rem; align-items: center; }
  .i-date,
  .i-count { display: none; }
  .i-thumb { display: block; width: 56px; aspect-ratio: 4 / 5; overflow: hidden; }
  .i-thumb img { width: 100%; height: 100%; object-fit: cover; }

  .lead { margin-left: 0; }

  .row { flex-direction: column; }
  .row .fig { flex: none; width: 100%; }

  .columns { grid-template-columns: minmax(0, 1fr); }
  .col-empty { display: none; }

  .single .fig { width: 100%; }

  .series-grid { grid-template-columns: minmax(0, 1fr); }

  .about-portrait,
  .about-text { grid-column: 1 / -1; }
  .about-text { position: static; margin-top: 2rem; }

  .lb-prev,
  .lb-next { display: none; }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .preloader,
  .grain,
  .hero-progress { display: none !important; }

  .js .statement-text .w { opacity: 1; }
}
