@font-face {
  font-family: "Mango Grotesque";
  src: url("fonts/mango-grotesque.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --black-soft: #050505;
  --card: #0a0a0a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #ffffff;
  --quiet: #ffffff;
  --pad: clamp(18px, 2vw, 34px);
  --display: "Mango Grotesque", "Bebas Neue", "Archivo Black", Impact, sans-serif;
  --sans: "Figtree", "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100%;
  /* No rubber-band overscroll revealing a strip above/below the full-bleed app. */
  overscroll-behavior: none;
}

body {
  background: var(--black);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* track the real visible viewport on mobile (iOS Safari) */
  overflow: hidden;
  overscroll-behavior: none;
  text-rendering: geometricPrecision;
}

button,
a {
  color: inherit;
  cursor: pointer;
  font: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: #ffffff;
  color: #000000;
}

.experience {
  background: transparent;
  height: 100vh;
  inset: 0;
  overflow: hidden;
  position: fixed;
  /* The spiral owns all touch gestures here (one-finger spin, two-finger pinch);
     stop the browser doing its own pan/page-zoom over it. */
  touch-action: none;
  width: 100vw;
  z-index: 8;
}

.video-helix {
  height: 100%;
  inset: 0;
  opacity: 0;
  perspective: 1150px;
  perspective-origin: 50% 50%;
  position: absolute;
  transform-style: preserve-3d;
  transition: filter 900ms ease; /* opacity is driven by GSAP, not transitioned */
  width: 100%;
  z-index: 10;
}

.is-ready .video-helix {
  opacity: 1;
}

.helix-card {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  color: var(--text);
  cursor: pointer;
  height: auto;
  left: 50%;
  overflow: hidden;
  position: absolute;
  text-align: left;
  top: 50%;
  touch-action: none; /* the card is part of the spiral's pinch/spin surface */
  transform-origin: center center;
  transform-style: preserve-3d;
  width: clamp(205px, 23vw, 370px);
  will-change: transform, opacity;
}

.helix-card.is-transition-source {
  opacity: 0 !important;
}

.helix-card::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 74%, rgba(0, 0, 0, 0.18));
  content: "";
  inset: 0;
  opacity: var(--surface-opacity, 0.24);
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.helix-card::after {
  background: none;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.helix-card img,
.helix-card video {
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.018);
  width: 100%;
  z-index: 1;
  transition: filter 420ms ease, opacity 420ms ease;
}

.helix-card:hover img,
.helix-card:hover video {
  filter: saturate(1.04) contrast(1.07) brightness(1.08);
}

.helix-card img {
  filter: saturate(1.08) contrast(1.04);
}

.helix-card video {
  filter: saturate(1.12) contrast(1.05);
  opacity: 0.82;
}

.helix-card.is-loaded video {
  opacity: 1;
}

/* Frozen copy of the old image during a filter swap — stacked on top of the new
   media and faded out, so the card cross-fades and never goes blank. Inherits the
   .helix-card img sizing/filter rules above; just needs to sit on top. */
.helix-card__swap {
  pointer-events: none;
  z-index: 1;
  will-change: opacity;
}

.panel-close::after {
  background: currentColor;
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.45;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms ease;
  width: 100%;
}

.panel-close:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.grid-field,
.vignette {
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.grid-field {
  background-image: linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.22;
  z-index: 2;
}

.vignette {
  background: radial-gradient(circle at center, transparent 46%, rgba(0, 0, 0, 0.2) 78%, rgba(0, 0, 0, 0.46) 100%);
  z-index: 3;
}

/* Hovered card video blown up full-screen, heavily blurred, as ambient backdrop. */
.hover-bg {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 620ms ease;
  will-change: opacity;
  z-index: 1;
}

.hover-bg.is-active {
  opacity: 0.24;
}

.hover-bg__video {
  filter: blur(8px) saturate(1.03) brightness(0.62);
  height: 100%;
  object-fit: cover;
  transform: scale(1.07); /* hide the soft blurred edges */
  width: 100%;
}

/* Film grain confined to the top and bottom edges via a linear mask, sitting
   over the spiral. */
.grain-edges {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' exponent='2.6'/%3E%3CfeFuncG type='gamma' exponent='2.6'/%3E%3CfeFuncB type='gamma' exponent='2.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  inset: 0;
  mix-blend-mode: multiply; /* dark/black grain — darkens what it sits over */
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  z-index: 40;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 74%, #000 100%);
}

.services-grid span {
  border: 1px solid var(--line);
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 16px 14px;
  text-transform: uppercase;
}

.studio-panel,
.project-panel {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 60;
}

/* Project view: starts transparent so the spiral is visible spinning up and
   away on open, then the scrim fades in once it has cleared. */
.project-panel {
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
  transition: background 420ms ease, backdrop-filter 420ms ease;
}

.project-panel.is-scrim {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
}

.studio-panel.is-open,
.project-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.panel-close {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: fixed;
  right: var(--pad);
  text-transform: uppercase;
  top: calc(var(--pad) + env(safe-area-inset-top, 0px));
  z-index: 4;
}

.studio-panel__scroll {
  height: 100%;
  overflow-y: auto;
  padding: 120px max(var(--pad), 8vw) 90px;
}

.studio-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(90px, 0.24fr) minmax(0, 1fr);
  padding: 42px 0 80px;
}

.section-kicker {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.studio-section h1,
.studio-section h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 0.9;
  margin: 0;
}

.studio-section h1 {
  font-size: clamp(62px, 9vw, 156px);
}

.studio-section h2 {
  font-size: clamp(68px, 12vw, 190px);
  max-width: 920px;
}

.studio-section > p:not(.section-kicker) {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 28px);
  grid-column: 2;
  line-height: 1.25;
  margin: 0;
  max-width: 760px;
}

/* About / Contact — two separate full-screen modals. The word in Instrument
   Serif, the body in the thin spaced corner font. */
.studio-modal {
  align-items: center;
  background: #000;
  backdrop-filter: none;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 480ms ease, visibility 480ms ease;
  visibility: hidden;
  z-index: 60;
}

.studio-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.studio-modal__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: var(--pad);
  text-align: center;
  transform: translateY(14px);
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-modal.is-open .studio-modal__inner {
  transform: none;
}

.studio-contact-gif {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 48vh;
  object-fit: cover;
  width: min(72vw, 520px);
}

.studio-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(54px, 10vw, 132px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  text-transform: lowercase;
}

.studio-lede {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  gap: 12px;
  letter-spacing: 0.22em;
  line-height: 2.1;
  margin: 0;
  max-width: min(90vw, 600px);
  text-transform: uppercase;
}

.studio-lede a {
  color: var(--muted);
  transition: color 240ms ease;
}

.studio-lede a:hover {
  color: var(--text);
}

.services-grid {
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-section a {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  grid-column: 2;
  letter-spacing: 0.08em;
  margin-top: -12px;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-section .project-start {
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--text);
  display: inline-flex;
  justify-content: center;
  margin-top: 22px;
  max-width: 210px;
  padding: 15px 18px;
  transition: background 260ms ease, color 260ms ease;
}

.contact-section .project-start:hover {
  background: #fff;
  color: #000;
}

/* The hero video is the live clone lifted from the spiral, so the panel's own
   media block is unused. */
.project-panel__media {
  display: none;
}

/* Text sits centred in the lower band, below the centred hero video.
   No scrollbar — the content sizes to its natural height. */
.project-panel__content {
  bottom: clamp(22px, 4vh, 56px);
  display: grid;
  justify-items: center;
  left: 50%;
  max-width: min(92vw, 820px);
  opacity: 0;
  overflow: visible;
  padding: 0 var(--pad);
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 260ms ease;
  will-change: transform, opacity;
  width: 100%;
}

.project-panel.is-content-visible .project-panel__content {
  opacity: 1;
  pointer-events: auto;
}

.project-transition-video {
  background: #000;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: contrast(1.08);
  object-fit: contain; /* keep the media's native format — never crop */
  pointer-events: none;
  position: fixed;
  touch-action: none;
  will-change: transform, opacity, clip-path;
  z-index: 90;
  transition: scale 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-transition-image {
  user-select: none;
  -webkit-user-drag: none;
}

.project-panel h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 0.92;
  margin: 3px 0 8px;
  overflow-wrap: anywhere;
}

/* Keep every word intact: a title wraps only at spaces, never mid-word. */
.title-word {
  display: inline-block;
  white-space: nowrap;
}

.title-letter {
  display: inline-block;
  will-change: transform, opacity;
}

/* Work title — secondary line under the artist headline. Classic italic serif,
   quiet, shown only when it differs from the artist name. */
.project-panel__title {
  color: var(--muted);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(11px, 0.9vw, 14px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 2px 0 0;
}

.project-panel__gallery-status {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin: 12px 0 0;
}

/* Project-to-project navigation stays separate from the photo-series controls.
   The arrows are deliberately quiet, but have a generous hit area. */
.project-nav {
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  height: 56px;
  justify-content: center;
  line-height: 1;
  opacity: 0.72;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 220ms ease, color 220ms ease;
  width: 56px;
  z-index: 5;
}

.project-nav:hover,
.project-nav:focus-visible {
  color: #fff;
  opacity: 1;
}

.project-nav--prev { left: max(12px, var(--pad)); }
.project-nav--next { right: max(12px, var(--pad)); }

.project-gallery-nav {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  position: fixed;
  text-transform: uppercase;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.project-gallery-nav--prev { left: var(--pad); }
.project-gallery-nav--next { right: var(--pad); }
.project-gallery-nav[hidden] { display: none; }

/* Director — a single hairline credit, uppercase spaced, understated. */
.project-panel__director {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 18px 0 0;
  text-transform: uppercase;
}

.project-panel__description {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.32;
  margin: 0 0 24px;
  max-width: 620px;
}

.project-panel__meta {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  padding-top: 20px;
}

.project-panel__meta span {
  color: var(--quiet);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.project-panel__meta strong,
.project-panel__credits {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.project-panel__credits {
  list-style: none;
}

.project-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.project-panel__tags span {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 9px 10px;
  text-transform: uppercase;
}

.studio-open .video-helix {
  filter: blur(8px);
}

@media (max-width: 980px) {
  :root {
    --pad: 20px;
  }

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

  .project-panel {
    display: block;
    overflow-y: auto;
  }

  .project-panel__media,
  .project-panel__content {
    min-height: auto;
  }

  .project-panel__media {
    padding: 86px var(--pad) 0;
  }

  .project-panel__content {
    padding: 42px var(--pad) 80px;
  }
}

@media (max-width: 760px) {
  .helix-card {
    width: min(62vw, 260px);
  }

  .studio-panel__scroll {
    padding: 110px var(--pad) 70px;
  }

  .studio-section {
    display: block;
    padding: 34px 0 64px;
  }

  .studio-section h1,
  .studio-section h2,
  .studio-section > p:not(.section-kicker),
  .services-grid,
  .contact-section a {
    margin-top: 22px;
  }

  .studio-section h1 {
    font-size: clamp(54px, 18vw, 86px);
  }

  .studio-section h2 {
    font-size: clamp(58px, 20vw, 98px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-panel h2 { font-size: clamp(20px, 4.3vw, 30px); }

  .project-panel__meta {
    grid-template-columns: 1fr;
  }
}

/* Mobile performance: strip the expensive GPU effects (big blurred shadows on
   33 moving cards, backdrop blur, blend modes, the hover backdrop, the grain). */
@media (max-width: 560px) {
  .hover-bg,
  .grain-edges,
  .grid-field {
    display: none !important;
  }

  .helix-card {
    box-shadow: none;
    will-change: transform;
  }

  .helix-card::before {
    display: none; /* drop the per-card gradient overlay layer */
  }

  .studio-panel,
  .project-panel,
  .project-panel.is-scrim {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .project-panel.is-scrim {
    background: rgba(0, 0, 0, 0.92);
  }

  .studio-panel {
    background: rgba(0, 0, 0, 0.96);
  }

  .video-helix {
    perspective: 900px;
  }

  /* Smaller artist headline so the lifted hero never overlaps it on a phone. */
  .project-panel h2 { font-size: clamp(19px, 5.6vw, 28px); }

  .project-panel__content {
    bottom: clamp(28px, 7vh, 64px);
  }

  .project-gallery-nav {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    top: auto;
    transform: none;
  }

  .project-nav {
    bottom: calc(50% - 22px);
    top: auto;
    transform: none;
  }

  .project-nav--prev { left: 8px; }
  .project-nav--next { right: 8px; }

  /* Three items now share the top row — tighten the spacing so About / Argxnto /
     Contact never run into each other on a narrow phone. */
  .corner-nav__item {
    letter-spacing: 0.16em;
  }

  .corner-nav__brand {
    letter-spacing: 0.24em;
  }
}

/* Cover page (page de garde) — full-screen black splash with the ARGXNTO
   wordmark in Instrument Serif, on top of everything, then fades away. */
.cover-page {
  align-items: center;
  background: #000;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vh, 64px);
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 900ms ease;
  z-index: 200;
}

.cover-page.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.cover-page__word {
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 12vw, 160px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

/* PIN gate — four bottom-lined digit cells + a small hint under the wordmark. */
.cover-page__gate {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-page__pins {
  display: flex;
  gap: clamp(12px, 3vw, 22px);
}

.cover-page__pin {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 6vw, 52px);
  height: 1.5em;
  line-height: 1;
  outline: none;
  text-align: center;
  transition: border-color 240ms ease;
  width: 0.9em;
}

.cover-page__pin:focus {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.cover-page__hint {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.cover-page.is-error .cover-page__pins {
  animation: cover-shake 420ms ease;
}

.cover-page.is-error .cover-page__pin {
  border-bottom-color: rgba(255, 90, 90, 0.85);
}

.cover-page.is-error .cover-page__hint {
  color: rgba(255, 90, 90, 0.85);
}

@keyframes cover-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

/* Per-project loader — a tiny, unobtrusive signal over the local poster while
   the Vimeo iframe initializes. */
.vplayer-loader {
  align-items: center;
  background: transparent;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: opacity 260ms ease;
  z-index: 4;
}

.vplayer-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.vplayer-poster {
  height: 100%;
  inset: 0;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  transition: opacity 280ms ease;
  width: 100%;
  will-change: opacity;
  z-index: 2;
}

.vplayer-poster.is-hidden {
  opacity: 0;
}

.vplayer-loader__dot {
  animation: vimeo-loader-spin 900ms linear infinite;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  height: 15px;
  width: 15px;
}

.vplayer-loader__brand,
.vplayer-pause-logo span {
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(23px, 3.5vw, 46px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

@keyframes vimeo-loader-spin {
  to { transform: rotate(360deg); }
}

.vplayer-pause-logo {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(3px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 2;
}

.project-transition-video.is-paused .vplayer-pause-logo {
  opacity: 0.9;
  transform: none;
}

/* During loading the branded loader owns the centre; the pause mark takes over
   only after that loader has faded out. */
.vplayer-loader:not(.is-hidden) + .vplayer-pause-logo {
  opacity: 0 !important;
}

.project-nav-preview {
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 400;
  left: 0;
  letter-spacing: 0.004em;
  line-height: 0.92;
  max-width: min(46vw, 360px);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  text-overflow: ellipsis;
  top: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 180ms ease;
  visibility: hidden;
  white-space: nowrap;
  z-index: 120;
}

.project-nav-preview.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: none), (pointer: coarse) {
  .project-nav-preview {
    display: none !important;
  }
}

@keyframes argxnto-flicker {
  0%, 8%, 12%, 40%, 44%, 70%, 100% { opacity: 1; }
  9%, 42% { opacity: 0.18; }
  11% { opacity: 0.62; }
  41% { opacity: 0.34; }
  72%, 74% { opacity: 0.5; }
  73% { opacity: 1; }
}

/* Corner labels — thin spaced uppercase sans, one per corner. */
.corner-nav__item {
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  mix-blend-mode: difference; /* true negative: inverts against the video behind */
  opacity: 0;
  position: fixed;
  text-transform: uppercase;
  transition: color 240ms ease, opacity 700ms ease;
  z-index: 50;
}

.is-ready .corner-nav__item {
  opacity: 1;
}

.corner-nav__item:hover {
  color: var(--text);
}

/* Header row across the top: About (left) — Argxnto (centre) — Contact (right),
   so the bottom of the screen carries only the filters and the zoom cursor. */
.corner-nav__about {
  left: var(--pad);
  top: calc(var(--pad) + env(safe-area-inset-top, 0px));
}

.corner-nav__brand {
  left: 50%;
  letter-spacing: 0.34em;
  top: calc(var(--pad) + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
}

.corner-nav__contact {
  right: var(--pad);
  top: calc(var(--pad) + env(safe-area-inset-top, 0px));
}

/* Spiral filter — hairline pill of thin spaced labels, bottom-centre, sitting
   just above the zoom slider. */
.spiral-filter {
  bottom: calc(var(--pad) + 34px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 22px;
  left: 50%;
  opacity: 1; /* visible immediately — no intro fade on the bottom controls */
  position: fixed;
  transform: translateX(-50%);
  z-index: 50;
}

.spiral-filter__btn {
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  mix-blend-mode: difference; /* true negative: inverts against the video behind */
  padding: 4px 0;
  position: relative;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.spiral-filter__btn::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.5;
  position: absolute;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms ease;
  width: 100%;
}

.spiral-filter__btn:hover {
  color: var(--muted);
}

.spiral-filter__btn.is-active {
  color: var(--text);
}

/* The active filter is shown by its white colour alone — no underline. */
.spiral-filter__btn.is-active::after {
  transform: scaleX(0);
}

/* Zoom slider — minimalist hairline below the filters, controls spiral scale. */
.spiral-zoom {
  bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  mix-blend-mode: difference; /* true negative: inverts against the video behind */
  opacity: 1; /* visible immediately — no intro fade on the bottom controls */
  position: fixed;
  transform: translateX(-50%);
  width: 184px;
  z-index: 50;
}

.spiral-zoom__range {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  display: block;
  height: 16px;
  margin: 0;
  width: 100%;
}

.spiral-zoom__range::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.22);
  height: 1px;
}

.spiral-zoom__range::-moz-range-track {
  background: rgba(255, 255, 255, 0.22);
  height: 1px;
}

.spiral-zoom__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  background: var(--black);
  border: 1px solid var(--text);
  height: 9px;
  margin-top: -4px;
  transform: rotate(45deg);
  width: 9px;
}

.spiral-zoom__range::-moz-range-thumb {
  background: var(--black);
  border: 1px solid var(--text);
  border-radius: 0;
  height: 9px;
  width: 9px;
}

/* Touch screens: a big finger-friendly zoom slider (wider, tall hit area, large
   thumb). Placed after the base rules above so it wins the cascade. */
@media (max-width: 560px) {
  /* The slider's hit area is tall (44px) on touch, so lift the filters well clear
     of it — more breathing room between the cursor and the filter labels. */
  .spiral-filter {
    bottom: calc(var(--pad) + 80px + env(safe-area-inset-bottom, 0px));
  }

  .spiral-zoom {
    width: min(74vw, 300px);
  }

  .spiral-zoom__range {
    height: 44px; /* tall invisible hit area, easy to grab */
  }

  .spiral-zoom__range::-webkit-slider-runnable-track {
    height: 2px;
  }

  .spiral-zoom__range::-moz-range-track {
    height: 2px;
  }

  .spiral-zoom__range::-webkit-slider-thumb {
    height: 22px;
    width: 22px;
    margin-top: -10px;
  }

  .spiral-zoom__range::-moz-range-thumb {
    height: 22px;
    width: 22px;
  }
}

/* Overlays step aside while a project or the studio panel is open. */
.project-open .corner-nav__item,
.studio-open .corner-nav__item,
.project-open .spiral-filter,
.studio-open .spiral-filter,
.project-open .spiral-zoom,
.studio-open .spiral-zoom,
.studio-open .spiral-zoom {
  opacity: 0;
  pointer-events: none;
}

/* Custom Vimeo controls — minimalist, hairline, matching the charte. */
.vplayer-surface {
  inset: 0;
  position: absolute;
  z-index: 1;
}

.vplayer-controls {
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 100%);
  bottom: 0;
  display: flex;
  gap: 14px;
  left: 0;
  opacity: 0;
  padding: 26px 16px 12px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
  z-index: 3;
}

.project-transition-video.is-controls .vplayer-controls,
.project-transition-video.is-paused .vplayer-controls {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.vplayer-btn {
  color: var(--text);
  flex: 0 0 auto;
  height: 20px;
  opacity: 0.78;
  transition: opacity 200ms ease;
  width: 20px;
}

.vplayer-btn:hover {
  opacity: 1;
}

.vplayer-btn svg {
  display: block;
  height: 100%;
  width: 100%;
}

.vplayer-time {
  color: var(--muted);
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.vplayer-progress {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  height: 16px;
  position: relative;
  touch-action: none;
}

.vplayer-progress__track {
  background: rgba(255, 255, 255, 0.22);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
}

.vplayer-progress__fill {
  background: var(--text);
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 0;
}

.vplayer-progress__handle {
  background: var(--black);
  border: 1px solid var(--text);
  height: 8px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 200ms ease;
  width: 8px;
}

.vplayer-progress:hover .vplayer-progress__handle,
.vplayer-progress:active .vplayer-progress__handle {
  opacity: 1;
}

/* Touch: bigger, finger-friendly video controls (larger icons, taller scrubber,
   roomier hit areas). */
@media (max-width: 560px) {
  .vplayer-controls {
    gap: 18px;
    padding: 34px 20px 18px;
  }

  .vplayer-btn {
    height: 30px;
    opacity: 0.9;
    width: 30px;
  }

  .vplayer-time {
    font-size: 13px;
  }

  .vplayer-progress {
    height: 28px;
  }

  .vplayer-progress__track,
  .vplayer-progress__fill {
    height: 2px;
  }

  .vplayer-progress__handle {
    height: 13px;
    opacity: 1;
    width: 13px;
  }
}

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