/* =========================================================
   Enrica Falcidia — style
   ========================================================= */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff") format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-italic.woff") format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
:root {
  color-scheme: dark;
  --black: #000;
  --paper: #ecebe8;
  --grey: #8d8d8a;
  --line: rgba(236, 235, 232, .16);
  --glow: 0 0 22px rgba(255, 255, 255, .28);
  --gutter: clamp(16px, 3vw, 40px);
  --header: 64px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--paper); color: var(--black); }

/* ---------- cursor: set in content.js (SITE.cursor), files in img/cursors/<name>/ ---------- */
html, body { cursor: var(--cur), auto; }
.sparkle-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 300; pointer-events: none; }
a, button, .cam-screen, .work-row, .jr-item, .masonry button, .print, .ed-item, .crt { cursor: var(--cur), pointer; }

/* ---------- type ---------- */
.display {
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
  text-shadow: var(--glow);
}
.kind {
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  opacity: .8;
}
.prose p { margin: 0 0 1.1em; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }

/* slim black scrollbar with a silver (DVD-like) thumb instead of the grey browser default */
html { scrollbar-width: thin; scrollbar-color: #8d8e92 #000; }
::-webkit-scrollbar { width: 7px; height: 7px; background: #000; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { border-radius: 7px; border: 1px solid #000;
  background: linear-gradient(180deg, #f4f4f6, #a9abb1 35%, #e6e1f0 55%, #9a9ca2 80%, #d9dadd); }
::-webkit-scrollbar-thumb:hover { background: #eceef2; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
::-webkit-scrollbar-corner { background: #000; }

/* never allow sideways scrolling on any device (clip keeps sticky elements working) */
html, body { overflow-x: clip; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  color: #fff;
  transition: background-color .25s;
}
/* once you scroll, the header gets a solid black bar so the name never sits on top of the content */
body.scrolled .site-header { background: #000; mix-blend-mode: normal; box-shadow: 0 10px 18px -6px #000; }
.wordmark {
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: 15px;
  letter-spacing: .01em;
  text-shadow: var(--glow);
}
.nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a {
  font-size: 17px;
  text-shadow: var(--glow);
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; font-size: 17px; text-shadow: var(--glow); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(34px, 11vw, 64px); }
.mobile-menu .close { position: absolute; top: 20px; right: var(--gutter); font-size: 17px; }
.mobile-menu .contacts { margin-top: 40px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- home: flash hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 520px;
  overflow: hidden;
}
.flash-stage { position: absolute; inset: 0; }
.flash-stage img {
  position: absolute;
  left: 50%; top: 46%;
  height: 68%; width: auto; max-width: 86%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.flash-stage img.on { animation: flash 2.1s var(--ease) forwards; }
@keyframes flash {
  0%   { opacity: 0; filter: brightness(4) contrast(.6) saturate(0); }
  6%   { opacity: 1; filter: brightness(3) contrast(.7) saturate(.2); }
  22%  { opacity: 1; filter: brightness(1) contrast(1) saturate(1); }
  70%  { opacity: 1; filter: brightness(.9); }
  100% { opacity: 0; filter: brightness(.2); }
}
.hero-name {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 84px);
  font-size: clamp(50px, min(13.2vw, 23vh), 250px);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  font-size: 15px;
}
.hero-foot p { margin: 0; max-width: 34ch; }
.contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.contacts a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-shadow: var(--glow); }
.contacts a:hover { text-decoration-thickness: 2px; }

@media (max-width: 760px) {
  .flash-stage img { top: 40%; height: 56%; }
  .hero-name { bottom: 150px; font-size: 14.6vw; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- home "torch": full-bleed photo in the dark, the pointer is a light ---------- */
.hero-torch { --mx: 50vw; --my: 45vh; }
.flash-stage.full img {
  left: 50%; top: 50%; width: auto; height: auto; max-width: 88vw; max-height: 94vh;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s var(--ease);
  /* edges melt into the black page */
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
          mask-composite: intersect;
}
.flash-stage.full img.on { opacity: 1; animation: none; }
.torch-dark {
  position: absolute; inset: 0; pointer-events: none; background: #000; opacity: .93;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 150px, rgba(0,0,0,.6) 260px, #000 380px);
          mask: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 150px, rgba(0,0,0,.6) 260px, #000 380px);
}
.hero-torch.lit .torch-dark { animation: litfade 2.4s ease-out; }
@keyframes litfade { 0%, 15% { opacity: 0; } 100% { opacity: .93; } }
.hero-torch.still .torch-dark { opacity: .55; -webkit-mask: none; mask: none; }
.flash-burst { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash-burst.go { animation: burst .45s ease-out; }
@keyframes burst { 0% { opacity: .7; } 100% { opacity: 0; } }
.hero-torch .hero-index {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header) + 18px);
  display: grid; gap: 4px; font-size: 15px; mix-blend-mode: difference; color: #fff;
}
.hero-torch .hero-index a { opacity: .75; transition: opacity .2s; }
.hero-torch .hero-index a:hover { opacity: 1; }
.hero-cap { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header) + 18px); margin: 0;
  font-style: italic; font-weight: 300; font-size: 15px; mix-blend-mode: difference; color: #fff; }
.hero-torch .hero-name, .hero-torch .hero-foot { z-index: 3; }
.hero-torch .hero-foot { mix-blend-mode: difference; color: #fff; }
@media (max-width: 760px) { .hero-torch .hero-index { display: none; } .hero-cap { top: calc(var(--header) + 4px); } }

/* ---------- work index ---------- */
.work { position: relative; padding: calc(var(--header) + clamp(50px, 12vh, 130px)) var(--gutter) clamp(60px, 10vh, 120px); }
.work-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
.work-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.work-bg img.on { opacity: .42; animation: bgflash .5s var(--ease); }
@keyframes bgflash { from { filter: brightness(3) saturate(0); } to { filter: brightness(1) saturate(1); } }

.work-title { font-size: clamp(48px, 11vw, 200px); margin-bottom: clamp(30px, 6vh, 70px); }
body.is-home { overflow: hidden; height: 100vh; height: 100svh; }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-list li { border-bottom: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 32px;
  padding: 22px 0 18px;
  transition: opacity .35s var(--ease);
}
.work-row .display { font-size: clamp(32px, 5.4vw, 96px); }
.work-row .kind { padding-bottom: .5em; white-space: nowrap; }
.work-row .thumb { display: none; }
.work-list:hover .work-row { opacity: .28; }
.work-list .work-row:hover, .work-list .work-row:focus-visible { opacity: 1; }
.soon { font-style: italic; font-weight: 300; color: var(--grey); }

@media (max-width: 760px) {
  .work-row { grid-template-columns: 1fr; padding: 18px 0 22px; }
  .work-row .thumb {
    display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%;
    margin-bottom: 14px;
  }
  .work-row .kind { white-space: normal; padding: 0; }
  .work-list:hover .work-row { opacity: 1; }
  .work-bg { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; gap: 28px;
}

.site-footer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.footer-mail { font-size: 15px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; width: fit-content; }
.site-footer small { color: var(--grey); font-size: 13px; }

/* ---------- project page ---------- */
.project-head { padding: calc(var(--header) + clamp(60px, 14vh, 150px)) var(--gutter) clamp(50px, 9vh, 100px); }
.project-head .kind { display: block; font-size: clamp(17px, 1.6vw, 22px); margin-bottom: 18px; }
.project-head .display { font-size: clamp(44px, 9vw, 168px); max-width: 12ch; }

.block { padding: 0 var(--gutter); margin-bottom: clamp(70px, 14vh, 170px); }
.block-pair { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.block-pair figure { margin: 0; grid-column: 2 / span 5; }
.block-pair .prose { grid-column: 8 / span 4; position: sticky; top: calc(var(--header) + 24px); }
.block-pair.left figure { grid-column: 7 / span 5; grid-row: 1; }
.block-pair.left .prose { grid-column: 2 / span 4; grid-row: 1; }
.block-full { padding: 0; }
.block-full img { width: 100%; }
.block-columns { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.block-columns .prose:nth-child(1) { grid-column: 2 / span 4; }
.block-columns .prose:nth-child(2) { grid-column: 7 / span 4; }
.block-text .prose { max-width: 60ch; margin-left: calc(100% / 12); font-size: clamp(17px, 1.5vw, 21px); }

/* horizontal strip (mockups) */
.block-strip { padding: 0; }
.strip-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter); margin-bottom: 18px; }
.strip-nav { display: flex; gap: 18px; }
.strip-nav button { font-size: 22px; line-height: 1; padding: 6px; opacity: .7; }
.strip-nav button:hover { opacity: 1; }
.strip {
  display: flex; gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  flex: 0 0 auto;
  height: min(72vh, 52vw); width: auto;
  scroll-snap-align: center;
}

/* photographic sequence: frames light up as you reach them */
.block-sequence { display: grid; gap: clamp(40px, 8vh, 100px); }
.frame { margin: 0 auto; width: min(100%, 1180px); position: relative; }
.frame figcaption {
  position: absolute; left: calc(-1 * var(--gutter) + 4px); top: 0;
  transform: translateX(-100%);
  font-size: 13px; color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.frame img { transition: filter 1.1s var(--ease), opacity 1.1s var(--ease); }
.js .frame img { filter: brightness(.18) grayscale(.6); }
.js .frame.lit img { filter: none; }
@media (max-width: 1300px) { .frame figcaption { position: static; transform: none; margin-top: 8px; } }


.placeholder {
  border: 1px dashed var(--line);
  color: var(--grey);
  font-style: italic; font-weight: 300;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  padding: 20px; text-align: center;
}

@media (max-width: 860px) {
  .block-pair, .block-columns { grid-template-columns: 1fr; }
  .block-pair figure, .block-pair.left figure,
  .block-pair .prose, .block-pair.left .prose,
  .block-columns .prose:nth-child(1), .block-columns .prose:nth-child(2) { grid-column: 1; grid-row: auto; position: static; }
  .block-text .prose { margin-left: 0; }
  .strip img { height: 58vw; }
}



/* ---------- camera modes (also baked into the prints) ---------- */
.fx-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
[data-fx] img { transition: filter .3s; }
[data-fx="night"] img { filter: grayscale(1) brightness(1.35) contrast(1.35) sepia(1) hue-rotate(58deg) saturate(4.5); }
[data-fx="night"] .fx-overlay { background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75) 100%), repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
[data-fx="xerox"] img { filter: grayscale(1) contrast(2.8) brightness(1.08); }
[data-fx="xerox"] .fx-overlay {
  mix-blend-mode: multiply; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-fx="thermal"] img { filter: url(#fx-thermal) contrast(1.1); }
[data-fx="vhs"] img { filter: url(#fx-vhs) saturate(1.4) contrast(1.1) blur(.4px); }
[data-fx="vhs"] .fx-overlay { background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 82%, rgba(255,255,255,.18) 84%, transparent 87%); }
[data-fx="solar"] img { filter: url(#fx-solar) saturate(1.6) contrast(1.15); }
[data-fx="dvd"] img { filter: grayscale(1) contrast(1.25) brightness(1.1); }
[data-fx="dvd"] .fx-overlay { background: url("../img/dvd.webp") 40% 50% / 260% auto; mix-blend-mode: overlay; opacity: .95; }
.cam-mode {
  position: absolute; left: 8px; bottom: 7px; z-index: 2;
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  font-variation-settings: "wdth" 80;
  text-shadow: 0 0 3px #000, 0 0 1px #000;
}
.cam-screen[data-disp="clean"] .cam-mode { opacity: 0; }
.cam-screen img { z-index: 0; }

/* prints you shoot land here and can be dragged around */
.prints { position: relative; height: 230px; margin-top: 28px; }
.print {
  position: absolute; width: 46%; max-width: 230px;
  padding: 8px 8px 30px;
  background: #c9cacd url("../img/dvd.webp") var(--px, 30%) 50% / 260% auto;   /* DVD silver, like the camera */
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.6);
  transform: rotate(var(--r));
  touch-action: none; user-select: none;
  animation: printout .55s var(--ease);
}
.print.held { box-shadow: 0 24px 50px rgba(0,0,0,.7); }
.print::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.55), transparent 40%); mix-blend-mode: soft-light; }
.print-img { box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.print-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.print-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes printout { from { opacity: 0; transform: translateY(-40px) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }
@media (max-width: 860px) { .prints { height: 190px; } }

/* ---------- DVD silver: page titles, project titles, quotes ---------- */
.dvd {
  background: #c9cacd url("../img/dvd.webp") 0% 50% / 170% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ---------- project page ---------- */
.p-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; margin-bottom: clamp(60px, 12vh, 140px); }
.p-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.92) 100%); }
.p-hero-text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px); }
.p-hero-text .kind { display: block; margin-bottom: 14px; font-size: clamp(16px, 1.5vw, 21px); }
.p-hero-text .display { font-size: clamp(46px, 9.5vw, 180px); max-width: 13ch; }
.p-intro p {
  margin: 0 0 0 calc(100% / 12);
  max-width: 30ch;
  font-size: clamp(26px, 3.3vw, 52px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.block-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.block-split figure { margin: 0; grid-column: 1 / span 7; }
.block-split .prose { grid-column: 9 / span 4; }
.block-split.left figure { grid-column: 6 / span 7; grid-row: 1; }
.block-split.left .prose { grid-column: 1 / span 4; grid-row: 1; padding-left: calc(100% / 12); }
.block-quote .display { font-size: clamp(34px, 6.4vw, 112px); max-width: 15ch; margin-left: calc(100% / 12); line-height: .92; text-wrap: balance; }
@media (max-width: 860px) {
  .p-intro p { margin-left: 0; }
  .block-split { grid-template-columns: 1fr; }
  .block-split figure, .block-split.left figure, .block-split .prose, .block-split.left .prose { grid-column: 1; grid-row: auto; padding-left: 0; }
  .block-quote .display { margin-left: 0; }
}
.next-project { position: relative; display: block; height: 70vh; min-height: 380px; overflow: hidden; padding: 0; border-top: 0; }
.next-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.next-project:hover .next-img { transform: scale(1.04); filter: brightness(.6) saturate(1); }
.next-text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 60px); }
.next-text .kind { display: block; margin-bottom: 10px; }
.next-text .display { font-size: clamp(38px, 7.5vw, 130px); max-width: 14ch; }

/* ---------- visuals ---------- */
.page-head { padding: calc(var(--header) + clamp(50px, 12vh, 130px)) var(--gutter) clamp(40px, 7vh, 80px); }
.page-head .display { font-size: clamp(48px, 11vw, 200px); }
.visuals-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(60px, 12vh, 140px) var(--gutter);
  padding: 0 var(--gutter) clamp(60px, 12vh, 140px);
  align-items: start;
}
.visual { margin: 0; min-width: 0; }
.visual figcaption { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.visual figcaption strong { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .01em; }
.v-wide { grid-column: 1 / span 8; }
.v-tall { grid-column: 9 / span 4; }
.v-tall-l { grid-column: 1 / span 4; }
.v-wide-r { grid-column: 5 / span 8; }
.v-tall-left { grid-column: 2 / span 4; }
.v-wide-right { grid-column: 6 / span 7; margin-top: 30vh; }
.v-center { grid-column: 3 / span 8; }
.v-strip { grid-column: 1 / -1; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.v-strip .strip-head { align-items: baseline; }
.v-strip .strip-head figcaption { margin: 0; justify-content: flex-start; }
.v-strip .strip img { height: min(62vh, 44vw); }
@media (max-width: 760px) {
  /* phone: same offset, magazine-like rhythm as on the computer instead of one plain column */
  .visuals-grid { grid-template-columns: repeat(12, 1fr); gap: 44px 0; }
  .visual[class*="v-"] { margin-top: 0; }
  .v-tall-l, .v-tall-left { grid-column: 1 / span 8; }
  .v-wide-r, .v-wide-right { grid-column: 3 / span 10; }
  .v-center { grid-column: 1 / -1; }
  .v-wide { grid-column: 1 / span 11; } .v-tall { grid-column: 4 / span 9; }
  .visual figcaption { margin-top: 8px; }
  .visual figcaption strong { font-size: 14px; }
  .visual figcaption .kind { font-size: 12px; }
  .v-strip .strip img { height: 56vw; }
}

/* ---------- photo & video ---------- */
.photo-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: var(--gutter);
  padding: calc(var(--header) + 40px) var(--gutter) clamp(60px, 12vh, 140px);
  align-items: start;
}
.photo-menu { position: sticky; top: calc(var(--header) + 40px); }
.photo-menu .display { font-size: clamp(30px, 3vw, 46px); margin-bottom: 36px; }
.photo-menu ul { list-style: none; margin: 0; padding: 0; }
.photo-menu a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  font-size: 21px;
  border-bottom: 1px solid var(--line);
  opacity: .45;
  transition: opacity .25s var(--ease), padding .35s var(--ease);
}
.photo-menu a span { font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.photo-menu a:hover { opacity: .85; }
.photo-menu a[aria-current="true"] { opacity: 1; padding-left: 14px; text-shadow: var(--glow); }
.photo-section[hidden] { display: none; }
.photo-section .note { margin: 0 0 26px; color: var(--grey); font-style: italic; font-weight: 300; }
.masonry { columns: 3 260px; column-gap: 14px; }
.masonry button { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; }
.masonry img { width: 100%; transition: filter .35s var(--ease); }
.masonry button:hover img { filter: brightness(1.25) contrast(1.05); }
.empty { border: 1px dashed var(--line); padding: 60px 24px; color: var(--grey); font-style: italic; font-weight: 300; }

@media (max-width: 760px) {
  .photo-layout { grid-template-columns: 1fr; padding-top: calc(var(--header) + 10px); }
  .photo-menu {
    top: 0; z-index: 40;
    margin: 0 calc(-1 * var(--gutter));
    padding: calc(var(--header) - 6px) var(--gutter) 10px;
    background: linear-gradient(var(--black) 85%, transparent);
  }
  .photo-menu .display { display: none; }
  .photo-menu ul { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .photo-menu ul::-webkit-scrollbar { display: none; }
  .photo-menu a { border: 0; white-space: nowrap; font-size: 18px; padding: 6px 0; }
  .photo-menu a[aria-current="true"] { padding-left: 0; text-decoration: underline; text-underline-offset: 6px; }
  .photo-menu a span { display: none; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry button { margin-bottom: 8px; }
}


/* ---------- nightlife: colour-sorted justified gallery ---------- */
.photo-main { min-width: 0; }
.palette-bar {
  position: sticky; top: calc(var(--header) + 6px); z-index: 30;
  display: flex; height: 14px; margin: 0 0 40px;
  box-shadow: 0 0 0 6px var(--black), 0 10px 30px rgba(0,0,0,.8);
}
.palette-bar button { flex: 1 1 0; height: 100%; padding: 0; transition: transform .25s var(--ease), box-shadow .25s; }
.palette-bar button:hover { transform: scaleY(1.9); }
.palette-bar button.here { transform: scaleY(2.4); box-shadow: 0 0 0 1px #fff, 0 0 14px var(--paper); position: relative; z-index: 1; }
.chapter { position: relative; margin-bottom: clamp(50px, 10vh, 110px); isolation: isolate; }
.chapter::before {
  content: ""; position: absolute; inset: -60px -24px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 50% 35%, color-mix(in srgb, var(--c) 24%, transparent), transparent 72%);
}
.chapter-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .01em;
  text-shadow: var(--glow);
}
.chapter-title .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px 3px var(--c); }
.chapter-title small { font-size: 13px; font-weight: 400; font-variation-settings: "wdth" 100; color: var(--grey); text-shadow: none; }
.jr { display: flex; flex-wrap: wrap; gap: 10px; }
.jr-item { position: relative; overflow: hidden; flex: none; background: var(--c); }
.jr-item img { width: 100%; height: 100%; object-fit: cover; }
.jr-item:hover img, .jr-item.pulse img { animation: hflash .6s var(--ease); }
.jr-item::after { /* thin colour line, the photo's own light */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.jr-item:hover::after { transform: scaleX(1); }
@keyframes hflash { 0% { filter: brightness(2.6) saturate(.3); } 100% { filter: none; } }
@media (max-width: 760px) {
  .jr { gap: 6px; }
  .palette-bar { top: calc(var(--header) + 44px); height: 10px; margin-bottom: 28px; }
  .chapter::before { inset: -40px -16px; }
}


/* ---------- editorial photo composition (around the world): big rows, nothing cropped ---------- */
.editorial { display: grid; gap: 12px; margin-bottom: 12px; }
.ed-row { display: flex; gap: 12px; }
.ed-item { position: relative; overflow: hidden; display: block; flex: none; }
.ed-item img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease); }
.ed-item:hover img { transform: scale(1.02); }
.ed-rest { gap: 12px; }
@media (max-width: 760px) { .editorial, .ed-row, .ed-rest { gap: 6px; } .editorial { margin-bottom: 6px; } }

/* ---------- collage (around the world): sized by script, nothing cropped ---------- */
.collage { display: grid; gap: 14px; }
.collage > .c-row:nth-child(even) + .c-row { margin-top: 0; }
.c-row, .c-mosaic { display: flex; gap: 14px; }
.c-row.narrow { justify-content: center; }
.country-tabs { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0 0 26px; position: sticky; top: calc(var(--header) + 4px); z-index: 20; padding: 8px 0; background: var(--black); box-shadow: 0 -90px 0 var(--black), 0 14px 18px -6px var(--black); }
.country-tabs button { font-size: clamp(17px, 1.6vw, 22px); color: var(--grey); display: flex; gap: 6px; align-items: baseline; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .2s; }
.country-tabs button span { font-size: 12px; font-variant-numeric: tabular-nums; }
.country-tabs button:hover { color: var(--paper); }
.country-tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--paper); text-shadow: var(--glow); }
.sec-head { margin: 0 0 clamp(40px, 8vh, 90px); }

.collage.gallery { gap: 18px; }
.collage.country + .collage.country { margin-top: clamp(70px, 14vh, 160px); }
.c-place em { font-style: italic; color: var(--paper); }
.collage.gallery .c-row { gap: 18px; }
.collage.gallery > .c-row:has(> :only-child) { margin-block: clamp(20px, 5vh, 56px); }
@media (max-width: 760px) { .collage.gallery, .collage.gallery .c-row { gap: 8px; } .country-tabs { top: calc(var(--header) + 38px); } }
.c-place { margin: -4px 0 clamp(50px, 9vh, 110px); text-align: right; font-style: italic; font-weight: 300; font-size: 14px; color: var(--grey); letter-spacing: .02em; }
.c-place::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; opacity: .6; }
.collage > .c-place:last-child { margin-bottom: 0; }
.c-bento { display: flex; gap: 14px; align-items: flex-start; }
.c-col { display: flex; flex-direction: column; gap: 14px; flex: none; }
.c-bento.narrow { flex-direction: column; }
.c-bento.narrow .c-col { flex-direction: row; }
.c-mosaic.right { flex-direction: row-reverse; }
.c-mosaic.narrow, .c-mosaic.narrow.right { flex-direction: column; }
.c-stack { display: flex; flex-direction: column; gap: 14px; flex: none; }
.c-mosaic.narrow .c-stack { flex-direction: row; }
.collage .ed-item img { object-fit: cover; }
@media (max-width: 760px) { .collage, .c-row, .c-mosaic, .c-stack, .c-bento, .c-col { gap: 6px; } }

/* ---------- the CRT stack (video section) ---------- */
.tv-wrap { display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.crt-stage { position: relative; aspect-ratio: 780 / 2220; width: clamp(260px, 34vw, 560px); max-width: 100%; margin-inline: auto; container-type: inline-size; }
.crt-stage::before { /* contact shadow on the floor */
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -1.6%; height: 4%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.07), transparent 70%);
}
.crt-body { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.crt-screen { position: absolute; z-index: 1; overflow: hidden; background: #050505; }
.crt-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.crt-shine { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.crt-glass { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 9% / 12%;
  box-shadow: inset 0 0 5cqw rgba(0,0,0,.75);
  background: radial-gradient(140% 120% at 50% 50%, transparent 58%, rgba(0,0,0,.5) 100%); }
.crt-osd { position: absolute; z-index: 3; inset: 7% 6% auto; display: flex; justify-content: space-between;
  font-weight: 800; font-variation-settings: "wdth" 80; font-size: 3cqw; letter-spacing: .08em; color: #fff; text-shadow: 0 0 .4cqw rgba(0,0,0,.9); }
.crt { position: absolute; z-index: 4; padding: 0; border-radius: 9% / 12%; transition: box-shadow .25s; }
.crt:hover, .crt:focus-visible { box-shadow: inset 0 0 0 .35cqw rgba(255,255,255,.7); }
.tv-info { display: grid; gap: 26px; }
.tv-channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tv-channels button { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.tv-channels b { font-weight: 400; font-size: 13px; color: var(--grey); font-variant-numeric: tabular-nums; }
.tv-channels span { font-size: clamp(20px, 2vw, 28px); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.tv-channels em { grid-column: 2; font-weight: 300; font-size: 14px; color: var(--grey); }
.tv-channels button:hover span { text-shadow: var(--glow); }
.tv-hint { margin: 0; color: var(--grey); font-size: 14px; }
.tv-hint b { color: var(--paper); font-weight: 600; }
.tv-big { position: fixed; inset: 0; z-index: 85; background: #000; display: grid; grid-template-rows: auto 1fr; padding: 0 var(--gutter) var(--gutter); }
.tv-big[hidden] { display: none; }
.tv-big .bar { display: flex; justify-content: space-between; padding: 18px 0; font-size: 15px; }
.tv-big .bar span { color: var(--grey); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.tv-big video { width: 100%; height: 100%; max-height: calc(100vh - 80px); object-fit: contain; background: #000; min-height: 0; }
@media (max-width: 900px) { .tv-wrap { grid-template-columns: 1fr; } }

/* ---------- project: two images side by side ---------- */
.block-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; }
.block-duo figure { margin: 0; }
.block-duo figure:first-child { padding-bottom: 12vh; }
@media (max-width: 760px) { .block-duo { grid-template-columns: 1fr; } .block-duo figure:first-child { padding-bottom: 0; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: #000;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .bar { display: flex; justify-content: space-between; padding: 18px var(--gutter); font-size: 15px; }
.lightbox .bar span { color: var(--grey); font-variant-numeric: tabular-nums; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox figure { overflow: hidden; }
.lightbox figure img { width: auto; height: auto; max-width: 100%; object-fit: contain;
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
.lightbox .arrows { display: flex; justify-content: space-between; padding: 14px var(--gutter) 22px; }
.lightbox .arrows button { font-size: 26px; padding: 6px 10px; }
img.zoomable { cursor: var(--cur), zoom-in; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding: calc(var(--header) + clamp(50px, 12vh, 130px)) var(--gutter) clamp(60px, 12vh, 140px);
  align-items: start;
}
.about-title { grid-column: 1 / span 7; margin: 0 0 clamp(28px, 7vh, 80px); font-weight: inherit; container-type: inline-size; }
.about-title .display { display: block; font-size: min(12.6cqi, 140px); line-height: .9; padding-right: .04em; }
.about-title .hi { margin-bottom: .42em; }
.neg-fill { text-shadow: none; color: transparent; -webkit-text-fill-color: transparent; background: #ecebe8 var(--neg) var(--pos, 50% 50%) / cover no-repeat;
  -webkit-background-clip: text; background-clip: text; }
.neg-fill.pop { animation: negpop .7s var(--ease); }
@keyframes negpop { 0% { filter: brightness(2.4); } 100% { filter: none; } }
.about-text { grid-column: 1 / span 6; display: grid; gap: 40px; }
.about .prose { font-size: clamp(17px, 1.35vw, 20px); color: #cfceca; }
.about .prose .lead { font-size: clamp(20px, 1.8vw, 27px); color: var(--paper); line-height: 1.35; }
.about .side { color: var(--grey); font-size: 15px; }
.about .side p { margin: 0; }
.about .side .contacts { flex-direction: column; gap: 10px; color: var(--paper); font-size: 19px; margin-top: 18px; }

/* the digital camera */
.digicam-wrap { grid-column: 8 / span 5; grid-row: 1 / span 2; margin: 0; position: sticky; top: calc(var(--header) + 30px); }
.digicam-wrap figcaption.cam-hint { margin: 0 0 22px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.cam-hint b { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.cam-hint span:not(.dot) { font-size: 13px; color: var(--grey); font-style: italic; font-weight: 300; }
.cam-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.digicam {
  --ink: #1b1b1d; --stamp: #ff8a2a;
  --lx: 30%; --ly: 25%;
  position: relative;
  padding: 16px 18px 20px;
  border-radius: 22px;
  background: #c9cacd url("../img/dvd.webp") var(--lx) 50% / 220% auto;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.9), inset 0 -4px 10px rgba(0,0,0,.22),
    0 30px 60px rgba(0,0,0,.75), 0 0 70px rgba(220,230,255,.12);
  color: var(--ink);
  transform: rotate(-4deg);
  transition: transform .5s var(--ease), background-position .6s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.digicam::after { /* glossy sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--lx) var(--ly), rgba(255,255,255,.6), rgba(255,255,255,0) 35%);
  mix-blend-mode: soft-light;
}
.digicam:hover { transform: rotate(-2deg) translateY(-4px); }
.cam-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; }
.cam-brand { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 12px; letter-spacing: .12em; opacity: .65; }
.cam-led { width: 7px; height: 7px; border-radius: 50%; background: #4dff7a; box-shadow: 0 0 8px #4dff7a; }
.cam-face { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.cam-screen {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 6px;
  border: 7px solid #232322;
  box-shadow: inset 0 0 0 1px #000, 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
}
.cam-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.cam-screen img.on { opacity: 1; }
.cam-screen::after { /* LCD scanlines + glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 38%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}
.cam-hud {
  position: absolute; top: 6px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
  color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 3px #000, 0 0 1px #000;
  z-index: 2;
}
.cam-stamp {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  color: var(--stamp);
  font-weight: 600; font-variation-settings: "wdth" 80;
  font-size: 15px; letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(255, 138, 42, .8), 0 0 1px #000;
}
.cam-blink { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.cam-blink.go { animation: shutter .28s ease-out; }
@keyframes shutter { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-controls { display: grid; justify-items: center; gap: 10px; }
.cam-btn {
  font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--ink);
  padding: 8px 14px; border-radius: 20px; font-size: 10px;
  background: linear-gradient(180deg, #fbfbfc, #b9bbc1);
  box-shadow: 0 1px 2px rgba(0,0,0,.45), inset 0 1px 0 #fff;
}
.cam-btn:active, .cam-dpad button:active, .cam-shutter:active { transform: translateY(1px); filter: brightness(.92); }
.cam-dpad {
  position: relative;
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff 0%, #d9d9dc 22%, #6f7075 55%, #c9c9cd 78%, #4d4d52 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -3px 6px rgba(0,0,0,.4), 0 3px 6px rgba(0,0,0,.55);
}
.cam-dpad button { position: absolute; font-size: 12px; color: #111; padding: 10px 11px; line-height: 1; }
.cam-dpad .up { top: 2px; left: 50%; transform: translateX(-50%); }
.cam-dpad .down { bottom: 2px; left: 50%; transform: translateX(-50%); }
.cam-dpad .prev { left: 2px; top: 50%; transform: translateY(-50%); }
.cam-dpad .next { right: 2px; top: 50%; transform: translateY(-50%); }
.cam-dpad .cam-set {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; color: #111;
  background: radial-gradient(circle at 40% 30%, #fff, #b9b9be 70%, #8a8a90);
  box-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.cam-dpad .cam-set:active { transform: translate(-50%, calc(-50% + 1px)); }
.cam-shutter {
  width: 40px; height: 12px; border-radius: 6px 6px 2px 2px; margin-left: auto; margin-right: 14px;
  background: linear-gradient(180deg, #fff, #9fa1a7);
  box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 #fff;
}
/* on-screen display */
.cam-menu {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(8, 10, 16, .84);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
  padding: 10px 12px;
  color: #fff;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase; letter-spacing: .08em;
}
.cam-menu[hidden] { display: none; }
.cam-menu-title { margin: 0 0 4px; font-size: 10px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 5px; display: flex; justify-content: space-between; }
.cam-menu-title .t { opacity: .75; } .cam-menu-title .pos { opacity: .55; font-variant-numeric: tabular-nums; }
.cam-menu .cue { align-self: center; font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1; padding: 2px 0; visibility: hidden; animation: cue 1.2s ease-in-out infinite; }
.cam-menu.can-up .cue.up, .cam-menu.can-down .cue.down { visibility: visible; }
@keyframes cue { 50% { transform: translateY(2px); opacity: .6; } }
.cam-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; align-content: start; overflow-y: auto; scrollbar-width: none; min-height: 0; }
.cam-menu ul::-webkit-scrollbar { display: none; }
.cam-menu li button {
  width: 100%; text-align: left; color: #fff;
  font-size: clamp(10px, 1vw, 13px); font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 2px;
}
.cam-menu li button { display: flex; justify-content: space-between; gap: 8px; }
.cam-menu li button .v { opacity: .75; font-weight: 600; }
.cam-menu li button.ro { opacity: .8; }
.cam-menu li button.sel, .cam-menu li button:hover {
  color: #111;
  background: #c9cacd url("../img/dvd.webp") 30% 50% / 400% auto;
}

.cam-game { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; image-rendering: auto; }
.cam-grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.cam-screen[data-disp="grid"] .cam-grid { display: block; }
.cam-screen[data-disp="clean"] .cam-hud { opacity: 0; }
.cam-hud { transition: opacity .2s; }
.cam-toast {
  position: absolute; z-index: 5; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #fff;
  background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 3px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.cam-toast.on { opacity: 1; }
.digicam:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
body.page-flash::before {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: #fff; animation: pageflash .5s ease-out forwards;
}
@keyframes pageflash { 0% { opacity: .95; } 100% { opacity: 0; } }
.digicam button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
/* the camera is now a real photo (Instax-style back, re-skinned in DVD silver); controls sit on top of it */
.digicam { padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
  aspect-ratio: 1536 / 1180; container-type: inline-size;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.8)); }
.digicam::after { z-index: 2; -webkit-mask: url("../img/cam-dvd.webp") 0 0 / 100% 100%; mask: url("../img/cam-dvd.webp") 0 0 / 100% 100%; }
.cam-body { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.digicam .cam-screen { position: absolute; z-index: 0; left: 22.2%; top: 33.5%; width: 44.5%; height: 48.9%; aspect-ratio: auto;
  border: 0; border-radius: .6cqw; box-shadow: none; }
.digicam .cam-screen::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 .25cqw #0d0d0e, inset 0 1cqw 2cqw rgba(0,0,0,.55); }
.digicam .cam-hud, .digicam .cam-mode, .digicam .cam-toast { font-size: max(9px, 1.9cqw); }
.cam-brand { position: absolute; z-index: 2; left: 8.5%; top: 13.5%; transform: none;
  font-weight: 900; font-variation-settings: "wdth" 125; font-size: 2.5cqw; letter-spacing: .16em; color: rgba(25,25,28,.72); opacity: 1; }
.hb { position: absolute; z-index: 3; padding: 0; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%;
  background: transparent; transition: box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.hb:hover, .hb:focus-visible { box-shadow: 0 0 0 .25cqw rgba(255,255,255,.75), 0 0 2.4cqw rgba(255,255,255,.55); outline: none; }
.hb:active { background: rgba(0,0,0,.14); }
.hb.cam-shutter { transform: none; aspect-ratio: auto; border-radius: 1cqw; width: auto; height: auto; margin: 0;
  background: transparent; box-shadow: none; }
.hb.cam-shutter:hover { box-shadow: 0 0 0 .25cqw rgba(255,255,255,.75), 0 0 2.4cqw rgba(255,255,255,.55); }
.hb.slider { aspect-ratio: auto; border-radius: 2cqw; }
.cam-ring { position: absolute; z-index: 3; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; }
.cam-ring .hb { transform: none; aspect-ratio: auto; border-radius: 40%; display: grid; place-items: center;
  font-size: max(7px, 1.25cqw); color: rgba(28,28,30,.5); line-height: 1; }
.cam-ring .up { left: 30%; top: -2%; width: 40%; height: 28%; } .cam-ring .up::before { content: "\25B2"; }
.cam-ring .down { left: 30%; bottom: -2%; width: 40%; height: 28%; } .cam-ring .down::before { content: "\25BC"; }
.cam-ring .prev { left: -2%; top: 30%; width: 28%; height: 40%; } .cam-ring .prev::before { content: "\25C0"; }
.cam-ring .next { right: -2%; top: 30%; width: 28%; height: 40%; } .cam-ring .next::before { content: "\25B6"; }
.cam-ring .ok { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }


@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-title, .about-text, .digicam-wrap { grid-column: 1; }
  .digicam-wrap { position: static; grid-row: 2; margin: 10px 4px 40px; }
  .digicam { transform: rotate(-2deg); }
  .digicam-wrap { width: 100%; max-width: 560px; justify-self: center; }
  .cam-dpad { width: 100px; height: 100px; }
  .cam-menu { padding: 7px 8px; }
  .cam-menu-title { margin-bottom: 3px; padding-bottom: 3px; font-size: 9px; }
  .cam-menu ul { gap: 0; }
  .cam-menu li button { font-size: 10px; padding: 2px 6px; }

  .cam-dpad .cam-set { width: 38px; height: 38px; }
  .cam-face { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .frame img { filter: none; }
}

/* hero that shows the whole (portrait) photo, feathered into the black, instead of a cropped zoom */
.p-hero.contain .p-hero-img { left: auto; right: 6vw; width: auto; height: 100%; max-width: 70vw; object-fit: contain;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent), linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent), linear-gradient(180deg, #000 70%, transparent);
  mask-composite: intersect; }
@media (max-width: 760px) { .p-hero.contain .p-hero-img { right: 0; left: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 15%; -webkit-mask: none; mask: none; } }

/* ---------- phone refinements ---------- */
.prints { height: 0; transition: height .4s var(--ease); }
.prints.has { height: 230px; }
@media (max-width: 860px) {
  /* about: words first, the camera closes the page */
  .about .digicam-wrap { grid-row: 3; margin-top: 30px; }
  .prints.has { height: 190px; }
}
@media (max-width: 760px) {
  /* menu: contacts small and a bit lower */
  .mobile-menu .contacts { margin-top: 64px; gap: 18px; }
  .mobile-menu .contacts a { font-size: 16px; letter-spacing: .02em; }
  /* work: same big-type list as on the computer; the project in the middle lights up with its cover behind */
  .work-row .thumb { display: none; }
  .work-row { padding: 22px 0 20px; }
  .work-row .display { font-size: clamp(30px, 9.6vw, 48px); }
  .work-row .kind { font-size: 13px; }
  .work-list .work-row { opacity: .3; transition: opacity .35s var(--ease); }
  .work-list .work-row.active { opacity: 1; }
  .work-bg { display: block; }
  .work-list { padding-bottom: 30vh; }
  /* home: the photo sits right behind the name so the negative shows through the letters */
  .hero-torch .flash-stage.full img { top: 56%; max-width: 100vw; max-height: 80vh; }
  .hero-torch .flash-stage.full img.land { top: 66%; max-width: 140vw; width: 140vw; max-height: none; }
  .torch-dark {
    -webkit-mask: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 34vmin, rgba(0,0,0,.6) 56vmin, #000 78vmin);
            mask: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 34vmin, rgba(0,0,0,.6) 56vmin, #000 78vmin);
    opacity: .85;
  }
  @keyframes litfade { 0%, 15% { opacity: 0; } 100% { opacity: .85; } }
}

/* phone: landscape project covers are shown whole (no heavy zoom), title underneath */
@media (max-width: 760px) {
  .p-hero.land { height: auto; min-height: 0; overflow: visible; padding-top: var(--header); margin-bottom: 48px; }
  .p-hero.land .p-hero-img { position: static; width: 100%; height: auto; object-fit: contain; }
  .p-hero.land .p-hero-text { position: static; padding: 18px var(--gutter) 0; }
  .p-hero.land::after { display: none; }
}

/* every photo fits the screen (projects marked big, like Badbling, and single 'big' photos keep the large size) */
.fit .block figure img, .fit .block-full:not(.big) img, .visual > img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - var(--header) - 48px); max-height: calc(100svh - var(--header) - 48px);
  margin-inline: auto; object-fit: contain;
}
.fit .block-full:not(.big) img { max-width: calc(100% - 2 * var(--gutter)); }
.fit .block-split figure img { margin-left: auto; margin-right: 0; }
.fit .block-split.left figure img { margin-left: 0; margin-right: auto; }
.c-row { justify-content: center; }
@media (max-width: 860px) { .fit .block-split figure img, .fit .block-split.left figure img { margin-inline: auto; } }
/* phone home: the light is there straight away (no full reveal of the photo first) */
@media (max-width: 760px) { .hero-torch.lit .torch-dark { animation: none; } }

.mail-note { position: fixed; z-index: 400; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; color: #111; text-align: center;
  background: #c9cacd url("../img/dvd.webp") 30% 50% / 300% auto; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.mail-note.on { opacity: 1; transform: translate(-50%, 0); }
.mail-note b { font-weight: 700; margin-left: 6px; }

/* viewer: photo as big as possible, centred in the screen; arrows sit on the sides */
.lightbox figure { position: absolute; inset: 58px 76px; padding: 0; display: grid; place-items: center; overflow: visible; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); }
.lightbox .bar { position: relative; z-index: 2; }
.lightbox .arrows { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 14px; pointer-events: none; }
.lightbox .arrows button { pointer-events: auto; }
@media (max-width: 760px) {
  .lightbox figure { inset: 58px 0 70px; }
  .lightbox figure img { max-height: calc(100dvh - 128px); }
  .lightbox .arrows { top: auto; bottom: 10px; transform: none; padding: 0 var(--gutter); }
}

/* video: big TV stack you scroll through; the channel list stays in view next to it */
@media (min-width: 901px) {
  .tv-wrap { align-items: start; }
  .tv-info { position: sticky; top: calc(var(--header) + 30vh); }
}
