/* ============================================================
   Blue Ocean Audiovisual
   ============================================================ */
:root {
  --bg: #000;
  --bg-2: #07090a;
  --ink: #eef1f1;
  --muted: rgba(238, 241, 241, .58);
  --faint: rgba(238, 241, 241, .32);
  --line: rgba(238, 241, 241, .14);
  --teal: #74e0e0;          /* glow from the portfolio images */
  --teal-deep: #1f7476;     /* logo water */
  --sand: #d8b796;          /* warm accent from the logo / images */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --rb: 0px;                /* review bar height */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.review { --rb: 32px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid rgba(238, 241, 241, .6); outline-offset: 4px; }
::selection { background: var(--teal); color: #000; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--serif); font-weight: 400;
  line-height: .95; letter-spacing: -.01em;
  margin: 0;
}
.display em { font-style: italic; color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
/* glass pill */
.btn--solid {
  background: rgba(238, 241, 241, .07); color: var(--ink);
  border: 1px solid rgba(238, 241, 241, .16);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--solid:hover { background: rgba(238, 241, 241, .13); border-color: rgba(238, 241, 241, .3); }
.btn--line { border: 1px solid var(--line); color: var(--ink); }
.btn--line:hover { border-color: rgba(238, 241, 241, .45); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 11px; }

/* pending marker (review mode only) */
.pending {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border: 1px dashed var(--sand); border-radius: 999px;
  color: var(--sand);
  font: 600 10px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.pending::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
[hidden] { display: none !important; }
.is-pending { cursor: not-allowed; }
.btn.is-pending { outline: 1px dashed var(--sand); outline-offset: 4px; }
.btn.is-pending .pending {
  position: absolute; right: 50%; top: -14px; translate: 50% 0;
  background: #000; padding: 2px 8px; font-size: 9px;
}
.site-header .btn.is-pending .pending { top: auto; bottom: -16px; right: 50%; translate: 50% 0; }

/* ---------- review bar ---------- */
.review-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--rb);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 var(--gutter);
  background: var(--sand); color: #1a120b;
  font-size: 12px; font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.review-bar span + span { font-weight: 500; opacity: .75; }
@media (max-width: 640px) { .review-bar span + span { display: none; } .review-bar { font-size: 11px; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: var(--rb); z-index: 80;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  transition: background .5s, backdrop-filter .5s, padding .5s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-block: 12px;
}
.brand { justify-self: start; display: block; line-height: 0; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s; }
.has-hero .site-header:not(.brand-on) .brand { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
.brand img { height: 38px; width: auto; transition: height .5s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 32px; }
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: rgba(238, 241, 241, .7); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.lang button { padding: 6px 6px; color: var(--faint); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang span { color: var(--faint); }

.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn i { display: block; width: 22px; height: 1px; background: var(--ink); position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--ink); }
.menu-btn i::before { top: -7px; } .menu-btn i::after { top: 7px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: #000;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--rb) + 22px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-top img { height: 32px; width: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(48px, 14vw, 80px); line-height: 1.05; }
.mobile-menu nav a:hover { opacity: .6; }
.mm-bottom { display: flex; flex-direction: column; gap: 22px; }
.mm-close { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 12px 0; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav, .header-actions .lang { display: none; }
  /* the same call button as on desktop, compact, always in the header */
  .header-actions { gap: 6px; }
  .header-actions .btn--sm { height: 38px; padding: 0 14px; font-size: 10px; letter-spacing: .14em; }
  .menu-btn { display: inline-flex; }
  .brand img { height: 30px; }
  .site-header.is-scrolled .brand img { height: 28px; }
}

/* ---------- viewfinder (fixed timecode) ---------- */
.timecode {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--faint);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: opacity .5s;
}
.timecode.is-off { opacity: 0; }
.timecode i { width: 7px; height: 7px; border-radius: 50%; background: #e2463f; box-shadow: 0 0 10px #e2463f; animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .2; } }
@media (max-width: 900px) { .timecode { display: none; } }


/* ============================================================
   HERO — logo video
   ============================================================ */
.hero { position: relative; height: 320vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media {
  position: absolute; left: 0; right: 0;
  top: calc(var(--rb) + 64px); bottom: clamp(230px, 36vh, 340px);
  will-change: transform, opacity;
  mix-blend-mode: screen; /* frame background is black → disappears into the page */
}
.hero-media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; filter: blur(6px);
  transition: opacity 1.8s var(--ease-out), filter 1.8s var(--ease-out);
}
.hero-media canvas.is-in { opacity: 1; filter: none; }
.hero-glow {
  position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(31, 116, 118, .22), transparent 70%);
  opacity: 0; pointer-events: none;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(rgba(238, 241, 241, .6), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   DEPTH GALLERY — images fly towards the camera on scroll
   ============================================================ */
.depth { position: relative; height: 380vh; }
.depth-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  perspective: 900px; perspective-origin: 50% 50%;
}
.depth-world { position: absolute; inset: 0; transform-style: preserve-3d; }
.depth-card {
  position: absolute; left: 50%; top: 50%;
  width: var(--w, 22vw); max-width: 340px; min-width: 120px;
  margin: 0;
  will-change: transform, opacity;
  opacity: 0;
}
.depth-card img { width: 100%; height: auto; border-radius: 14px; }
.depth-title {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; pointer-events: none;
}
.depth-title .display { font-size: clamp(72px, 15vw, 240px); text-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.depth-title .sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 26px); color: var(--muted); }
.depth-cta { pointer-events: auto; margin-top: 18px; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.depth.show-cta .depth-cta { opacity: 1; transform: none; }
.depth-count { position: absolute; right: var(--gutter); bottom: 22px; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ============================================================
   STATEMENT — words light up while scrolling
   ============================================================ */
.statement { padding: 26vh var(--gutter); max-width: 1400px; margin: 0 auto; }
.statement > p {
  margin: 0;
  font-family: var(--serif); font-size: clamp(38px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.01em;
}
.statement .w { opacity: .14; transition: opacity .25s linear, color .25s; }
.statement .w.on { opacity: 1; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 8vh var(--gutter) 16vh; max-width: 1400px; margin: 0 auto; }
.services-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-bottom: 8vh; }
.services-head .display { font-size: clamp(36px, 4.6vw, 72px); }
/* minimal editorial list: hairlines, big serif titles that rise from a mask, no hover */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 72px 1fr minmax(0, 36ch); gap: 32px; align-items: baseline;
  padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line);
}
.svc-num { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--sand); }
.svc-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 96px); line-height: 1; letter-spacing: -.01em; }
.svc-title .mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.svc-title .mask > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.svc-text { margin: 0; color: var(--muted); font-size: 16px; opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out) .35s, transform 1s var(--ease-out) .35s; }
.svc-num { opacity: 0; transition: opacity 1s var(--ease-out) .2s; }
.svc.is-in .svc-title .mask > span { transform: none; }
.svc.is-in .svc-text, .svc.is-in .svc-num { opacity: 1; transform: none; }
.services-cta { margin-top: 24px; display: flex; justify-content: center; }

/* ---- one big card that turns on scroll: 01 → 02 → 03 ---- */
.flip { position: relative; height: 440vh; }   /* scroll length = turning speed (longer = slower) */
.flip-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  perspective: 1800px;
}
.flip-card {
  position: relative; width: min(1100px, 100%); height: min(62vh, 600px);
  transform-style: preserve-3d; will-change: transform;
}
.flip-face {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 28px; border: 1px solid rgba(116, 224, 224, .2);   /* faint blue edge */
  background: #000;
  box-shadow: 0 0 80px rgba(31, 116, 118, .10);
}
/* a thin line of light slowly travels around the edge of the card */
@property --edge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.flip-face::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 27px; padding: 2px;
  background: conic-gradient(from var(--edge),
    transparent 0 58%, rgba(116, 224, 224, .35) 68%, rgba(116, 224, 224, 1) 79%,
    #f0ffff 82%, rgba(116, 224, 224, 1) 85%, rgba(116, 224, 224, .35) 93%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(116, 224, 224, .6));
  animation: edge-light 9s linear infinite;
}
@keyframes edge-light { to { --edge: 360deg; } }
.flip-back { transform: rotateY(180deg); }
.flip-content {
  position: absolute; inset: 0; padding: clamp(28px, 4.5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.flip-front .is-b, .flip-front.show-b .is-a { visibility: hidden; }
.flip-front.show-b .is-b { visibility: visible; }
.flip-top { display: flex; align-items: baseline; gap: 12px; }
.flip-num { font-family: var(--serif); font-size: clamp(80px, 12vw, 180px); line-height: .8; letter-spacing: -.02em; }
.flip-of { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--faint); }
.flip-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; align-items: end; }
.flip-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: .95; letter-spacing: -.01em; }
.flip-text { margin: 0; color: var(--muted); font-size: 17px; max-width: 36ch; }
.flip-dots { display: flex; gap: 8px; }
.flip-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(238, 241, 241, .2); transition: background .4s, transform .4s; }
.flip-dots i.on { background: var(--ink); transform: scale(1.25); }
/* the plain list stays in the page for screen readers (and reduced motion) */
.svc-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
  .flip { height: 380vh; }
  .flip-card { height: 66vh; }
  .flip-face { border-radius: 22px; }
  .flip-face::before { border-radius: 21px; }
  .flip-body { grid-template-columns: 1fr; }
  .flip-text { font-size: 16px; }
}
@media (max-width: 900px) {
  .services-head { grid-template-columns: 1fr; gap: 20px; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 18vh var(--gutter);
}
.contact-bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact-bg canvas.water { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.contact-bg.has-water img { visibility: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(#000 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .55) 75%, #000 100%);
}
.contact-inner { position: relative; z-index: 3; text-align: center; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.contact .display { font-size: clamp(48px, 8vw, 128px); }
.contact-text { margin: 0; color: var(--muted); max-width: 46ch; font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 28px 24px; justify-content: center; margin-top: 8px; }
.contact-call { height: 64px; padding: 0 34px; font-size: 14px; }
@media (max-width: 640px) {
  .contact-actions { flex-direction: column; align-items: center; gap: 24px; }
  .contact-actions .btn { min-width: 250px; }
}
.contact-meta { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-top img { height: 54px; width: auto; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.footer-bottom .lang button { color: var(--faint); }
.footer-bottom .lang button[aria-pressed="true"] { color: var(--ink); }
.to-top:hover { color: var(--ink); }
@media (max-width: 900px) { .site-footer { padding-bottom: 96px; } }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.pf-hero { padding: calc(var(--rb) + 22vh) var(--gutter) 10vh; max-width: 1500px; margin: 0 auto; }
.pf-hero .display { font-size: clamp(84px, 17vw, 280px); display: flex; align-items: flex-start; gap: .1em; }
.pf-hero .display sup { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--sand); margin-top: 1.4em; }
.pf-hero p { max-width: 42ch; color: var(--muted); margin: 28px 0 0; font-size: 17px; }
.pf-hero .line-in { display: block; overflow: hidden; }
.pf-hero .line-in > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.is-loaded .pf-hero .line-in > span { transform: none; }

.pf-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 14vh;
  padding: 0 var(--gutter) 20vh; max-width: 1500px; margin: 0 auto;
}
.pf-item { margin: 0; }
/* Reveal: a black curtain lifts off the picture while it rises into place.
   The image itself is never hidden (opacity 0 would stop the browser from
   painting it ahead of time, which made it pop in late). */
.pf-media {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: 20px;
  translate: 0 70px;
  transition: translate 1.6s var(--ease);
  cursor: zoom-in;
  isolation: isolate;
}
.pf-media::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: #000;
  transform-origin: 50% 0; transform: scaleY(1);
  transition: transform 1.5s var(--ease) .05s;
}
.pf-item.is-in .pf-media { translate: 0 0; }
.pf-item.is-in .pf-media::before { transform: scaleY(0); }
.pf-cap { opacity: 0; transition: opacity 1s var(--ease-out) .6s; }
.pf-item.is-in .pf-cap { opacity: 1; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; transition: filter .6s; }
.pf-media::after {
  content: attr(data-label); z-index: 2;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  padding: 12px 20px; border-radius: 999px; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.pf-media:hover::after, .pf-media:focus-visible::after { opacity: 1; }
.pf-media:hover img { filter: brightness(.8); }
.pf-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; flex-wrap: wrap; }
.pf-cap .n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--sand); }
.pf-cap h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; flex: 1; }
.pf-cap .cat { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .pf-grid { row-gap: 9vh; }
  .pf-grid .pf-item { grid-column: 1 / -1 !important; margin-top: 0 !important; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: var(--ink);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); gap: 16px; }
.lb-bottom { justify-content: center; min-height: 64px; }
.lb-top { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; min-height: 0; padding: 0 var(--gutter); overflow: hidden; }
.lb-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; animation: lbImg .5s var(--ease-out); }
@keyframes lbImg { from { opacity: 0; } }
.lb-media iframe { width: min(100%, 1400px); aspect-ratio: 16 / 9; border: 0; }
/* invisible click zones: left half = previous, right half = next */
.lb-zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; cursor: pointer; }
.lb-zone--prev { left: 0; cursor: w-resize; }
.lb-zone--next { right: 0; cursor: e-resize; }
.lightbox.is-video .lb-zone { width: 12%; }
.lb-hint {
  position: absolute; left: 0; top: 0; z-index: 3;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-out);
}
.lb-hint.on { opacity: 1; }
.lb-btn { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 12px 4px; color: var(--muted); transition: color .3s; }
.lb-btn:hover { color: var(--ink); }
.lb-cap { font-family: var(--serif); font-size: 22px; }

/* ---------- generic reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   Reduced motion: no scroll-scrubbed motion, simple layouts
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  body::after { display: none; }
  .hero { height: 100vh; }
  .depth { height: auto; padding: 16vh var(--gutter); }
  .depth-stage { position: relative; height: auto; overflow: visible; perspective: none; }
  .depth-world { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 40px; }
  .depth-card { position: relative; left: auto; top: auto; width: auto !important; max-width: none; opacity: 1 !important; transform: none !important; }
  .depth-card.dup { display: none; }
  .depth-title { position: relative; }
  .depth-cta { opacity: 1; transform: none; }
  .depth-count { display: none; }
  .statement .w { opacity: 1; }
  .pf-media { translate: none; }
  .pf-media::before { display: none; }
  .pf-cap, .svc-text, .svc-num { opacity: 1; transform: none; }
  .svc-title .mask > span { transform: none; }
  .flip { height: auto; }          /* stays as the link target, right above the plain list */
  .flip-stage { display: none; }
  .svc-list { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .pf-media img { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
