/* ==========================================================================
   Portfolio layout
   The layout for index.html and galleries.html (body.v2): a graphite palette
   with film grain, a camera-viewfinder opening, a drifting photo row with
   the collections beneath it, a monitor wall for the animations, stories
   that drive a sticky screen, and split-layout galleries. It builds on
   refine.css (reveals, frames, lightbox, cursor) and only applies under
   .v2, so science.html, cart.html and generic.html keep their current look.
   Behaviour lives in js/portfolio.js.
   ========================================================================== */

.v2 {
  /* Graphite greys, with a little sage kept for small accents */
  --bg: #111111;
  --bg-2: #161616;
  --bg-3: #1f1f1f;
  --ink: #ecebe7;
  --ink-2: #b3b2ad;
  --muted: #929189;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #a8c397;
  --accent-ink: #111111;

  --gutter: clamp(18px, 4.5vw, 72px);
  --maxw: 1520px;
  --header-h: 76px;
  --sec-pad: clamp(96px, 12vw, 180px);
  background: var(--bg);
  color: var(--ink-2);
}

html.bg-white:has(body.v2),
.v2.bg-white {
  background: var(--bg) !important;
}

.v2 .wrap {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.v2 a:hover {
  text-decoration: none;
}

.v2 ::selection {
  background: var(--ink);
  color: var(--bg);
}

/* main.css sets overflow-x: hidden on html and body, which turns body into its
   own scroll box and stops position: sticky from working. clip hides sideways
   overflow the same way without creating a scroll box. */
html:has(body.v2),
body.v2 {
  overflow-x: clip !important;
}

/* Keep the page still behind the open phone menu */
.v2.menu-open {
  overflow: hidden;
}

/* main.css lifts every section onto its own GPU layer for the menu-jump blur.
   A transform there would also trap fixed and sticky children, so drop it. */
.v2 .scroll-blur-target {
  transform: none;
}

/* Film grain over everything, very faint */
body.v2::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1150;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Small uppercase label used across the layout */
.v2 .eyebrow,
.v2 .sec-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.v2 .eyebrow::before,
.v2 .sec-num::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Visually hidden text that screen readers still announce */
.v2 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Generic reveal used by portfolio.js (refine.js handles headings and frames) */
.v2 .rv {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s);
}
.v2 .rv.is-in {
  opacity: 1;
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   Header: always-visible nav on computers, full-screen menu on phones
   -------------------------------------------------------------------------- */
.v2 .default-header {
  height: var(--header-h) !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  z-index: 1000;
}
.v2 .default-header > .container {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  max-width: none;
  padding: 0;
}
.v2 .header-top {
  height: var(--header-h);
}
.v2 .is-sticky .default-header {
  height: var(--header-h) !important;
  background-color: rgba(17, 17, 17, 0.78) !important;
}
.v2 .logo a {
  display: inline-flex;
  align-items: center;
}
.v2 .logo a.logo-mobile {
  display: none;
}
@media (max-width: 767px) {
  .v2 .logo a.logo-desktop { display: none; }
  .v2 .logo a.logo-mobile { display: inline-flex; }
}
.v2 .logo img {
  height: 24px;
  width: auto;
}
.v2 .logo-mobile img {
  height: 28px;
  max-width: none;
}

/* The loading ring moves out of the menu bar into the corner */
.v2 #loading-progress-circle {
  position: fixed !important;
  top: auto !important;
  right: 18px !important;
  bottom: 18px;
  z-index: 1100 !important;
  cursor: pointer;
}
.v2 #loading-progress-circle circle {
  stroke: var(--ink) !important;
}
.v2 #loading-progress-expanded {
  top: auto !important;
  bottom: 48px;
  background: var(--bg-2) !important;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.v2 #loading-files-list div {
  color: var(--ink-2) !important;
}

@media (min-width: 768px) {
  .v2 .menu-bar {
    display: none !important;
  }
  .v2 nav,
  .v2 nav.hide {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .v2 nav.hide > a,
  .v2 nav.hide > .nav-item-dropdown {
    opacity: 1;
    transform: none;
  }
  .v2 nav a {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
  }
  .v2 nav > .nav-item-dropdown {
    padding: 22px 0;
  }
  .v2 .dropdown-content {
    top: calc(100% - 8px);
    left: -22px;
  }
}

@media (max-width: 767px) {
  .v2 .menu-bar {
    position: relative;
    z-index: 1002;
  }
  /* Phones keep the header (and its menu button) in view at all times,
     without waiting for jquery.sticky to catch up after a jump */
  .v2 .default-header,
  .v2 .default-header.is-tucked {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100% !important;
    transform: none;
  }
  /* A fixed menu inside a blurred or moved header would be clipped to it */
  .v2 .default-header:has(nav:not(.hide)) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
    background-color: transparent !important;
  }
  .v2 nav {
    position: fixed !important;
    inset: 0;
    top: 0 !important;
    right: 0 !important;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 96px var(--gutter) 48px !important;
    background: rgba(17, 17, 17, 0.98) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-y: auto;
    z-index: 1001;
  }
  .v2 nav > a,
  .v2 nav > .nav-item-dropdown {
    display: block !important;
    margin: 0 !important;
  }
  .v2 nav > a,
  .v2 nav > .nav-item-dropdown > a {
    display: inline-block;
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 8vw, 34px);
    font-weight: 600;
    letter-spacing: 0.06em;
  }
  .v2 nav > a::after,
  .v2 nav > .nav-item-dropdown > a::after {
    bottom: 4px;
  }
}

/* --------------------------------------------------------------------------
   Chapter marker: bottom-left, names the part of the page you're in
   -------------------------------------------------------------------------- */
.v2 .chapter {
  position: fixed;
  left: calc(var(--gutter) / 2 - 7px);
  bottom: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  mix-blend-mode: difference;
}
.v2 .chapter.is-on {
  opacity: 1;
}
.v2 .chapter-num {
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.v2 .chapter-line {
  width: 1px;
  height: 36px;
  background: currentColor;
}
.v2 .chapter-name {
  display: inline-block;
  overflow: hidden;
}
.v2 .chapter.is-swapping .chapter-name,
.v2 .chapter.is-swapping .chapter-num {
  animation: chapter-swap 0.55s var(--ease-wipe);
}
@keyframes chapter-swap {
  0% { opacity: 1; transform: none; }
  45% { opacity: 0; transform: translateY(-60%); }
  55% { opacity: 0; transform: translateY(60%); }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 1199px) {
  .v2 .chapter { display: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.v2 .sec {
  position: relative;
  padding: var(--sec-pad) 0;
  background: transparent;
}
.v2 .sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 84px);
}
.v2 .sec-title,
.v2 .collection-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.4vw, 6.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2 .sec-lead {
  max-width: 34ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.v2 .sec-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-snap), border-color 0.35s var(--ease-snap);
}
.v2 .sec-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-wipe);
}
.v2 .sec-link::after {
  content: "\2192";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.35s var(--ease-snap);
}
.v2 .sec-link:hover {
  color: var(--bg);
  border-color: var(--ink);
}
.v2 .sec-link:hover::before {
  transform: none;
}
.v2 .sec-link:hover::after {
  transform: translateX(4px);
}
.v2 .sec-link:active {
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .v2 .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Hero: a camera viewfinder. The frame opens like a shutter, a focus box
   follows the pointer and locks when it rests, the photo pans a little
   with the pointer, and each new slide is "taken" with a shutter blink.
   -------------------------------------------------------------------------- */
.v2 .vf {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.v2 .vf-frame {
  position: absolute;
  top: calc(var(--header-h) + 4px);
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(150px, 23vh, 230px);
  overflow: hidden;
  background: #000;
  clip-path: inset(49.5% 0 49.5% 0);
  transform: scale(var(--vf-scale, 1));
  transform-origin: 50% 0;
}
.v2.is-ready .vf-frame {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.5s var(--ease-wipe) 0.15s;
}
.v2 .vf .carousel,
.v2 .vf .carousel-inner {
  position: absolute;
  inset: 0;
  height: auto;
}
.v2 .vf .carousel-inner {
  inset: -3%;
  width: auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
  will-change: transform;
}
.v2 .vf .carousel-item {
  height: 100%;
  min-height: 0;
  background-size: cover;
  background-position: center;
}
.v2 .vf .carousel-item::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.35) 100%);
}

/* Rule-of-thirds grid shows while the pointer is over the frame */
.v2 .vf-frame::before,
.v2 .vf-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.v2 .vf-frame::before {
  background:
    linear-gradient(90deg, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.22) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.22) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(90deg, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.22) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.22) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}
.v2 .vf-frame::after {
  background:
    linear-gradient(180deg, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.22) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.22) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(180deg, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.22) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.22) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}
.v2 .vf-frame:hover::before,
.v2 .vf-frame:hover::after {
  opacity: 1;
}

/* Corner brackets */
.v2 .vf-marks i {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  border: 0 solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.v2 .vf-marks i:nth-child(1) { top: 18px; left: 18px; border-top-width: 1.5px; border-left-width: 1.5px; }
.v2 .vf-marks i:nth-child(2) { top: 18px; right: 18px; border-top-width: 1.5px; border-right-width: 1.5px; }
.v2 .vf-marks i:nth-child(3) { bottom: 18px; left: 18px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.v2 .vf-marks i:nth-child(4) { bottom: 18px; right: 18px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Focus box: centred until the pointer moves; JS sets --fx/--fy */
.v2 .vf-focus {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 74px;
  height: 52px;
  margin: -26px 0 0 -37px;
  pointer-events: none;
  transform: translate3d(var(--fx, 50vw), var(--fy, 40vh), 0) scale(1.18);
  opacity: 0;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(currentColor, currentColor) top left / 12px 1.5px,
    linear-gradient(currentColor, currentColor) top left / 1.5px 12px,
    linear-gradient(currentColor, currentColor) top right / 12px 1.5px,
    linear-gradient(currentColor, currentColor) top right / 1.5px 12px,
    linear-gradient(currentColor, currentColor) bottom left / 12px 1.5px,
    linear-gradient(currentColor, currentColor) bottom left / 1.5px 12px,
    linear-gradient(currentColor, currentColor) bottom right / 12px 1.5px,
    linear-gradient(currentColor, currentColor) bottom right / 1.5px 12px;
  background-repeat: no-repeat;
  transition: opacity 0.4s var(--ease-out), color 0.2s var(--ease-snap);
}
.v2 .vf-focus.is-on {
  opacity: 1;
}
.v2 .vf-focus.is-locked {
  color: var(--accent);
  animation: focus-lock 0.32s var(--ease-snap) forwards;
}
@keyframes focus-lock {
  0% { scale: 1; }
  40% { scale: 0.82; }
  70% { scale: 0.9; }
  100% { scale: 0.86; }
}

/* Top readout inside the frame */
.v2 .vf-hud {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.v2 .vf-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.v2 .vf-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0533d;
  animation: live-blink 1.6s steps(1) infinite;
}
@keyframes live-blink {
  50% { opacity: 0.2; }
}
.v2 .hero-count {
  font: inherit;
  letter-spacing: inherit;
  color: rgba(255, 255, 255, 0.6);
}
.v2 .hero-count b {
  color: #fff;
  font-weight: 600;
}

/* Shutter blink between slides */
.v2 .vf-shutter i {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  height: 50.5%;
  background: #050505;
  transform: scaleY(0);
  pointer-events: none;
}
.v2 .vf-shutter i:first-child { top: 0; transform-origin: 50% 0; }
.v2 .vf-shutter i:last-child { bottom: 0; transform-origin: 50% 100%; }
.v2 .vf-shutter.is-firing i {
  animation: shutter 0.34s var(--ease-snap);
}
@keyframes shutter {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  60% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Name: huge, along the bottom, overlapping the frame edge. difference
   blending turns it negative where it crosses the photo. */
.v2 .vf-title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(26px, 5vh, 54px);
  z-index: 7;
  pointer-events: none;
  mix-blend-mode: difference;
}
.v2 .hero-kicker {
  position: absolute;
  right: 0;
  bottom: 40px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
}
.v2 .hero-title {
  position: relative;
  align-items: flex-start;
  text-align: left;
  margin: 0;
  text-shadow: none;
  color: #fff;
}
.v2 .hero-title .hero-name {
  font-size: clamp(3.4rem, 12.6vw, 13.5rem);
  letter-spacing: 0.01em;
  padding-left: 0;
  line-height: 0.8;
  margin-left: -0.04em;
}
.v2 .hero-title .hero-sub {
  position: absolute;
  right: 0;
  bottom: 6px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.5em;
}
.v2 .hero-title .hero-sub::before {
  display: none;
}

/* Slide controls: bottom-right, under the frame */
.v2 .hero-ui {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(150px, 23vh, 230px) - 66px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.v2 .hero-progress {
  position: relative;
  width: 110px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}
.v2 .hero-progress i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.v2 .hero-progress.is-running i {
  animation: hero-progress var(--hero-interval, 6.5s) linear forwards;
}
@keyframes hero-progress {
  to { transform: scaleX(1); }
}
.v2 .hero-ui .carousel-control-prev,
.v2 .hero-ui .carousel-control-next {
  position: static;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 260ms var(--ease-snap),
    border-color 260ms var(--ease-snap),
    transform var(--dur-snap) var(--ease-snap);
}
.v2 .hero-ui .carousel-control-prev:hover,
.v2 .hero-ui .carousel-control-next:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}
.v2 .hero-ui .carousel-control-prev:hover span,
.v2 .hero-ui .carousel-control-next:hover span {
  filter: invert(1);
}
.v2 .hero-ui .carousel-control-prev:active,
.v2 .hero-ui .carousel-control-next:active {
  transform: scale(0.9);
}
.v2 .hero-ui .carousel-control-prev-icon,
.v2 .hero-ui .carousel-control-next-icon {
  width: 13px;
  height: 13px;
}
.v2 .vf .scroll-cue {
  left: auto;
  right: calc(var(--gutter) + 8px);
  bottom: auto;
  top: calc(var(--header-h) + 50%);
  transform: none;
  z-index: 8;
  writing-mode: vertical-rl;
  flex-direction: row;
  gap: 14px;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
}
.v2 .vf .scroll-cue span:first-child {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .v2 .vf {
    min-height: 560px;
  }
  .v2 .vf-frame {
    left: 12px;
    right: 12px;
    bottom: 222px;
  }
  .v2 .vf-hud {
    left: 46px;
    right: 46px;
    top: 20px;
    letter-spacing: 0.2em;
  }
  .v2 .vf-marks i {
    width: 18px;
    height: 18px;
  }
  .v2 .vf-marks i:nth-child(1), .v2 .vf-marks i:nth-child(2) { top: 14px; }
  .v2 .vf-marks i:nth-child(3), .v2 .vf-marks i:nth-child(4) { bottom: 14px; }
  .v2 .vf-marks i:nth-child(1), .v2 .vf-marks i:nth-child(3) { left: 14px; }
  .v2 .vf-marks i:nth-child(2), .v2 .vf-marks i:nth-child(4) { right: 14px; }
  .v2 .vf-title {
    bottom: 34px;
  }
  .v2 .hero-kicker {
    position: static;
    margin: 0 0 12px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }
  .v2 .hero-title .hero-name {
    font-size: 18vw;
  }
  .v2 .vf-title {
    bottom: 30px;
  }
  .v2 .hero-title .hero-sub {
    position: static;
    margin-top: 14px;
    font-size: 10px;
    letter-spacing: 0.4em;
  }
  .v2 .hero-ui {
    bottom: 30px;
    gap: 10px;
  }
  .v2 .hero-ui .carousel-control-prev,
  .v2 .hero-ui .carousel-control-next {
    width: 38px;
    height: 38px;
  }
  .v2 .hero-progress {
    width: 54px;
  }
}

/* --------------------------------------------------------------------------
   About: a short bio, kept compact
   -------------------------------------------------------------------------- */
.v2 .about {
  padding: clamp(80px, 9vw, 130px) 0;
}
.v2 .about-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr);
  gap: 32px;
  align-items: baseline;
}
.v2 .about .eyebrow {
  margin: 0;
}
.v2 .about-text {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}
.v2 .about-text a {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-wipe);
}
.v2 .about-text a:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
@media (max-width: 767px) {
  .v2 .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Selected work: one row of photos that drifts slowly on its own. Drag it
   (or swipe, or use the arrows) to move through it; the page scrolls as
   normal. The collections sit underneath as a compact line.
   -------------------------------------------------------------------------- */
.v2 .showcase {
  position: relative;
  padding: clamp(56px, 6vw, 96px) 0 clamp(48px, 5vw, 80px);
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.v2 .strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.v2 .strip-head .sec-title {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}
.v2 .strip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}
.v2 .strip-arrows {
  display: flex;
  gap: 8px;
}
.v2 .strip-btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-snap), color 0.3s, border-color 0.3s, transform var(--dur-snap) var(--ease-snap);
}
.v2 .strip-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.v2 .strip-btn:active {
  transform: scale(0.9);
}
.v2 .sec-link {
  white-space: nowrap;
}
.v2 .strip-viewport {
  position: relative;
  height: clamp(260px, 44vh, 520px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.v2 .strip-viewport::-webkit-scrollbar { display: none; }
.v2 .strip-viewport.is-dragging {
  cursor: grabbing;
}
.v2 .gal.strip-track {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 22px);
  height: 100%;
  width: max-content;
  padding-inline: var(--gutter);
  column-count: auto;
}
.v2 .strip-track > a {
  flex: none;
  height: 100%;
  margin: 0;
  border-radius: 2px;
  background: var(--bg-3);
  -webkit-user-drag: none;
  user-select: none;
}
.v2 .strip-track > a:not(.is-loaded) { width: 36vh; }
.v2 .strip-track img {
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-user-drag: none;
}
/* Caption slides up on hover */
.v2 .gal .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 36px 16px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  opacity: 0;
  translate: 0 10px;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-snap);
}
.v2 .gal .cap b {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.v2 .gal > a:hover .cap,
.v2 .gal > a:focus-visible .cap {
  opacity: 1;
  translate: 0 0;
}
.v2 .strip-foot {
  margin-top: 22px;
}
.v2 .strip-bar {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.v2 .strip-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sw, 20%);
  background: var(--ink);
  transform: translateX(var(--sp, 0%));
}

/* Compact collections line */
.v2 .col-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-top: clamp(26px, 3vw, 40px);
}
.v2 .col-line-label {
  margin-right: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.v2 .col-chip {
  position: relative;
  padding: 4px 10px 4px 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.35s var(--ease-out), color 0.25s;
}
.v2 .col-chip::after {
  content: "/";
  margin-left: 10px;
  font-weight: 300;
  color: var(--line-strong);
}
.v2 .col-chip:last-child::after {
  content: none;
}
.v2 .col-chip sup {
  margin-left: 3px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.v2 .col-line:hover .col-chip {
  opacity: 0.35;
}
.v2 .col-line .col-chip:hover,
.v2 .col-line .col-chip:focus-visible {
  opacity: 1;
  color: var(--accent);
}

/* Preview that trails the pointer over a collection name (made by portfolio.js) */
.ci-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  width: clamp(200px, 17vw, 280px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0) rotate(var(--cr, 0deg));
  transition: opacity 0.3s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ci-float.is-on {
  opacity: 1;
}
/* Only the incoming photo animates; the outgoing one stays put underneath
   and the rest are hidden instantly, so nothing older can flash through */
.ci-float img,
.v2 .films-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: none;
}
.ci-float img.was-on,
.v2 .films-screen img.was-on {
  z-index: 1;
  clip-path: inset(0 0 0 0);
}
.ci-float img.is-on,
.v2 .films-screen img.is-on {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--ease-wipe);
}

@media (max-width: 767px) {
  .v2 .strip-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .v2 .strip-viewport {
    height: 300px;
  }
  .v2 .strip-track > a:not(.is-loaded) { width: 220px; }
  .v2 .strip-arrows { display: none; }
  .ci-float { display: none; }
  /* One swipeable line of collection names on phones */
  .v2 .col-line {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .v2 .col-line::-webkit-scrollbar { display: none; }
  .v2 .col-chip { flex: none; }
}
/* --------------------------------------------------------------------------
   03 Editing: two reels, then a monitor wall of animations. Pointing at a
   screen widens its column and row, so the wall makes room for it.
   -------------------------------------------------------------------------- */
.v2 .reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.v2 .reel {
  margin: 0;
}
.v2 .reel .video-container {
  border-radius: 2px;
  box-shadow: none;
  background: #000;
}
.v2 .youtube-custom-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v2 .reel figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2 .reel-tag {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  color: var(--muted);
}
.v2 .sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.v2 .sub-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2 .sub-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.v2 .gallery-container {
  display: block;
  padding: 10px;
  background: #050505;
  border: 1px solid var(--line);
}
.v2 .gallery.wall {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  height: clamp(420px, 50vw, 780px);
  column-count: auto;
  perspective: none;
  transition: grid-template-columns 0.75s var(--ease-out), grid-template-rows 0.75s var(--ease-out);
}
.v2 .wall[data-col="1"] { grid-template-columns: 2.6fr 1fr 1fr; }
.v2 .wall[data-col="2"] { grid-template-columns: 1fr 2.6fr 1fr; }
.v2 .wall[data-col="3"] { grid-template-columns: 1fr 1fr 2.6fr; }
.v2 .wall[data-row="1"] { grid-template-rows: 2.2fr 1fr 1fr; }
.v2 .wall[data-row="2"] { grid-template-rows: 1fr 2.2fr 1fr; }
.v2 .wall[data-row="3"] { grid-template-rows: 1fr 1fr 2.2fr; }
.v2 .wall .video-box,
.v2 .wall .video-box.expanded,
.v2 .gallery.dimmed .video-box:not(.expanded) {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  transform: none;
  filter: none;
  border-radius: 1px;
  box-shadow: none;
  will-change: auto;
  background: #000;
  transition: none;
}
.v2 .wall .video-box video,
.v2 .wall .video-box.expanded video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: none;
  object-fit: cover;
  border-radius: 0;
}
.v2 .wall .video-box::after {
  background: #000;
}
.v2 .gallery.dimmed .video-box:not(.expanded)::after {
  opacity: 0.55;
}
.v2 .wall .video-box.expanded {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: -1px;
}
.v2 .video-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.v2 .video-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-snap);
}
.v2 .video-box.expanded .video-label {
  opacity: 1;
  translate: 0 0;
}
@media (max-width: 767px) {
  .v2 .reels {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   04 Films & stories: a sticky screen on the left shows the story you're
   reading on the right
   -------------------------------------------------------------------------- */
.v2 .films-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
}
.v2 .films-stage {
  position: relative;
}
.v2 .films-screen {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%); /* centred on screen, level with the story beside it */
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 2px;
  isolation: isolate;
}
.v2 .screen-num {
  position: absolute;
  left: 22px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}
.v2 .screen-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-snap);
}
.v2 .films-screen:hover .screen-play {
  opacity: 1;
  translate: 0 0;
}
.v2 .story {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.v2 .story:first-child {
  border-top: 0;
}
/* The story being read gets a rule down its left edge; the others' titles
   step back (only the large titles dim, so all text stays readable) */
.v2 .story::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 3vw, 48px));
  top: 6vh;
  bottom: 6vh;
  width: 1px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease-wipe);
}
.v2 .story.is-active::before {
  transform: scaleY(1);
}
.v2 .story h3 {
  transition: opacity 0.6s var(--ease-out);
}
.v2 .story:not(.is-active) h3 {
  opacity: 0.55;
}
.v2 .story > .media-frame {
  display: none;
}
.v2 .story-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.v2 .story-num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.v2 .story h3 {
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.v2 .story h3 a {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-wipe);
}
.v2 .story h3 a:hover {
  background-size: 100% 1px;
}
.v2 .story p {
  max-width: 54ch;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.v2 .story p a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s;
}
.v2 .story p a:hover {
  border-color: var(--ink);
}
.v2 .story-extra {
  width: 160px;
  margin-top: 12px;
  border-radius: 2px;
}
.v2 .story-actions {
  margin-top: 14px;
}
.v2 .journey-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-snap), color 0.3s var(--ease-snap), transform var(--dur-snap) var(--ease-snap);
}
.v2 .journey-toggle::after {
  content: "+";
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease-snap);
}
.v2 .journey-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.v2 .journey-toggle:hover {
  background: var(--ink);
  color: var(--bg);
}
.v2 .journey-toggle:active {
  transform: scale(0.96);
}
.v2 .journey {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-wipe);
}
.v2 .journey > div {
  overflow: hidden;
  min-height: 0;
}
.v2 .journey.is-open {
  grid-template-rows: 1fr;
}
.v2 .journey-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}
.v2 .journey-day h4 {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.v2 .journey-day h4 a {
  color: var(--ink);
}
.v2 .journey-day .media-frame {
  display: block;
  aspect-ratio: 16 / 9;
}
.v2 .journey-day .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .v2 .films-grid {
    grid-template-columns: 1fr;
  }
  .v2 .films-stage {
    display: none;
  }
  .v2 .story {
    min-height: 0;
    padding: 48px 0;
  }
  .v2 .story::before {
    display: none;
  }
  .v2 .story:not(.is-active) h3 {
    opacity: 1;
  }
  .v2 .story > .media-frame {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
  }
  .v2 .story > .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* --------------------------------------------------------------------------
   Contact: the portrait and the form, side by side
   -------------------------------------------------------------------------- */
.v2 .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.v2 .contact-portrait {
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.v2 .contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--ease-out), scale 1.2s var(--ease-out);
}
.v2 .contact-portrait:hover img {
  filter: none;
  scale: 1.03;
}
.v2 .contact-main .sec-title {
  margin-bottom: 22px;
}
.v2 .contact-lead {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.v2 .contact-email {
  display: inline-block;
  margin-bottom: clamp(32px, 4vw, 52px);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 300;
  color: var(--ink);
  word-break: break-all;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-wipe);
}
.v2 .contact-email:hover {
  color: var(--ink);
  background-size: 0 1px;
  background-position: 100% 100%;
}
.v2 .booking-form {
  display: grid;
  gap: 28px;
}
.v2 .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.v2 .field {
  position: relative;
  display: block;
  margin: 0;
}
.v2 .field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.v2 .field input,
.v2 .field textarea {
  width: 100%;
  padding: 10px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.v2 .field textarea {
  min-height: 150px;
  resize: vertical;
}
.v2 .field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-wipe);
}
.v2 .field:focus-within::after {
  transform: scaleX(1);
}
.v2 .field:focus-within > span {
  color: var(--ink);
}
.v2 .field ::placeholder {
  color: #6b6a66;
}
.v2 .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.v2 .submit-btn.primary-btn {
  min-width: 190px;
  text-align: left;
}
.v2 .contact-v3 .footer-social {
  display: flex;
  gap: 10px;
}
.v2 .contact-v3 .footer-social a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}
.v2 .contact-v3 .footer-social a:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.v2 .contact-v3 .footer-social a:hover i {
  color: var(--bg);
}
@media (max-width: 767px) {
  .v2 .contact-grid,
  .v2 .field-row {
    grid-template-columns: 1fr;
  }
  .v2 .contact-portrait {
    width: min(260px, 70%);
  }
}
/* --------------------------------------------------------------------------
   Footer: one compact row of copyright, links and back-to-top
   -------------------------------------------------------------------------- */
.v2 .site-footer {
  position: relative;
  padding: 22px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.v2 .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.v2 .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.v2 .footer-links a,
.v2 .back-top {
  color: var(--ink-2);
  transition: color 0.25s;
}
.v2 .footer-links a:hover,
.v2 .back-top:hover {
  color: var(--ink);
}
.v2 .footer-sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}
@media (max-width: 767px) {
  .v2 .footer-row {
    justify-content: flex-start;
  }
  .v2 .footer-links {
    order: -1;
    width: 100%;
  }
  .v2 .footer-sep {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Galleries page
   -------------------------------------------------------------------------- */
.v2 .page-hero {
  padding: calc(var(--header-h) + clamp(40px, 5vw, 72px)) 0 clamp(36px, 4vw, 56px);
}
.v2 .page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.v2 .hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.v2 .page-hero .col-line {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.v2 .hero-stat {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.v2 .hero-stat b {
  color: var(--ink);
  font-weight: 600;
}

/* Collection bar: chips plus the layout switch */
.v2 .cat-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(17, 17, 17, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
  transition: top 0.45s var(--ease-snap);
}
.v2.header-visible .cat-nav {
  top: var(--header-h);
}
.v2 .cat-nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.v2 .cat-nav__track {
  flex: 1;
  display: flex;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.v2 .cat-nav__track::-webkit-scrollbar { display: none; }
.v2 .cat-nav__track {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  padding-right: 40px;
}
.v2 .cat-link {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.25s, background-color 0.3s var(--ease-snap), border-color 0.3s;
}
.v2 .cat-link sup {
  margin-left: 6px;
  font-size: 9px;
  color: var(--muted);
}
.v2 .cat-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.v2 .cat-link.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.v2 .cat-link.is-active sup {
  color: var(--bg);
}
.v2 .view-switch {
  flex: none;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.v2 .view-switch button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-snap), color 0.3s;
}
.v2 .view-switch button[aria-pressed="true"] {
  background: var(--bg-3);
  color: var(--ink);
}
.v2 .view-switch button:hover {
  color: var(--ink);
}

/* Each collection: details stick on the left while its photos scroll by */
.v2 .collection {
  padding: clamp(64px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 50px);
}
.v2 .collection-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3.2fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.v2 .collection-side {
  position: sticky;
  top: 90px;
  transition: top 0.45s var(--ease-snap);
}
.v2.header-visible .collection-side {
  top: calc(var(--header-h) + 90px);
}
.v2 .collection-title {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.v2 .latin {
  margin: 10px 0 0;
  font-family: var(--font-hand);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}
.v2 .collection-count {
  display: block;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.v2 .collection-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.25s, gap 0.35s var(--ease-snap);
}
.v2 .collection-next::after {
  content: "\2193";
}
.v2 .collection-next:hover {
  color: var(--ink);
  gap: 16px;
}

/* Mosaic (default) */
.page-galleries .collections .gal {
  column-count: 3;
  column-gap: 12px;
}
.page-galleries .collections .gal > a {
  margin-bottom: 12px;
  border-radius: 1px;
}
.page-galleries .collections .gal .cap {
  padding: 30px 12px 10px;
  font-size: 10px;
}

/* Contact sheet: small even frames, numbered like a strip of negatives */
.page-galleries[data-view="sheet"] .collections .gal {
  column-count: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px;
  padding: 10px;
  background: #050505;
  border: 1px solid var(--line);
}
.page-galleries[data-view="sheet"] .collections .gal > a {
  aspect-ratio: 1;
  margin: 0;
}
.page-galleries[data-view="sheet"] .collections .gal img {
  height: 100%;
  object-fit: cover;
}
.page-galleries[data-view="sheet"] .collections .gal .cap {
  opacity: 1;
  translate: 0 0;
  padding: 18px 8px 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}
.page-galleries .collections .gal.is-switching {
  animation: view-switch 0.5s var(--ease-out);
}
@keyframes view-switch {
  from { opacity: 0; translate: 0 14px; }
}

@media (max-width: 1100px) {
  .page-galleries .collections .gal {
    column-count: 2;
  }
}
@media (max-width: 767px) {
  .v2 .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .v2 .view-switch {
    display: none;
  }
  /* The phone header never tucks away, so the bar always sits below it */
  .v2 .cat-nav {
    top: var(--header-h);
  }
  .v2 .collection {
    scroll-margin-top: calc(var(--header-h) + 60px);
  }
  .v2 .collection-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .v2 .collection-side {
    position: static;
  }
  .v2 .collection-next {
    display: none;
  }
  .page-galleries .collections .gal {
    column-gap: 8px;
  }
  .page-galleries .collections .gal > a {
    margin-bottom: 8px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: no pointer-driven pan, shutter or focus hunting; reveals
   are plain fades (refine.css handles its own)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .v2 .vf-frame,
  .v2.is-ready .vf-frame {
    clip-path: none;
    transition: none;
  }
  .v2 .vf .carousel-inner {
    transform: none;
  }
  .v2 .vf-shutter,
  .v2 .vf-focus,
  .v2 .vf-live i {
    display: none;
  }
  .v2 .rv {
    translate: none;
  }
  .v2 .gallery.wall {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Viewfinder realism: colour fringing toward the edges (the photo split
   into red, green and blue copies at very slightly different sizes, like
   lateral chromatic aberration), a soft vignette, and a settings bar
   -------------------------------------------------------------------------- */
.v2 .vf-ca {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  /* Only the edges show the split copies; the middle is the photo itself */
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 52%, #000 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 52%, #000 100%);
}
.v2 .vf-ca.is-on {
  opacity: 1;
}
.v2 .vf-ca i {
  position: absolute;
  inset: 0;
  background-image: var(--slide);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}
.v2 .vf-ca i:nth-child(1) { background-color: #00ff00; }
.v2 .vf-ca i:nth-child(2) { background-color: #ff0000; mix-blend-mode: screen; transform: scale(1.02); }
.v2 .vf-ca i:nth-child(3) { background-color: #0000ff; mix-blend-mode: screen; transform: scale(0.98); }
.v2 .vf-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}
.v2 .vf-info {
  position: absolute;
  z-index: 4;
  left: 60px;
  right: 60px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.v2 .vf-set {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.v2 .vf-set small,
.v2 .vf-meter small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}
.v2 .vf-set b {
  font-weight: 600;
  transition: opacity 0.18s;
}
.v2 .vf-info.is-metering b {
  opacity: 0.25;
}
.v2 .vf-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v2 .vf-scale {
  position: relative;
  width: 90px;
  height: 9px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)) center / 1px 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 15px) 0 50% / 100% 5px no-repeat;
}
.v2 .vf-scale i {
  position: absolute;
  left: calc(50% + var(--ev, 0) * 22px);
  top: -5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--accent);
  translate: -4px 0;
  transition: left 0.6s var(--ease-out);
}
.v2 .vf-af {
  margin-left: auto;
  color: var(--accent);
}
@media (max-width: 767px) {
  .v2 .vf-info {
    left: 40px;
    right: 40px;
    bottom: 18px;
    gap: 12px;
    font-size: 10px;
  }
  .v2 .vf-meter,
  .v2 .vf-af {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Galleries: a mini contact sheet for each collection, under the title
   -------------------------------------------------------------------------- */
.v2 .sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.v2 .sheet-card {
  display: block;
  color: var(--ink);
}
.v2 .sheet-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  background: #050505;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.v2 .sheet-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.35s var(--ease-out);
}
.v2 .sheet-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
}
.v2 .sheet-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  hyphens: manual;
  transition: color 0.25s;
}
.v2 .sheet-count {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.v2 .sheet-grid:hover .sheet-card {
  opacity: 0.55;
}
.v2 .sheet-card {
  transition: opacity 0.3s var(--ease-out);
}
.v2 .sheet-grid .sheet-card:hover,
.v2 .sheet-grid .sheet-card:focus-visible {
  opacity: 1;
}
.v2 .sheet-card:hover .sheet-thumbs {
  border-color: var(--ink);
}
.v2 .sheet-card:hover .sheet-thumbs img {
  opacity: 1;
}
.v2 .sheet-card:hover .sheet-name {
  color: var(--accent);
}
@media (max-width: 767px) {
  .v2 .sheet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 8px;
  }
  .v2 .sheet-thumbs {
    gap: 2px;
    padding: 2px;
  }
  .v2 .sheet-label {
    flex-direction: column;
    gap: 2px;
  }
  .v2 .sheet-name {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
}

/* Collection bar: a Top button first, and the chips can be dragged */
.v2 .cat-top {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-snap), color 0.25s;
}
.v2 .cat-top:hover {
  background: var(--ink);
  color: var(--bg);
}
.v2 .cat-nav__track {
  cursor: grab;
  user-select: none;
}
.v2 .cat-nav__track.is-dragging {
  cursor: grabbing;
}
.v2 .cat-nav__track.is-dragging a {
  pointer-events: none;
}

/* Side column: never wider than its share, so nothing in it (like a long
   "Next:" name) can squeeze the photos and make them reflow */
.v2 .collection-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
}
.v2 .collection-title {
  overflow-wrap: normal;
  hyphens: manual;
}
.v2 .collection-next,
.v2 .collection-next:hover {
  gap: 10px;
}
.v2 .collection-next::after {
  display: inline-block;
  transition: transform 0.35s var(--ease-snap);
}
.v2 .collection-next:hover::after {
  transform: translateY(3px);
}

/* Layout switch: photos glide to their new places (portfolio.js) */
.page-galleries .collections .gal.is-switching {
  animation: none;
}
.page-galleries.is-reflowing .collections .gal .cap {
  opacity: 0 !important;
  transition: none;
}
.page-galleries.is-reflowing .collections .gal > a::after {
  transform: scaleY(0) !important;
  transition: none !important;
}

/* --------------------------------------------------------------------------
   Videos: the screen and its jump markers stay centred; photos cross-fade
   -------------------------------------------------------------------------- */
.v2 .films-sticky {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
}
.v2 .films-screen {
  position: relative;
  top: auto;
  transform: none;
}
.v2 .films-screen img,
.v2 .films-screen img.was-on,
.v2 .films-screen img.is-on {
  clip-path: none;
}
.v2 .films-screen img {
  opacity: 0;
  scale: 1.05;
  transition: none;
}
.v2 .films-screen img.was-on {
  z-index: 1;
  opacity: 1;
  scale: 1;
}
.v2 .films-screen img.is-on {
  z-index: 2;
  opacity: 1;
  scale: 1;
  transition: opacity 0.6s var(--ease-out), scale 1.2s var(--ease-out);
}
.v2 .films-screen:hover img.is-on {
  scale: 1.03;
}
.v2 .screen-num {
  overflow: hidden;
  font-size: clamp(3rem, 6.5vw, 6rem);
}
.v2 .screen-num span {
  display: inline-block;
}
.v2 .screen-num.is-rolling span {
  animation: num-roll 0.5s var(--ease-out);
}
@keyframes num-roll {
  from { transform: translateY(60%); opacity: 0; }
}
.v2 .screen-play {
  opacity: 1;
  translate: 0 0;
  padding: 10px 16px;
  background: rgba(17, 17, 17, 0.75);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.v2 .films-screen:hover .screen-play {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.v2 .films-ticks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.v2 .films-tick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.v2 .films-tick i {
  display: block;
  height: 2px;
  background: var(--line-strong);
  transform-origin: 0 50%;
  position: relative;
  overflow: hidden;
}
.v2 .films-tick i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.v2 .films-tick:hover {
  color: var(--ink-2);
}
.v2 .films-tick.is-active {
  color: var(--ink);
}
.v2 .films-tick.is-active i::after {
  transform: scaleX(1);
}
.v2 .story::before {
  display: none;
}
.v2 .story h3,
.v2 .story .story-meta {
  transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out);
}
.v2 .story:not(.is-active) h3 {
  opacity: 0.45;
}
.v2 .story.is-active h3 {
  translate: 0 0;
}
.v2 .story:not(.is-active) .story-meta {
  translate: 0 4px;
}

/* --------------------------------------------------------------------------
   Contact: colour portrait, tighter spacing
   -------------------------------------------------------------------------- */
.v2 .contact-v3 {
  padding: clamp(64px, 7vw, 110px) 0 clamp(48px, 5vw, 80px);
}
.v2 .contact-portrait {
  max-height: 66vh;
}
.v2 .contact-portrait img,
.v2 .contact-portrait:hover img {
  filter: none;
}

/* --------------------------------------------------------------------------
   Motion blur while the page glides to a section picked from a menu
   (portfolio.js sets the strength each frame; the old blur is switched off)
   -------------------------------------------------------------------------- */
.v2.nav-scrolling .scroll-blur-target {
  filter: none !important;
  will-change: auto !important;
}
.v2 .mb-on {
  filter: url(#mb-filter);
}

/* --------------------------------------------------------------------------
   No rounded corners anywhere on these pages: buttons, chips and frames are
   all clean boxes. The cursor dot is the one exception and stays round.
   -------------------------------------------------------------------------- */
.v2 *,
.v2 *::before,
.v2 *::after {
  border-radius: 0 !important;
}
.v2 .cursor-label .cursor-label__inner {
  border-radius: 50% !important;
}

/* --------------------------------------------------------------------------
   Phones and tablets (below 1024px). Everything here only applies on small
   screens, so the computer layout is untouched. Kept last so it wins over
   the computer rules above.
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  /* Galleries: each collection's name sits above its photos, which then
     get the full width */
  .v2 .collection {
    padding: clamp(40px, 7vw, 64px) 0;
  }
  .v2 .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .v2 .collection-side,
  .v2.header-visible .collection-side {
    position: static;
  }
  .v2 .collection-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title count" "latin count";
    align-items: end;
    column-gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .v2 .collection-title {
    grid-area: title;
    font-size: clamp(1.9rem, 6.5vw, 3rem);
  }
  .v2 .latin {
    grid-area: latin;
    margin-top: 4px;
    font-size: 1.9rem;
  }
  .v2 .collection-count {
    grid-area: count;
    margin: 0 0 4px;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  /* The animation wall is hidden on phones (main.css), so its heading goes too */
  .v2 .edit .fade-up.mt-5 {
    display: none !important;
  }
  /* The collections line scrolls sideways: fade its right edge so the cut
     reads as "more this way" */
  .v2 .col-line {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .v2 .collection-title {
    font-size: 1.85rem;
  }
  .v2 .latin {
    font-size: 1.7rem;
  }
  .v2 .collection-count {
    font-size: 10px;
  }
}

@media (max-width: 991px) {
  /* Without the sticky screen beside them, every story title reads at full
     strength (the dimming only marks the active story on computers) */
  .v2 .story:not(.is-active) h3 {
    opacity: 1;
  }
  .v2 .story:not(.is-active) .story-meta {
    translate: none;
  }
}
