:root {
  --pink: #ff5cad;
  --pink-deep: #7b1547;
  --paper: #f2efe9;
  --black: #0b0b0b;
  --line: rgba(10, 10, 10, 0.22);
  --cursor-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%237b1547' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter' transform='translate(2 2)' opacity='.8'/%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%23ff5cad' stroke-width='4.5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") 6 34;
  --cursor-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%23ff5cad' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter' transform='translate(2 2)' opacity='.55'/%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") 6 34;
  --cursor-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%23ffffff' stroke-width='6' stroke-linecap='square' stroke-linejoin='miter' transform='translate(2 2)' opacity='.35'/%3E%3Cpath d='M6 34 33 7M17 7h16v16' fill='none' stroke='%230b0b0b' stroke-width='4.5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") 6 34;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--paper);
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--black);
  font-family: Inter, Arial, sans-serif;
}
main,
footer { width: 100%; }
body.menu-open,
body.lightbox-open,
body.is-transitioning { overflow: hidden; }
button,
a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; }

/* Selection is deliberately high contrast on every surface. */
::selection,
*::selection {
  background: var(--pink);
  color: var(--black);
  -webkit-text-fill-color: var(--black);
  text-shadow: none;
}
::-moz-selection,
*::-moz-selection {
  background: var(--pink);
  color: var(--black);
  text-shadow: none;
}
.manifesto::selection,
.manifesto *::selection,
.footer::selection,
.footer *::selection,
.menu-overlay::selection,
.menu-overlay *::selection,
.ticker::selection,
.ticker *::selection,
.project-footer::selection,
.project-footer *::selection {
  background: var(--black);
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.manifesto::-moz-selection,
.manifesto *::-moz-selection,
.footer::-moz-selection,
.footer *::-moz-selection,
.menu-overlay::-moz-selection,
.menu-overlay *::-moz-selection,
.ticker::-moz-selection,
.ticker *::-moz-selection,
.project-footer::-moz-selection,
.project-footer *::-moz-selection {
  background: var(--black);
  color: #fff;
}

/* Global link cursor. The CV overrides this according to its surface. */
@media (hover: hover) and (pointer: fine) {
  html:not(.has-arrow-cursor) a[href],
  html:not(.has-arrow-cursor) button { cursor: var(--cursor-pink), pointer; }

  /* The fixed header needs an explicit rule: mix-blend-mode can otherwise
     make browser cursor inheritance inconsistent across its children. */
  html:not(.has-arrow-cursor) .site-header .wordmark,
  html:not(.has-arrow-cursor) .site-header .language,
  html:not(.has-arrow-cursor) .site-header .menu-button,
  html:not(.has-arrow-cursor) .back-link { cursor: var(--cursor-pink), pointer !important; }

  html.has-arrow-cursor,
  html.has-arrow-cursor * { cursor: none !important; }
}

/* A comfortable hit area for every compact text control.
   Cards, CV rows and full-width menu items are already clickable as blocks. */
:is(
  .wordmark,
  .language,
  .menu-button,
  .menu-close,
  .hero-bottom a,
  .text-link,
  .footer-links a,
  .menu-foot a,
  .back-link,
  .project-footer a,
  .next-work,
  .gallery-mode-button,
  .lightbox-close
) {
  position: relative;
  touch-action: manipulation;
}
:is(
  .wordmark,
  .language,
  .menu-button,
  .menu-close,
  .hero-bottom a,
  .text-link,
  .footer-links a,
  .menu-foot a,
  .back-link,
  .project-footer a,
  .next-work,
  .gallery-mode-button,
  .lightbox-close
)::after {
  position: absolute;
  inset: -9px -7px -18px;
  content: "";
}

/* Persistent desktop arrow. It becomes larger on links without adding a plate. */
.site-arrow-cursor {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  margin-top: -34px;
  margin-left: -6px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.16s ease;
  will-change: transform;
}
.site-arrow-cursor svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 6px 34px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}
.site-arrow-cursor.is-visible { opacity: 1; }
.site-arrow-cursor.is-active svg {
  filter: drop-shadow(3px 4px 0 var(--pink-deep));
  transform: scale(1.25) translate(-1px, -1px);
}
.site-arrow-cursor.is-over-media { opacity: 0; }
.site-arrow-cursor .arrow-shadow,
.site-arrow-cursor .arrow-main { transition: stroke 0.16s ease; }
.site-arrow-cursor.is-on-pink .arrow-shadow { stroke: #fff; opacity: 0.58; }
.site-arrow-cursor.is-on-pink .arrow-main { stroke: var(--black); }
.site-arrow-cursor.is-on-pink.is-active .arrow-shadow { stroke: var(--pink-deep); opacity: 0.82; }
.site-arrow-cursor.is-on-pink.is-active .arrow-main { stroke: #fff; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  padding: 20px 24px;
  color: #fff;
  mix-blend-mode: difference;
}
.site-header a,
.site-header button { color: inherit; }
.wordmark {
  font-size: 20px;
  font-weight: 900;
  line-height: 0.86;
  text-decoration: none;
}
.header-meta {
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.header-actions { display: flex; gap: 22px; align-items: start; }
.language,
.menu-button,
.menu-close {
  padding: 0;
  border: 0;
  background: none;
  font: 500 12px "IBM Plex Mono", monospace;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 650px;
  height: 100svh;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05) 65%), linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 42%);
}
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.2) 100%);
  opacity: calc(0.2 + var(--hero-scroll, 0) * 0.35);
}
.hero-title {
  position: absolute;
  z-index: 2;
  bottom: 11vh;
  left: 3vw;
  margin: 0;
  font-size: clamp(58px, 10.8vw, 190px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.075em;
  will-change: transform;
}
.hero-title span { display: block; }
.hero-bottom {
  position: absolute;
  z-index: 2;
  right: 3vw;
  bottom: 28px;
  left: 3vw;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.hero-bottom a { color: #fff; text-decoration: none; }

.manifesto { padding: 8vw 4vw; background: var(--pink); }
.eyebrow { margin: 0 0 3vw; font-size: 11px; }
.manifesto-text {
  max-width: 1500px;
  margin: 0;
  font-size: clamp(32px, 5.3vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.manifesto-note { margin: 4vw 0 0; font-size: 11px; }

.works { padding: 7vw 3vw 9vw; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(48px, 8vw, 130px);
  line-height: 0.79;
  letter-spacing: -0.075em;
}
.section-head p { font-size: 11px; text-align: right; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.work-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --float-x: 0px;
  --float-y: 0px;
  display: block;
  grid-column: span 6;
  margin-bottom: 4vw;
  color: inherit;
  text-decoration: none;
  transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(var(--float-x), var(--float-y), 0);
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
  transition-delay: calc(var(--work-index, 0) * 40ms);
}
.work-card--wide { grid-column: span 7; }
.work-card--portrait { grid-column: span 5; }
.work-card--landscape { grid-column: span 6; }
.media-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ddd;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card--portrait .media-wrap { aspect-ratio: 4 / 5; }
.media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover .media-wrap { transform: translateZ(14px); box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12); }
.work-card:hover .media-wrap img,
.media-wrap.is-lens-active img { transform: scale(1.025); }
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  transform: translateZ(18px);
}
.work-meta span { font-size: 10px; }
.work-meta h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: right;
  transition: color 0.2s ease;
}
/* Pink appears only when the title itself is under the pointer. */
.work-meta h3:hover,
.work-card:focus-visible .work-meta h3 { color: var(--pink); }
.work-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 8px; }

/* VIEW is reserved for photographs. */
.cursor {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  display: grid;
  width: 132px;
  height: 132px;
  overflow: hidden;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 92, 173, 0.2);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%) scale(0);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: opacity 0.18s ease;
  will-change: transform;
  backdrop-filter: saturate(1.35) contrast(1.15);
}
.cursor::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
}
.cursor.visible { opacity: 1; }
.cursor span {
  position: relative;
  z-index: 2;
  font: 600 12px "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.xray-lens {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  background-repeat: no-repeat;
  filter: invert(0.82) hue-rotate(155deg) saturate(2.25) contrast(1.18);
  mix-blend-mode: screen;
  transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, top, background-position, transform;
}
.media-wrap.is-lens-active .xray-lens { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .media-wrap,
  .media-wrap * { cursor: none !important; }
}

.ticker { overflow: hidden; padding: 18px 0; background: var(--pink); }
.ticker-track {
  display: flex;
  width: max-content;
  gap: 50px;
  font-size: clamp(28px, 4vw, 70px);
  font-weight: 900;
  animation: ticker-move 25s linear infinite;
}
.ticker-track span::after { margin-left: 50px; content: "✦"; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

.current { padding: 7vw 3vw; background: var(--black); color: #fff; }
.section-head--dark { border-color: rgba(255, 255, 255, 0.3); }
.event {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1.6fr 1fr 30px;
  gap: 20px;
  overflow: hidden;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: inherit;
  text-decoration: none;
  transition: color 0.28s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.event::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--pink);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.event > * { position: relative; z-index: 1; }
.event-date,
.event-place { font-size: 11px; }
.event-title { font-size: clamp(22px, 3vw, 45px); letter-spacing: -0.04em; }
.event > span:last-child { display: inline-grid; place-items: center; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.event[href]:hover,
.event[href]:focus-visible { padding-left: 14px; color: var(--black); }
.event[href]:hover::before,
.event[href]:focus-visible::before { transform: scaleY(1); }
.event[href]:hover > span:last-child,
.event[href]:focus-visible > span:last-child { transform: translate(4px, -4px); }
.event:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.event.visible { transition-delay: calc(var(--event-index, 0) * 45ms); }

/* A drawn arrow avoids the blue ↗ emoji rendered by iOS. */
.inline-arrow {
  --arrow-color: var(--pink);
  --arrow-shadow: var(--pink-deep);
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-left: 0.22em;
  vertical-align: -0.16em;
  color: var(--arrow-color);
  filter: drop-shadow(2px 2px 0 var(--arrow-shadow));
  transition: color 0.2s ease, filter 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.inline-arrow::before,
.inline-arrow::after {
  position: absolute;
  display: block;
  content: "";
}
.inline-arrow::before {
  top: 4px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.inline-arrow::after {
  top: 10px;
  left: 2px;
  width: 22px;
  height: 3px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}
a:hover > .inline-arrow,
a:focus-visible > .inline-arrow { transform: translate(3px, -3px); }
.current .inline-arrow {
  --arrow-color: #fff;
  --arrow-shadow: var(--pink-deep);
}
.current .event[href]:hover .inline-arrow,
.current .event[href]:focus-visible .inline-arrow {
  --arrow-color: var(--black);
  --arrow-shadow: rgba(255, 255, 255, 0.55);
}
.footer .inline-arrow,
.menu-overlay .inline-arrow,
.project-footer .inline-arrow {
  --arrow-color: var(--black);
  --arrow-shadow: rgba(255, 255, 255, 0.62);
}
@media (hover: hover) and (pointer: fine) {
  .current .event[href] { cursor: var(--cursor-white), pointer; }
  .current .event[href]:hover,
  .current .event[href]:focus-visible { cursor: var(--cursor-black), pointer; }
}

.about { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 760px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { padding: 7vw 5vw; }
.about-copy h2 { font-size: clamp(31px, 4.2vw, 70px); line-height: 0.94; letter-spacing: -0.055em; }
.about-copy > p:not(.eyebrow) { max-width: 720px; font-size: 18px; line-height: 1.45; }
.text-link { display: inline-block; margin-top: 32px; font-size: 12px; text-decoration: none; }

.footer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 4vw 3vw max(24px, env(safe-area-inset-bottom));
  background: var(--pink);
}
.footer-links { display: flex; justify-content: space-between; font-size: 12px; }
.footer-links a,
.menu-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 0;
  text-decoration: none;
}
.footer-bottom { margin-top: 7vw; font-size: 10px; }

.menu-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 3vw;
  background: var(--pink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-102%);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.25s ease, visibility 0s linear 0.7s;
  visibility: hidden;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; visibility: visible; }
.menu-top,
.menu-foot { display: flex; justify-content: space-between; font-size: 11px; }
.menu-top,
.menu-foot { opacity: 0; transform: translateY(-12px); transition: opacity 0.35s ease 0.32s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.32s; }
.menu-foot { transform: translateY(12px); }
.menu-overlay.is-open .menu-top,
.menu-overlay.is-open .menu-foot { opacity: 1; transform: none; }
.overlay-nav { display: flex; flex-direction: column; margin: auto 0; }
.overlay-nav a {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: 0.055em 0.035em;
  color: var(--black);
  font-size: clamp(55px, 10vw, 160px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease, padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-overlay.is-open .overlay-nav a { opacity: 1; transform: none; }
.menu-overlay.is-open .overlay-nav a:nth-child(1) { transition-delay: 0.12s; }
.menu-overlay.is-open .overlay-nav a:nth-child(2) { transition-delay: 0.18s; }
.menu-overlay.is-open .overlay-nav a:nth-child(3) { transition-delay: 0.24s; }
.menu-overlay.is-open .overlay-nav a:nth-child(4) { transition-delay: 0.3s; }
.overlay-nav a::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--black);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}
.overlay-nav a:hover,
.overlay-nav a:focus-visible { padding-left: 0.12em; color: #fff; }
.overlay-nav a:hover::before,
.overlay-nav a:focus-visible::before { transform: scaleY(1); }
.menu-foot a { color: var(--black); }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.75s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* Work pages */
.project-hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  padding: 0;
  background: #0a0a0a;
  color: #fff;
}
.project-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48)); }
.project-hero-content { position: absolute; z-index: 2; inset: 0; }
.project-kicker,
.project-meta { font-size: 11px; }
.project-kicker { position: absolute; top: 18vh; left: 2.5vw; }
.project-title { position: absolute; right: 2.5vw; bottom: 4vh; left: 2.5vw; max-width: none; margin: 0; color: var(--pink); font-size: clamp(56px, 11vw, 190px); font-weight: 900; line-height: 0.76; letter-spacing: -0.075em; }
.project-details { padding: 6vw 3vw; background: var(--black); color: #fff; }
.project-info { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.project-info p { margin: 0; font-size: clamp(18px, 2.2vw, 32px); line-height: 1.22; }
.project-meta { display: grid; gap: 8px; }
.back-link { position: fixed; z-index: 52; top: 90px; left: 24px; color: #fff; font: 11px "IBM Plex Mono", monospace; text-decoration: none; mix-blend-mode: difference; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding: 3vw; background: var(--paper); }
.gallery figure { grid-column: span 7; margin: 0; }
.gallery figure:nth-of-type(3n + 2) { grid-column: 6 / span 7; }
.gallery figure:nth-of-type(4n) { grid-column: span 5; }
.gallery figure img { display: block; width: 100%; height: auto; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease; }
.gallery figure:hover img { transform: scale(0.992); filter: saturate(1.05); }
.gallery figure img:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
.gallery figcaption { padding-top: 8px; font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }
.project-footer { padding: 6vw 3vw; background: var(--pink); }
.project-footer a {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.gallery-toolbar { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.gallery-toolbar-label { font-size: 10px; }
.gallery-mode-switch { display: flex; gap: 4px; align-items: center; }
.gallery-mode-button {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 10px "IBM Plex Mono", monospace;
  text-transform: uppercase;
}
.gallery-mode-button::before { position: absolute; z-index: -1; inset: 0; background: var(--pink); content: ""; transform: scaleY(0); transform-origin: bottom; transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-mode-button:hover::before,
.gallery-mode-button.is-active::before { transform: scaleY(1); }
.gallery-mode-separator { opacity: 0.35; }
.gallery.is-grid { align-items: start; }
.gallery.is-grid figure,
.gallery.is-grid figure:nth-of-type(3n + 2),
.gallery.is-grid figure:nth-of-type(4n) { grid-column: span 4; margin-bottom: 18px; }
.gallery.is-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.is-grid figcaption { min-height: 30px; }
.gallery.is-grid .gallery-toolbar { position: sticky; z-index: 5; top: 0; padding-top: 14px; background: var(--paper); }

/* Fullscreen image view */
.lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; padding: 54px 78px; background: rgba(5, 5, 5, 0.97); color: #fff; opacity: 0; pointer-events: none; place-items: center; transition: opacity 0.35s ease, visibility 0s linear 0.35s; visibility: hidden; }
.lightbox.is-open { opacity: 1; pointer-events: auto; transition-delay: 0s; visibility: visible; }
.lightbox-stage { position: relative; display: grid; width: 100%; height: 100%; place-items: center; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 132px); width: auto; height: auto; opacity: 0; object-fit: contain; transform: scale(0.965); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.lightbox-image[src] { opacity: 1; transform: none; }
.lightbox-caption { position: absolute; bottom: -30px; left: 0; max-width: 70%; color: rgba(255, 255, 255, 0.72); font-size: 10px; }
.lightbox-ui { position: absolute; top: 20px; right: 24px; left: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.lightbox-close,
.lightbox-nav { border: 0; background: transparent; color: #fff; }
.lightbox-close { padding: 8px 0; font: inherit; }
.lightbox-nav { position: absolute; top: 50%; width: 50px; height: 70px; font: 500 32px / 1 "IBM Plex Mono", monospace; transform: translateY(-50%); transition: color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.lightbox-nav:hover { color: var(--pink); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover { transform: translate(-5px, -50%); }
.lightbox-next:hover { transform: translate(5px, -50%); }

/* A single x-ray-and-type transition for work-card navigation. */
.project-transition { position: fixed; z-index: 3000; inset: 0; overflow: hidden; background: var(--black); opacity: 0; pointer-events: none; transition: opacity 0.15s linear; }
.project-transition.is-active { opacity: 1; }
.project-transition-image { position: fixed; display: block; margin: 0; object-fit: cover; filter: invert(0.82) hue-rotate(155deg) saturate(2.25) contrast(1.18); transform-origin: center; transition: left 0.62s cubic-bezier(0.76, 0, 0.24, 1), top 0.62s cubic-bezier(0.76, 0, 0.24, 1), width 0.62s cubic-bezier(0.76, 0, 0.24, 1), height 0.62s cubic-bezier(0.76, 0, 0.24, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1); will-change: left, top, width, height, transform; }
.project-transition.is-expanded .project-transition-image { top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; transform: scale(1.025); }
.project-transition-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48)); opacity: 0; transition: opacity 0.34s ease 0.22s; }
.project-transition.is-expanded .project-transition-shade { opacity: 1; }
.project-transition-title { position: fixed; z-index: 2; margin: 0; color: var(--pink); font-weight: 900; overflow-wrap: anywhere; text-transform: uppercase; transform-origin: left top; transition: left 0.62s cubic-bezier(0.76, 0, 0.24, 1), top 0.62s cubic-bezier(0.76, 0, 0.24, 1), width 0.62s cubic-bezier(0.76, 0, 0.24, 1), font-size 0.62s cubic-bezier(0.76, 0, 0.24, 1), line-height 0.62s cubic-bezier(0.76, 0, 0.24, 1), letter-spacing 0.62s cubic-bezier(0.76, 0, 0.24, 1), color 0.25s ease; will-change: left, top, width, font-size; }

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  }
  .header-meta { display: none; }
  .header-actions { gap: 18px; }
  .hero {
    min-height: 620px;
    height: 100svh;
  }
  .hero-title {
    right: 16px;
    bottom: 16vh;
    left: 16px;
    max-width: calc(100vw - 32px);
    font-size: 14.25vw;
    line-height: 0.82;
    letter-spacing: -0.07em;
    overflow-wrap: normal;
  }
  html[lang="en"] .hero-title {
    font-size: 13.15vw;
    letter-spacing: -0.075em;
  }
  .hero-bottom { right: 16px; bottom: 18px; left: 16px; }
  .hero-bottom span { display: none; }
  .manifesto { padding: 90px 16px; }
  .manifesto-text { font-size: 42px; }
  .works,
  .current { padding: 80px 16px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 56px; }
  .work-grid { display: block; }
  .work-card { margin-bottom: 60px; transform: none !important; }
  .work-card--portrait .media-wrap,
  .media-wrap { aspect-ratio: 4 / 3; }
  .work-card:hover .media-wrap { box-shadow: none; transform: none; }
  .work-meta { display: block; }
  .work-meta h3 {
    margin-top: 9px;
    font-size: clamp(30px, 9vw, 38px);
    overflow-wrap: anywhere;
    text-align: left;
  }
  .cursor,
  .xray-lens { display: none; }
  .event {
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    gap: 12px;
    min-width: 0;
    padding: 24px 0;
  }
  .event-title {
    min-width: 0;
    font-size: clamp(22px, 7.4vw, 32px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .event > span:last-child { justify-self: end; }
  .event-place { display: none; }
  .event[href]:hover { padding-left: 0; }
  .event::before { display: none; }
  .about { display: block; }
  .about-image { height: 75vh; }
  .about-copy { padding: 75px 16px; }
  .footer {
    min-height: 0;
    padding: 55px 16px max(24px, env(safe-area-inset-bottom));
  }
  .footer-links { display: grid; gap: 14px; }
  .footer-links a { max-width: 100%; overflow-wrap: anywhere; }
  .menu-overlay {
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }
  .overlay-nav a {
    font-size: clamp(48px, 15vw, 68px);
    line-height: 0.86;
    overflow-wrap: anywhere;
  }
  .overlay-nav a:hover,
  .overlay-nav a:focus-visible { padding-left: 0.035em; }
  .overlay-nav a::before { display: none; }
  .project-hero {
    min-height: 620px;
    height: 100svh;
    margin: 0;
  }
  .project-kicker { top: 18vh; left: 16px; }
  .project-title {
    right: 16px;
    bottom: 5vh;
    left: 16px;
    font-size: clamp(46px, 14vw, 72px);
    line-height: 0.8;
    overflow-wrap: anywhere;
  }
  .project-details { padding: 64px 16px; }
  .project-info { grid-template-columns: 1fr; }
  .back-link { top: 75px; left: 16px; }
  .gallery { display: block; padding: 16px; }
  .gallery figure { margin-bottom: 42px; }
  .gallery-toolbar { margin-bottom: 14px; padding: 4px 0 14px; }
  .gallery.is-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery.is-grid .gallery-toolbar { grid-column: 1 / -1; }
  .gallery.is-grid figure,
  .gallery.is-grid figure:nth-of-type(3n + 2),
  .gallery.is-grid figure:nth-of-type(4n) { grid-column: span 1; margin-bottom: 10px; }
  .gallery.is-grid figure img { aspect-ratio: 1 / 1; }
  .gallery.is-grid figcaption { min-height: 0; font-size: 8px; }
  .project-footer {
    padding: 56px 16px max(56px, env(safe-area-inset-bottom));
  }
  .project-footer a {
    font-size: clamp(40px, 11.5vw, 62px);
    line-height: 0.92;
  }
  .inline-arrow {
    width: 21px;
    height: 21px;
    margin-left: 0.18em;
  }
  .lightbox { padding: 58px 16px 64px; }
  .lightbox-image { max-height: calc(100vh - 130px); }
  .lightbox-caption { bottom: -34px; max-width: 82%; }
  .lightbox-nav { top: auto; bottom: 8px; width: 60px; height: 44px; transform: none; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev:hover,
  .lightbox-next:hover { transform: none; }
  .project-transition-title {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor,
  .project-transition { display: none !important; }
}
