/* =========================================================
   OLAVO — Designer & Creative Director
   A quiet, editorial portfolio.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --bg: #f7f4ee;
  --muted: rgba(17, 17, 17, 0.52);
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.34);
  --grain-opacity: 0.055;
  --grain-blend: multiply;
  --sel-bg: rgba(68, 48, 0, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-micro: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: 16px;
  --gap: 8px;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --fs-display: clamp(3.4rem, 6.26vw, 9rem);
  --fs-40: clamp(2.4rem, 2.78vw, 4rem);
  --fs-24: clamp(1.6rem, 1.67vw, 2.4rem);
  --fs-18: clamp(1.6rem, 1.25vw, 1.8rem);
  --fs-13: 1.3rem;
  --fs-12: 1.2rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 10px;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.35;
  transition: background-color 1.1s linear, color 1.1s linear;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../img/paper-bg.jpg");
  background-size: 286px;
  background-repeat: repeat;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  transition: opacity 1.1s linear;
}

::selection {
  color: var(--ink);
  background: var(--sel-bg);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
ul,
ol {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  font-size: inherit;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
.menu__close:focus-visible,
.lightbox__close:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font: 400 1.2rem/1 var(--font-micro);
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
.display--tight {
  line-height: 0.94;
}
.t-40 {
  font-size: var(--fs-40);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-24 {
  font-size: var(--fs-24);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.t-18 {
  font-size: var(--fs-18);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.t-13 {
  font-size: var(--fs-13);
  line-height: 1.35;
}
.micro {
  font-family: var(--font-micro);
  font-size: var(--fs-12);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.italic {
  font-style: italic;
}

/* ---------- Layout ---------- */
.container {
  width: calc(100% - var(--pad) * 2);
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}
.col-1 { grid-column: 1; }
.col-2 { grid-column: 2; }
.col-3 { grid-column: 3; }
.col-4 { grid-column: 4; }
.col-5 { grid-column: 5; }
.col-6 { grid-column: 6; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-full { grid-column: 1 / -1; }

.section {
  padding-block: clamp(80px, 12vw, 180px);
}
.section--tight {
  padding-block: clamp(56px, 7vw, 110px);
}
.rule {
  border-top: 1px solid var(--line);
}

/* ---------- Link hover ---------- */
.link-line {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
}
.link-line:hover::after,
.link-line.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Arrow button */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.arrow-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease);
}
.arrow-link:hover svg {
  transform: translate(3px, -3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--pad);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  width: 100%;
}
.h-logo {
  grid-column: 1 / 4;
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}
.h-logo .logo-top {
  display: block;
  overflow: hidden;
}
.h-logo .logo-top svg {
  width: 34px;
  height: 34px;
  display: block;
  color: currentColor;
}
.h-logo .logo-top span {
  display: block;
  transition: transform 0.5s var(--ease);
}
.h-logo .logo-bottom {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: opacity 0.3s ease;
}
.h-sig {
  grid-column: 5 / 7;
  justify-self: center;
  width: 44px;
  color: var(--ink);
  transition: opacity 0.4s ease;
}
.h-sig svg {
  width: 100%;
  height: auto;
  display: block;
}
.h-sig svg {
  width: 100%;
  height: auto;
}
.h-nav {
  grid-column: 7 / 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.h-nav button {
  position: relative;
  overflow: hidden;
  height: 13px;
  padding: 0;
}
.h-nav .nav-inner {
  display: block;
  transition: transform 0.45s var(--ease);
}
.h-nav button span {
  display: block;
  line-height: 13px;
}
.h-nav button:hover .nav-inner {
  transform: translateY(-13px);
}
.h-time {
  grid-column: 10 / 12;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.h-time .time-label {
  color: var(--muted);
}
.h-time .time-value {
  font-variant-numeric: tabular-nums;
}
.h-clock {
  grid-column: 12 / 13;
  justify-self: end;
  width: 44px;
  height: 44px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.4s ease, transform 0.5s var(--ease);
}
.h-clock:hover {
  border-color: var(--ink);
  transform: scale(1.06);
}
.h-clock .hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 1px;
  background: currentColor;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
}
.h-clock .hand--h {
  height: 11px;
}
.h-clock .hand--m {
  height: 15px;
}
.h-clock .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

/* mobile header */
.h-mobile-nav {
  display: none;
}

/* ---------- Time travel ---------- */
.time-panel {
  position: fixed;
  z-index: 150;
  top: calc(var(--header-h) + 8px);
  right: var(--pad);
  width: 300px;
  padding: 18px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}
.time-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.time-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.time-panel__value {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.time-panel input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: none;
  cursor: ew-resize;
}
.time-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--line-strong);
}
.time-panel input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
}
.time-panel input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--line-strong);
}
.time-panel input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}
.time-panel__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
}
.time-panel__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.time-panel__presets button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-micro);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.time-panel__presets button:hover,
.time-panel__presets button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.time-panel__reset {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-micro);
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 8px) var(--pad) 18px;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-in-out), visibility 0.85s;
}
.menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
}
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/paper-bg.jpg") repeat;
  background-size: 286px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu__close svg {
  width: 13px;
  height: 13px;
  transition: transform 0.5s var(--ease);
}
.menu__close:hover svg {
  transform: rotate(90deg);
}
.menu__body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  padding-block: 40px 24px;
  position: relative;
  z-index: 2;
}
.menu__nav {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.menu__nav a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 7.4vw, 10rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: var(--muted);
  transition: color 0.4s ease, transform 0.6s var(--ease);
  overflow: hidden;
}
.menu__nav a span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.menu.is-open .menu__nav a span {
  transform: none;
}
.menu__nav a:hover,
.menu__nav a.is-active {
  color: var(--ink);
}
.menu__nav a:hover {
  transform: translateX(10px);
}
.menu__nav a .idx {
  font-family: var(--font-micro);
  font-size: 1.1rem;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 8px;
  color: var(--muted);
}
.menu__side {
  grid-column: 8 / 11;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: end;
  padding-bottom: 10px;
}
.menu__side h4 {
  color: var(--muted);
  margin-bottom: 8px;
}
.menu__projects {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.menu__projects a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.menu__projects a:hover {
  border-bottom-color: var(--line-strong);
}
.menu__projects .yr {
  color: var(--muted);
}
.menu__preview {
  grid-column: 11 / 13;
  align-self: end;
  aspect-ratio: 396 / 496;
  overflow: hidden;
  position: relative;
  background: var(--line);
}
.menu__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 1.2s var(--ease);
}
.menu__preview img.is-active {
  opacity: 1;
  transform: none;
}
.menu__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.menu__socials {
  display: flex;
  gap: 18px;
}
.menu__foot .time {
  font-variant-numeric: tabular-nums;
}
.menu__foot-time {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu__time {
  display: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 64px var(--pad) 18px;
  border-top: 1px solid var(--line);
  margin-top: clamp(80px, 10vw, 160px);
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}
.footer__claim {
  grid-column: 1 / 7;
}
.footer__claim .big {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.2vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}
.footer__mail {
  grid-column: 8 / 13;
  justify-self: end;
  text-align: right;
}
.footer__mail a {
  font-size: var(--fs-24);
  letter-spacing: -0.02em;
}
.footer__mid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-top: 56px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer__col--1 { grid-column: 1 / 4; }
.footer__col--2 { grid-column: 5 / 7; }
.footer__col--3 { grid-column: 8 / 10; }
.footer__col--4 { grid-column: 11 / 13; }
.footer__col h4 {
  color: var(--muted);
  margin-bottom: 6px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  color: var(--muted);
}
.footer__bottom .time {
  font-variant-numeric: tabular-nums;
}

/* ---------- Cursor ---------- */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor {
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink);
  /* thin halo in the background colour: keeps the ring readable over photos
     while the border itself follows the day / night ink */
  box-shadow: 0 0 0 1px var(--bg);
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    opacity 0.3s ease, background-color 0.3s ease, border-color 0.6s ease,
    box-shadow 0.6s ease;
}
.cursor.is-visible {
  opacity: 1;
}
.cursor.is-hover {
  width: 56px;
  height: 56px;
  /* Translucent fill: the ring grows but keeps the small dot visible inside.
     color-mix keeps it tied to --ink, so it follows the day / night theme. */
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 38%, transparent);
}
/* While the ring is filled, the dot gets the same hairlines-in-background
   treatment as the ring border, so it never sinks into the fill */
.cursor.is-hover ~ .cursor-dot {
  box-shadow: 0 0 0 1px var(--bg);
}
.cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.6s ease;
}
.cursor-dot.is-visible {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button {
  cursor: none;
}

/* ---------- Scroll hint cursor (first visit) ---------- */
.cursor-hint {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: transform;
}
.cursor-hint.is-visible {
  opacity: 1;
}
.cursor-hint__item {
  display: block;
  line-height: 0;
}
.cursor-hint__item--down {
  width: 75px;
  height: 120px;
}
.cursor-hint__item--text {
  /* The "SCROLL" artwork sits in the middle-right of its 800x800 canvas,
     with the word near the top and a trail line hanging below it. Taking
     it out of the flow keeps the mouse centred on the pointer; the
     artwork is then pulled across so the word lands next to the mouse. */
  position: absolute;
  left: calc(100% - 109px);
  top: -10px;
  width: 224px;
  height: 224px;
  margin: 0;
}
.cursor-hint svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* While the hint is up it replaces the ring + dot entirely */
html.has-scroll-hint .cursor,
html.has-scroll-hint .cursor-dot {
  opacity: 0 !important;
}

/* ---------- Veil / page transition ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  overflow: hidden;
  pointer-events: none;
}
.veil__block {
  flex: 0 0 20%;
  height: 100%;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-in-out);
}
.veil.is-covering .veil__block {
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.veil.is-revealing .veil__block {
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 90ms + 60ms);
}
.veil.is-done .veil__block {
  transform: translateY(-100%);
}
@media (max-width: 767px) {
  .veil__block { flex-basis: 33.3333%; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-mask] {
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-reveal-mask] > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal-mask].is-in > * {
  transform: none;
}
[data-parallax] {
  will-change: transform;
}

/* ---------- Home gallery ---------- */
.home {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding-top: var(--header-h);
}
.gallery-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  padding: 8px var(--pad) 0;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s var(--ease) 0.5s;
}
.home.is-ready .gallery-meta {
  opacity: 1;
  transform: none;
}
/* The left-hand label is gone: keep the hint centred and the counter right */
.gallery-meta .hint {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.gallery-meta [data-gallery-count] {
  grid-column: 3;
  justify-self: end;
}
.gallery-meta .hint.is-hidden {
  opacity: 0;
}
.gallery-meta .hint svg {
  width: 26px;
  height: 8px;
}

.gallery {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  padding: 0 var(--pad) var(--pad);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  cursor: grab;
  flex: 0 0 auto;
  max-height: 100%;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.gallery.is-dragging * {
  pointer-events: none;
}
.gallery-card {
  flex: 0 0 auto;
  width: calc(28.74% - var(--gap));
  max-width: 560px;
  min-width: 0;
  position: relative;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.home.is-ready .gallery-card {
  opacity: 1;
  transform: none;
}
.gallery-card__name {
  display: block;
  margin-bottom: 13px;
  overflow: hidden;
  color: var(--ink);
}
.gallery-card__name .name-inner {
  display: block;
  position: relative;
  overflow: hidden;
  height: 13px;
}
.gallery-card__name .name-inner span {
  display: block;
  line-height: 13px;
  transition: transform 0.5s var(--ease);
}
.gallery-card__name .name-inner span:last-child {
  position: absolute;
  top: 100%;
  left: 0;
}
.gallery-card:hover .name-inner span {
  transform: translateY(-13px);
}
.gallery-card__img {
  display: block;
  aspect-ratio: 396 / 496;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}
.gallery-card__img img,
.gallery-card__img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.8s ease;
}
.gallery-card:hover .gallery-card__img img,
.gallery-card:hover .gallery-card__img video {
  transform: scale(1.07);
}
.gallery-card__index {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.gallery-card:hover .gallery-card__index {
  opacity: 1;
  transform: none;
}
/* Play seal on the cards that open a film: same component as the case tiles,
   pinned to the top-right corner of the still */
/* Play seal on the cards that open a film sits in the top-right corner */
.gallery-card__img .case-figure__play {
  top: 12px;
  right: 12px;
  bottom: auto;
}
/* ...so the big title keeps a clear column for it on those cards */
.gallery-card--film .gallery-card__caption {
  right: 58px;
}
.gallery-card:hover .case-figure__play,
.gallery-card:focus-visible .case-figure__play {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
}
/* Soft veil in the page colour, so the display type stays readable on any
   photograph and still swaps with the day / night theme */
.gallery-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 74%, transparent),
    color-mix(in srgb, var(--bg) 44%, transparent) 44%,
    color-mix(in srgb, var(--bg) 14%, transparent) 68%,
    transparent 86%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-card:hover .gallery-card__img::after,
.gallery-card:focus-visible .gallery-card__img::after {
  opacity: 1;
}
/* Title drawn over the still on hover, in the site's display type */
.gallery-card__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.6vw, 6.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  text-wrap: balance;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.7s var(--ease),
    color 1.1s linear;
}
.gallery-card:hover .gallery-card__caption,
.gallery-card:focus-visible .gallery-card__caption {
  opacity: 1;
  transform: none;
}
.gallery-progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 4px;
  height: 1px;
  background: var(--line);
  z-index: 5;
}
.gallery-progress__bar {
  height: 100%;
  width: 0;
  background: var(--ink);
  transform-origin: left;
  transition: width 0.15s linear;
}

/* ---------- Archive ---------- */
.archive-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 16px);
  overflow: hidden;
}
.archive-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  padding: 0 var(--pad);
}
.archive-head .display {
  grid-column: 1 / 8;
}
.archive-head .desc {
  grid-column: 9 / 12;
  max-width: 220px;
  margin-bottom: 6px;
}
.archive-head .desc p + p {
  margin-top: 10px;
}
.archive-count {
  grid-column: 12 / 13;
  justify-self: end;
  text-align: right;
  color: var(--muted);
}
.archive-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  padding-bottom: var(--pad);
  margin-top: 48px;
  position: relative;
}
.archive-rows {
  --marquee-item-w: clamp(148px, 13.2vw, 268px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: 100%;
  min-height: 0;
}
.marquee-row {
  position: relative;
}
.marquee {
  width: 100%;
  overflow: hidden;
  padding-bottom: 4px;
}
.marquee__track {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
}
.marquee__item {
  flex: 0 0 auto;
  width: var(--marquee-item-w);
  position: relative;
}
.archive-arrow {
  --arrow-size: 44px;
  position: absolute;
  top: calc(var(--marquee-item-w) * 496 / 396 / 2 - var(--arrow-size) / 2);
  left: 0;
  z-index: 3;
  width: var(--arrow-size);
  height: var(--arrow-size);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.archive-arrow--prev {
  left: 10px;
}
.archive-arrow--next {
  left: auto;
  right: 10px;
}
.archive-arrow svg {
  width: 20px;
  height: 20px;
}
.archive-arrow:hover {
  border-color: var(--ink);
}
.archive-arrow.is-pulsing {
  animation: archive-arrow-pulse 1.8s var(--ease);
}
@keyframes archive-arrow-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(0.86); }
  100% { transform: scale(1); }
}
.marquee__item .img-wrap {
  display: block;
  aspect-ratio: 396 / 496;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}
.marquee__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s ease;
}
.marquee__item:hover img {
  transform: scale(1.05);
}
.marquee__cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  white-space: nowrap;
}
.marquee__cap span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marquee__cap span:last-child {
  flex: 0 0 auto;
}
.marquee__item:hover .marquee__cap {
  opacity: 1;
  transform: none;
}
.archive-note {
  padding: 18px var(--pad) 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* ---------- About ---------- */
.page-top {
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
}
.about-hero {
  padding-right: var(--pad);
  padding-left: var(--pad);
  padding-bottom: clamp(90px, 14vw, 210px);
}
.about-hero .display {
  max-width: 1180px;
}
.about-hero .display span {
  display: block;
}
.about-hero__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.about-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad);
}
.about-media {
  grid-column: 1 / 6;
  position: relative;
}
.about-media__sticky {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.about-media__main {
  width: 68%;
  aspect-ratio: 885 / 1110;
  overflow: hidden;
  position: relative;
}
.about-media__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-media__small {
  width: 38%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 8%;
  border: 6px solid var(--bg);
  background: var(--bg);
}
.about-media__small img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding-top: 8px;
}
.about-block h2 {
  color: var(--muted);
  margin-bottom: 12px;
}
.about-block p + p {
  margin-top: 14px;
}
.about-services {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.about-services li {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.about-services .n {
  color: var(--muted);
  min-width: 24px;
}
.about-values {
  padding: clamp(90px, 13vw, 200px) var(--pad) 0;
}
.about-values__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.about-values__head .display {
  grid-column: 1 / 9;
  font-size: clamp(3rem, 5.1vw, 7.2rem);
}
.about-values__head .desc {
  grid-column: 10 / 13;
  color: var(--muted);
  padding-bottom: 8px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.value-card {
  position: relative;
}
.value-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}
.value-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.01);
  transition: filter 0.8s ease, transform 1.2s var(--ease);
}
.value-card:hover .value-card__img img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.value-card__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.value-card__cap .n {
  color: var(--muted);
}
.value-card__text {
  margin-top: 8px;
  color: var(--muted);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
.value-card:hover .value-card__text,
.value-card.is-open .value-card__text {
  opacity: 1;
  transform: none;
}

.about-process {
  padding: clamp(100px, 14vw, 220px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.about-process__head {
  grid-column: 1 / 6;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.about-process__head .display {
  font-size: clamp(2.8rem, 4.4vw, 6rem);
  max-width: 15ch;
}
.about-process__head .micro {
  margin-top: 24px;
  color: var(--muted);
}
.process-list {
  grid-column: 7 / 13;
  border-top: 1px solid var(--line);
}
.process-item {
  border-bottom: 1px solid var(--line);
}
.process-item__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  transition: padding 0.4s var(--ease);
}
.process-item__btn .n {
  color: var(--muted);
  min-width: 28px;
}
.process-item__btn .title {
  flex: 1;
  font-size: var(--fs-24);
  letter-spacing: -0.015em;
}
.process-item__btn .plus {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  align-self: center;
}
.process-item__btn .plus::before,
.process-item__btn .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.process-item__btn .plus::before {
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
}
.process-item__btn .plus::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 12px;
}
.process-item.is-open .plus::after {
  transform: scaleY(0);
}
.process-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.process-item.is-open .process-item__panel {
  grid-template-rows: 1fr;
}
.process-item__panel > div {
  overflow: hidden;
}
.process-item__panel p {
  padding: 0 0 24px 44px;
  max-width: 46ch;
  color: var(--muted);
}
.about-network {
  margin-top: clamp(110px, 15vw, 240px);
  padding: clamp(60px, 8vw, 120px) var(--pad);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: end;
}
.about-network .display {
  grid-column: 1 / 10;
  font-size: clamp(3.4rem, 6vw, 9rem);
}
.about-network .side {
  grid-column: 11 / 13;
  justify-self: end;
  text-align: right;
}

/* ---------- Contact ---------- */
.contact-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px));
}
.contact-hero {
  padding: 0 var(--pad);
}
.contact-hero .kicker {
  color: var(--muted);
  margin-bottom: 26px;
}
.contact-hero .display {
  max-width: 1200px;
}
.contact-hero .mail {
  display: inline-block;
  margin-top: 48px;
  font-size: clamp(2.2rem, 3.6vw, 5rem);
  letter-spacing: -0.035em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: clamp(80px, 11vw, 170px) var(--pad) 0;
}
.contact-form {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  transition: border-color 0.3s ease;
}
.field:focus-within {
  border-color: var(--ink);
}
.field label {
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-18);
  line-height: 1.3;
  outline: none;
  resize: none;
  appearance: none;
}
.field select {
  cursor: pointer;
}
.field textarea {
  min-height: 96px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  font-family: var(--font-micro);
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.form-note {
  color: var(--muted);
  max-width: 40ch;
}
.contact-aside {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: clamp(0px, 3vw, 50px);
}
.contact-aside__block h3 {
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-aside__block p + p {
  margin-top: 6px;
}
.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-socials a {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.contact-socials a span:last-child {
  color: var(--muted);
}
.contact-map {
  margin-top: clamp(90px, 12vw, 180px);
  height: 46vh;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.contact-map__label {
  position: absolute;
  left: var(--pad);
  bottom: 18px;
  display: flex;
  gap: 16px;
  color: #fff;
  mix-blend-mode: difference;
}

/* ---------- Case pages ---------- */
.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  padding-top: var(--header-h);
}
.case-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--pad) var(--pad);
  min-width: 0;
}
.case-hero__top {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
/* Counter + link back to the section index */
.case-hero__project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.case-hero__title {
  font-size: clamp(3.2rem, 6.1vw, 8.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  max-width: 10ch;
  margin-top: auto;
  margin-bottom: 32px;
}
.case-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.case-hero__meta h4 {
  color: var(--muted);
  margin-bottom: 4px;
}
.case-hero__media {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}
.case-hero__media img,
.case-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hero itself opens the film in the same overlay as the tiles */
.case-hero__media--play {
  display: block;
  color: inherit;
  cursor: pointer;
}
.case-hero__media--play img {
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.case-hero__media--play:hover img,
.case-hero__media--play:focus-visible img {
  transform: scale(1.05);
}
.case-hero__media--play .case-figure__play {
  width: 44px;
  height: 44px;
  left: 16px;
  right: auto;
  bottom: 16px;
}
.case-hero__media--play .case-figure__play svg {
  width: 13px;
  height: 13px;
}
.case-hero__media--play:hover .case-figure__play,
.case-hero__media--play:focus-visible .case-figure__play {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
}
.case-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: clamp(80px, 11vw, 170px) var(--pad) 0;
}
.case-intro__lead {
  grid-column: 1 / 8;
  font-size: clamp(2rem, 2.7vw, 3.8rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.case-intro__lead p + p {
  margin-top: 22px;
  color: var(--muted);
}
.case-credits {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  padding-top: 6px;
}
.case-credits__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.case-credits__row span:first-child {
  color: var(--muted);
}
.case-gallery {
  padding: clamp(80px, 10vw, 150px) var(--pad) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 90px);
}
.case-figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-figure .img-wrap {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}
.case-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.case-figure--wide .img-wrap {
  aspect-ratio: 16 / 9;
}
.case-figure--tall {
  width: 62%;
  margin-left: auto;
}
.case-figure--tall .img-wrap {
  aspect-ratio: 4 / 5;
}
.case-figure--offset {
  width: 56%;
}
.case-figure--offset .img-wrap {
  aspect-ratio: 1 / 1;
}

/* Empty slot used to complete a row in three-column galleries */
.case-figure--empty .img-wrap {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
  display: grid;
  place-items: center;
}
.case-figure--empty .img-wrap::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

/* Playable tile: still poster, small zoom on hover/focus, opens the video */
.case-figure--play .img-wrap {
  cursor: pointer;
}
.case-figure--play .case-figure__link {
  display: block;
  width: 100%;
}
.case-figure--play .img-wrap img,
.case-figure--play .img-wrap video {
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), opacity 0.6s ease;
}
.case-figure--play:hover .img-wrap img,
.case-figure--play:hover .img-wrap video,
.case-figure--play:focus-within .img-wrap img,
.case-figure--play:focus-within .img-wrap video {
  transform: scale(1.07);
}
.case-figure--play video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Still frame stacked over the clip: fades out while it plays and comes
   back, slowly, a beat after the pointer leaves */
.case-figure__poster {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  transition: transform 1.2s var(--ease), opacity 0.6s ease;
}
.case-figure--play .is-playing .case-figure__poster {
  opacity: 0;
}
.case-figure__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  pointer-events: none;
  transition: transform 0.5s var(--ease), background 0.3s ease,
    border-color 0.3s ease;
}
.case-figure__play svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}
.case-figure--play:hover .case-figure__play,
.case-figure--play:focus-within .case-figure__play {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
}

.case-next {
  margin-top: clamp(100px, 14vw, 220px);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: block;
}
.case-next__inner {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 110px) var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.case-next__label {
  color: var(--muted);
  margin-bottom: 14px;
}
.case-next__name {
  font-size: clamp(3.4rem, 7vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  max-width: 12ch;
}
.case-next__arrow {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--ease);
}
.case-next:hover .case-next__arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}
.case-next__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.case-next__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.case-next:hover .case-next__bg {
  opacity: 0.16;
}
.case-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad) 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 10, 10, 0.94);
  color: #f4f0e8;
  display: flex;
  flex-direction: column;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lightbox__close svg {
  width: 14px;
  height: 14px;
}
.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 18px 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.lightbox__stage img.is-loaded {
  opacity: 1;
  transform: none;
}
.lightbox__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.lightbox__nav {
  display: flex;
  gap: 8px;
}
.lightbox__nav button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}
.lightbox__nav button:hover {
  background: #f4f0e8;
  color: #111;
}

/* ---------- Video overlay ---------- */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(10, 10, 10, 0.96);
  color: #f4f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.video-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.video-overlay__close {
  position: absolute;
  top: 18px;
  right: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4f0e8;
  z-index: 2;
}
.video-overlay__close svg {
  width: 14px;
  height: 14px;
}
.video-overlay__stage {
  /* Keep a true 16:9 box that fits both the width and the height of the screen */
  width: min(92vw, 1400px, calc(80vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-overlay__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--pad) 40px;
}
.error-page .display {
  font-size: clamp(6rem, 16vw, 22rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-card {
    width: calc(36.6% - var(--gap));
  }
  .about-media {
    grid-column: 1 / 7;
  }
  .about-copy {
    grid-column: 7 / 13;
  }
  .case-hero__title {
    font-size: clamp(3.2rem, 7vw, 6rem);
  }
}

@media (max-width: 767px) {
  :root {
    --pad: 12px;
    --header-h: 52px;
  }
  .display {
    font-size: clamp(3.4rem, 12.5vw, 5.6rem);
    line-height: 1.02;
  }
  .t-40 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  .t-24 {
    font-size: 1.8rem;
  }
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }
  .h-logo {
    grid-column: 1;
  }
  .h-logo .logo-bottom {
    display: none;
  }
  .h-sig,
  .h-time,
  .h-clock {
    display: none;
  }
  .h-nav {
    display: none;
  }
  .h-mobile-nav {
    display: flex;
    grid-column: 3;
    justify-self: end;
    gap: 22px;
    align-items: center;
  }
  .h-mobile-nav button {
    height: 13px;
    overflow: hidden;
  }
  .h-mobile-nav button span {
    display: block;
    line-height: 13px;
  }

  .gallery-wrap {
    padding-top: var(--header-h);
  }
  .gallery-meta {
    display: none;
  }
  .gallery-meta .hint {
    display: none;
  }
  .gallery {
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-card {
    width: 83%;
  }
  .gallery-card__name {
    margin-bottom: 6px;
  }
  .gallery-progress {
    left: 12px;
    right: 12px;
  }

  .archive-page {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 10px);
  }
  .archive-head {
    grid-template-columns: repeat(6, 1fr);
  }
  .archive-head .display {
    grid-column: 1 / 7;
  }
  .archive-head .desc {
    grid-column: 1 / 5;
    margin-top: 26px;
    max-width: none;
  }
  .archive-count {
    grid-column: 5 / 7;
    align-self: end;
  }
  .archive-stage {
    margin-top: 24px;
  }
  .archive-rows {
    --marquee-item-w: 36vw;
  }
  .archive-arrow {
    --arrow-size: 36px;
  }
  .archive-arrow svg {
    width: 17px;
    height: 17px;
  }
  .archive-arrow--prev {
    left: 8px;
  }
  .archive-arrow--next {
    right: 8px;
  }
  .archive-note {
    padding-top: 12px;
  }

  .page-top {
    padding-top: calc(var(--header-h) + 16px);
  }
  .about-hero {
    padding-bottom: 70px;
  }
  .about-hero .display span {
    display: inline;
  }
  .about-hero__foot {
    margin-top: 26px;
    flex-direction: column;
    gap: 6px;
  }
  .about-intro {
    grid-template-columns: repeat(6, 1fr);
  }
  .about-media {
    grid-column: 1 / 7;
    margin-bottom: 44px;
  }
  .about-media__sticky {
    position: relative;
    top: 0;
  }
  .about-media__main {
    width: 78%;
  }
  .about-media__small {
    width: 42%;
    bottom: 6%;
  }
  .about-copy {
    grid-column: 1 / 7;
    gap: 34px;
  }
  .about-values {
    padding-top: 80px;
  }
  .about-values__head {
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 30px;
  }
  .about-values__head .display {
    grid-column: 1 / 7;
  }
  .about-values__head .desc {
    grid-column: 1 / 7;
    margin-top: 18px;
    padding: 0;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .value-card__img {
    aspect-ratio: 4 / 4.6;
  }
  .value-card__text {
    opacity: 1;
    transform: none;
  }
  .about-process {
    grid-template-columns: repeat(6, 1fr);
    padding-top: 90px;
  }
  .about-process__head {
    grid-column: 1 / 7;
    position: relative;
    top: 0;
    margin-bottom: 34px;
  }
  .process-list {
    grid-column: 1 / 7;
  }
  .process-item__btn {
    padding: 14px 0;
  }
  .process-item__panel p {
    padding-left: 0;
  }
  .about-network {
    grid-template-columns: repeat(6, 1fr);
    margin-top: 100px;
  }
  .about-network .display {
    grid-column: 1 / 7;
  }
  .about-network .side {
    grid-column: 1 / 7;
    justify-self: start;
    text-align: left;
    margin-top: 24px;
  }

  .contact-page {
    padding-top: calc(var(--header-h) + 30px);
  }
  .contact-hero .mail {
    margin-top: 30px;
  }
  .contact-grid {
    grid-template-columns: repeat(6, 1fr);
    padding-top: 70px;
  }
  .contact-form {
    grid-column: 1 / 7;
  }
  .contact-aside {
    grid-column: 1 / 7;
    padding-left: 0;
    margin-top: 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-map {
    margin-top: 80px;
  }

  .case-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: var(--header-h);
  }
  .case-hero__left {
    padding: 16px var(--pad) 24px;
    min-height: 56svh;
  }
  .case-hero__top {
    display: none;
  }
  .case-hero__title {
    font-size: clamp(3.4rem, 13vw, 6rem);
    margin-top: 60px;
    margin-bottom: 40px;
    max-width: 9ch;
  }
  .case-hero__meta {
    grid-template-columns: 1fr 1fr;
  }
  .case-hero__meta > div:nth-child(3) {
    grid-column: 1 / -1;
  }
  .case-hero__media {
    height: 62svh;
  }
  .case-intro {
    grid-template-columns: repeat(6, 1fr);
    padding-top: 60px;
  }
  .case-intro__lead {
    grid-column: 1 / 7;
    font-size: 2rem;
  }
  .case-credits {
    grid-column: 1 / 7;
    margin-top: 40px;
  }
  .case-gallery {
    padding-top: 60px;
    gap: 36px;
  }
  .case-figure--tall,
  .case-figure--offset {
    width: 100%;
    margin-left: 0;
  }
  .case-next__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-next__arrow {
    width: 52px;
    height: 52px;
  }

  .site-footer {
    padding-top: 44px;
  }
  .footer__top,
  .footer__mid {
    grid-template-columns: repeat(6, 1fr);
  }
  .footer__claim {
    grid-column: 1 / 7;
  }
  .footer__mail {
    grid-column: 1 / 7;
    justify-self: start;
    text-align: left;
    margin-top: 28px;
  }
  .footer__col--1,
  .footer__col--2,
  .footer__col--3,
  .footer__col--4 {
    grid-column: span 3;
  }
  .footer__col--3,
  .footer__col--4 {
    margin-top: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    margin-top: 40px;
  }

  .menu {
    padding: calc(var(--header-h) + 8px) var(--pad) 14px;
  }
  .menu__body {
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    padding-block: 26px 18px;
    overflow-y: auto;
  }
  .menu__nav {
    grid-column: 1 / 7;
  }
  .menu__nav a {
    font-size: clamp(3.8rem, 13.5vw, 5.4rem);
  }
  .menu__side {
    grid-column: 1 / 7;
    margin-top: 24px;
    gap: 20px;
  }
  .menu__preview {
    display: none;
  }
  .menu__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .menu__time {
    display: inline;
  }
  .menu__foot-time .time {
    display: none;
  }
  .menu__socials {
    gap: 14px;
  }

  .time-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}

@media (max-width: 380px) {
  .gallery-card {
    width: 86%;
  }
  .footer__col--1,
  .footer__col--2,
  .footer__col--3,
  .footer__col--4 {
    grid-column: span 6;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-reveal-mask] > *,
  .gallery-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
