@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/fonts/roboto-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/fonts/roboto-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/assets/fonts/azeret-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Geist (SIL Open Font License): the one font for everything large (headings, emails, menu links). */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --grey: rgb(168, 168, 168);
  --fs: 14px;
  --lh: 21px;
  --pad: 20px;
  --display: 82px;
  --xl: 32px;
  /* Two fonts site-wide: Roboto Mono for small text, Geist for anything large. */
  --font-big: "Geist", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --error: #e5484d;
  /* Page surface and ink. Always light: the site ignores the system's dark mode, and
     "only light" also stops browsers that darken pages on their own. */
  --bg: var(--white);
  --fg: var(--black);
  color-scheme: only light;
}
@media (max-width: 1199px) {
  :root { --fs: 12px; --lh: 18px; --pad: 10px; --display: 64px; --xl: 26px; }
}
@media (max-width: 809px) {
  :root { --display: 42px; --xl: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto Mono", monospace;
  font-size: var(--fs);
  line-height: var(--lh);
  font-weight: 400;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.dark { background: var(--black); color: var(--white); }
body.home { overflow: hidden; height: 100vh; height: 100dvh; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-weight: 400; }
img, video { display: block; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.display {
  font-family: var(--font-big);
  font-size: var(--display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.xl {
  font-family: var(--font-big);
  font-size: var(--xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.grey { color: var(--grey); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  mix-blend-mode: difference;
  color: var(--white);
  pointer-events: none;
}
.nav nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 20px var(--pad) 0;
}
.nav a, .nav button { pointer-events: auto; }
.nav .logo { justify-self: start; }
.nav .menu { display: flex; justify-content: flex-end; gap: 10px; }
.nav .touch { grid-column: span 2; display: flex; justify-content: flex-end; }
.nav .menu-btn { display: none; }
.nav a, .nav .menu-btn { transition: opacity 0.2s var(--ease); }
.nav a:hover { opacity: 0.5; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 var(--pad) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.overlay a { display: block; }
.overlay .small { margin-top: 30px; opacity: 0.5; }

@media (max-width: 809px) {
  .nav nav { grid-template-columns: 1fr auto; }
  .nav .menu, .nav .touch { display: none; }
  .nav .menu-btn { display: block; }
}

/* ---------- Page shell + footer ---------- */
.page { position: relative; min-height: 100vh; }
.footer {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 20px 20px;
}
.footer .foot-row { display: flex; justify-content: space-between; padding: 0 10px; }
.footer .legal { opacity: 0.5; }
.footer .line { height: 5px; border: 1px solid currentColor; border-top: 0; }
.footer a:hover { opacity: 0.5; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.982;
  overflow: hidden;
}
.card-media img, .card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
  transition: transform 0.4s var(--ease);
}
/* hover: the image slides down inside its frame */
.card:hover .card-media img, .card:hover .card-media video { transform: translateY(40px); }
.chips {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.chip {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  color: var(--white);
  font-family: "Azeret Mono", "Roboto Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.chip-status { background: var(--white); color: var(--black); }
.card-title { color: var(--grey); transition: color 0.2s var(--ease); }
.card:hover .card-title { color: var(--fg); }

/* Upcoming projects without a page: no link and no hover motion. */
.card.soon { cursor: default; }
.card.soon .card-media, .row.soon .cell.main { background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.soon-label { color: var(--grey); }
.card.soon:hover .card-title { color: var(--grey); }
.other .list .soon-row { display: flex; justify-content: space-between; color: var(--grey); opacity: 0.5; }

.appear { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.appear.in { opacity: 1; transform: none; }

/* ---------- Home carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel.dragging { cursor: grabbing; }
.carousel .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 430px;
  transform: translate3d(0, -50%, 0);
}
.carousel .slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 380px;
  height: 430px;
  will-change: transform;
}
.carousel .slide .card { opacity: 0; transition: opacity 0.9s var(--ease); }
.carousel .slide .card.in { opacity: 1; }
.carousel img { -webkit-user-drag: none; pointer-events: none; }
.carousel.dragging .card .card-media img, .carousel.dragging .card .card-media video { transform: none; }
@media (hover: none) {
  .card:hover .card-media img, .card:hover .card-media video { transform: none; }
}

/* ---------- Works index ---------- */
.works {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 200px var(--pad) 400px;
  container-type: inline-size;
}
.works-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 20px;
  align-items: start;
}
.works-head .col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.works-head .links { display: flex; flex-direction: column; align-items: flex-start; }
.works-head .links a { color: var(--grey); transition: color 0.2s var(--ease); }
.works-head .links a:hover, .works-head .links a.on { color: var(--fg); }

.works-list.masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 80px 5px;
  /* every row is one card tall, so the span-2 cards sit a full step lower */
  grid-auto-rows: calc((100cqw - 15px) / 4 * 0.982 + 10px + var(--lh));
}
.works-list.masonry > .cell:nth-child(even) { grid-row: span 2; align-self: end; }
.works-list.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 10px;
}
.works-list.list { display: flex; flex-direction: column; gap: 40px; }

.row { display: flex; flex-direction: column; gap: 10px; }
.row-media { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.row-media .cell { position: relative; aspect-ratio: 229 / 201; overflow: hidden; grid-row: 1; }
.row-media .cell.main { background: var(--black); }
.row-media img, .row-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-media .cell.more img { opacity: 0; transform: translateY(100%); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.row:hover .row-media .cell.more img { opacity: 1; transform: none; }
.row-text { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row-text .svc { grid-column: span 2; display: flex; gap: 10px; color: var(--grey); }
.row-text .date { text-align: right; color: var(--grey); }

@media (max-width: 1199px) {
  .works { padding-top: 160px; padding-bottom: 300px; }
  .works-list.masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 5px) / 2 * 0.982 + 10px + var(--lh)); }
  .works-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  .works { padding-top: 120px; padding-bottom: 200px; gap: 40px; }
  .works-head { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .works-list.masonry, .works-list.grid { grid-template-columns: minmax(0, 1fr); gap: 40px; grid-auto-rows: auto; }
  .works-list.masonry > .cell:nth-child(even) { grid-row: auto; }
  .row-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-media .cell { grid-column: auto !important; }
  .row-media .cell.more img { opacity: 1; transform: none; }
  .row-text { grid-template-columns: 1fr auto; row-gap: 0; }
  .row-text .svc { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
}

/* ---------- Work detail ---------- */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  background: var(--black);
  z-index: 2;
  will-change: width;
}
.hero-media img, .hero-media video { width: 100vw; height: 100%; object-fit: cover; }
.hero-info {
  position: absolute;
  left: calc(50% + 20px);
  right: var(--pad);
  top: 0;
  bottom: 0;
}
.hero-info h2 { position: absolute; left: 0; right: 0; top: 39.8vh; }
.hero-info h2 span, .about-hero h2 span { opacity: 0; transition: opacity 0.6s var(--ease); }
.hero-info h2 span.in, .about-hero h2 span.in { opacity: 1; }
.about-hero h2 .word { display: inline-block; white-space: nowrap; opacity: 1; }
.about-hero h2 .word.loose { display: inline; white-space: normal; }
.about-hero h2 .word > span { display: inline-block; }
.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 199px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.hero-meta .block { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .tags { display: flex; flex-wrap: wrap; gap: 0 10px; }
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: end;
}
.hero-foot .intro { max-width: 276px; }
.hero-spacer { height: 80vh; }

.work-about {
  position: relative;
  z-index: 3;
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 200px 20px;
  padding: 40px var(--pad) 200px;
}
.work-about .text { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.work-about .text .body { max-width: 669px; display: flex; flex-direction: column; gap: 20px; }
.work-about .credits { grid-column: span 2; display: flex; flex-direction: column; }
.work-about .credits .head { padding-bottom: 20px; }
.work-about .credits .item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-about .credits .item p:last-child { text-align: right; }

.gallery { position: relative; z-index: 3; background: var(--bg); display: flex; flex-direction: column; }
.gallery .g-row { display: flex; width: 100%; }
.gallery .g-cell { position: relative; flex: 1 0 0; height: calc(var(--h) * 1vh); overflow: hidden; }
.gallery .g-cell.ratio { flex: var(--grow) 1 0; height: auto; aspect-ratio: var(--ar); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease);
}
.gallery img.in { opacity: 1; filter: none; }
.work-about.after-media { padding-top: 160px; padding-bottom: 160px; }

/* Pinned sideways strip inside a gallery: JS sets the section height and moves the track. */
.g-scroll { position: relative; background: var(--bg); }
.g-scroll-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.g-scroll-track { display: flex; gap: 20px; padding: 0 var(--pad); will-change: transform; }
.g-scroll-item { flex: none; height: 76vh; aspect-ratio: var(--ar); overflow: hidden; }
.g-scroll.is-static .g-scroll-pin { position: static; height: auto; padding: 80px 0; overflow-x: auto; }

.other {
  position: relative;
  z-index: 3;
  background: var(--bg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 200px var(--pad) 200px;
}
.other .list { grid-column: 2; display: flex; flex-direction: column; gap: 4px; }
.other .list .head { margin-bottom: 16px; }
.other .list a { display: flex; justify-content: space-between; color: var(--grey); transition: color 0.2s var(--ease); }
.other .list a:hover { color: var(--fg); }

@media (max-width: 809px) {
  .hero { position: relative; height: auto; overflow: visible; }
  .hero-media { position: relative; width: 100% !important; height: 60vh; }
  .hero-info { position: static; padding: 20px var(--pad) 20px; display: flex; flex-direction: column; gap: 15px; }
  .hero-info h2, .hero-meta, .hero-foot { position: static; }
  .hero-meta, .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-foot .intro { max-width: none; }
  .hero-spacer { display: none; }
  .work-about { grid-template-columns: minmax(0, 1fr); gap: 80px; padding: 20px var(--pad) 100px; }
  .work-about .text, .work-about .credits { grid-column: auto; }
  .work-about.after-media { padding-top: 80px; padding-bottom: 80px; }
  .gallery .g-row { flex-direction: column; }
  .gallery .g-cell { flex: none; height: 50vh; }
  .gallery .g-cell.ratio { flex: none; height: auto; }
  .g-scroll-track { gap: 10px; }
  .g-scroll-item { height: auto; width: 78vw; }
  .other { grid-template-columns: minmax(0, 1fr); padding: 100px var(--pad) 160px; }
  .other .list { grid-column: auto; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 20px var(--pad) 0;
  align-items: start;
}
.about-nav {
  grid-column: span 2;
  position: sticky;
  top: calc(50vh - 50px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  color: var(--grey);
}
.about-nav a { transition: opacity 0.3s var(--ease); }
.about-nav a.dim { opacity: 0.4; }
.about-main { grid-column: span 2; display: flex; flex-direction: column; gap: 200px; padding: 400px 0 380px; }
.about-hero { padding-bottom: 100px; max-width: 621px; }
.about-block { display: flex; flex-direction: column; gap: 30px; }
.about-block .body { max-width: 552px; display: flex; flex-direction: column; gap: 20px; }
.member { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.member img { width: 100%; aspect-ratio: 340 / 326; object-fit: cover; }
.member .role { color: rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; gap: 20px; }
.contact { display: flex; flex-direction: column; gap: 100px; }
.contact .group { display: flex; flex-direction: column; gap: 30px; }
.contact .lead { max-width: 441px; }
.contact .email { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact .email a { padding-bottom: 4px; border-bottom: 1px solid currentColor; max-width: 100%; overflow-wrap: anywhere; }
.contact .email-gap { height: var(--lh); }
.contact .place { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 809px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-nav { display: none; }
  .about-main { grid-column: auto; gap: 120px; padding: 200px 0 160px; }
  .about-hero { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .appear, .gallery img, .hero-info h2 span, .about-hero h2 span, .carousel .slide .card { transition: none; }
}

/* ---------- Contact ---------- */
.contact-intro { display: flex; flex-direction: column; gap: 40px; padding: 220px var(--pad) 140px; }
.contact-intro h2 { max-width: 960px; }
.contact-intro h2 span { opacity: 0; transition: opacity 0.6s var(--ease); }
.contact-intro h2 span.in { opacity: 1; }
.contact-intro h2 .word { display: inline-block; white-space: nowrap; opacity: 1; }
.contact-intro h2 .word > span { display: inline-block; }
.contact-intro .lede { max-width: 420px; }
.contact-intro .lede, .contact-form-wrap { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.contact-intro .lede.in, .contact-form-wrap.in { opacity: 1; transform: none; }

.contact-form-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 var(--pad) 200px; }
.contact-form, .contact-done { grid-column: 1 / 3; display: flex; flex-direction: column; gap: 48px; }
.contact-done { gap: 20px; outline: none; }
.contact-alt { grid-column: 4; display: flex; flex-direction: column; gap: 40px; }
.contact-alt div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.contact-alt a, .contact-form .status a { padding-bottom: 2px; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }

.contact-form .field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 14px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%;
  padding: 6px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--grey);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-big);
  font-size: var(--xl);
  line-height: 1.2;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--fg); box-shadow: 0 1px 0 var(--fg); }
.contact-form input:-webkit-autofill { -webkit-text-fill-color: var(--fg); transition: background-color 600000s 0s; }
.contact-form .field.bad input, .contact-form .field.bad textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.contact-form .field.bad > span { color: var(--error); }

.contact-form .choices { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-form .choices label { position: relative; cursor: pointer; }
.contact-form .choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-form .choices span {
  display: block;
  padding: 6px 12px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-form .choices input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.contact-form .choices input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .turnstile:empty { display: none; }

.contact-form .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.contact-form .send {
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  transition: opacity 0.2s ease, transform 0.16s var(--ease-out);
}
.contact-form .send:active { transform: scale(0.97); }
.contact-form .send:disabled { opacity: 0.5; cursor: progress; }
.contact-form .status { max-width: 420px; }
@media (hover: hover) and (pointer: fine) {
  .contact-form .send:hover:not(:disabled) { opacity: 0.8; }
  .contact-form .choices label:hover span { border-color: var(--fg); }
}
@media (max-width: 809px) {
  .contact-intro { padding: 140px var(--pad) 80px; }
  .contact-form-wrap { grid-template-columns: minmax(0, 1fr); gap: 80px; padding-bottom: 120px; }
  .contact-form, .contact-done, .contact-alt { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-intro h2 span, .contact-intro .lede, .contact-form-wrap { transition: none; }
  .contact-form .send:active { transform: none; }
}

/* ---------- Archive (Savee-style wall) ---------- */
.archive { padding: 72px var(--pad) 300px; }
.wall { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 6px; align-items: start; }
.wall-col { display: flex; flex-direction: column; gap: 6px; will-change: transform; }
.wall-col.lag { margin-top: 120px; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.tile.in { opacity: 1; transform: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.tile-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.tile:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.04); }
  .tile:hover .tile-tag, .tile:focus-visible .tile-tag { opacity: 1; transform: none; }
}

html.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox.open { opacity: 1; }
.lb-figure { position: absolute; inset: 64px var(--pad) 72px; margin: 0; display: flex; align-items: center; justify-content: center; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: var(--pad); z-index: 2; }
.lb-prev, .lb-next { position: absolute; top: 64px; bottom: 72px; width: 35%; z-index: 1; }
.lb-prev { left: 0; cursor: w-resize; }
.lb-next { right: 0; cursor: e-resize; }
.lb-meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 20px; display: flex; justify-content: space-between; gap: 20px; }
.lb-project { padding-bottom: 2px; border-bottom: 1px solid currentColor; }
@media (hover: hover) and (pointer: fine) {
  .lb-close:hover, .lb-project:hover { opacity: 0.5; }
}

@media (max-width: 809px) {
  .archive { padding: 60px var(--pad) 200px; }
  .wall, .wall-col { gap: 4px; }
  .wall-col.lag { margin-top: 60px; }
  .tile-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile img, .tile-tag, .lightbox { transition: none; }
  .tile { opacity: 1; transform: none; }
}

/* ---------- Dot cursor (assets/cursor.js, mouse only) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot {
  position: fixed;
  top: -3px;
  left: -3px;
  z-index: 1000;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  will-change: transform;
}
.cursor-dot.is-visible { opacity: 1; }
