/* ============================================================
   Vinícius Angeli — portfólio
   Estética: cinematográfico escuro
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --bg-3: #181816;
  --fg: #ede9e3;
  --fg-2: #bdb8b0;
  --muted: #7f7a72;
  --line: rgba(237, 233, 227, 0.12);
  --line-2: rgba(237, 233, 227, 0.22);
  --accent: #d0a466;

  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .04;
  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 1.2s 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); }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--display); font-weight: 700;
  line-height: .9; letter-spacing: -.045em;
  margin: 0;
}
.display em { font-style: normal; color: var(--fg-2); }
h1, h2, h3 { font-weight: 400; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-2); position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn { display: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0; }

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .brand { font-size: 22px; }
  .nav { display: none; }
  .menu-btn { display: block; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: clamp(40px, 12vw, 68px); line-height: 1.08; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .close { position: absolute; top: 18px; right: var(--gutter); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 0; }
.mobile-menu .mm-foot { margin-top: 48px; display: flex; gap: 20px; flex-wrap: wrap; }
.mobile-menu .mm-foot a { font-family: var(--sans); font-size: 11px; line-height: 1.6; letter-spacing: .22em; color: var(--fg-2); }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #000;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .yt-bg {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.15);
  border: 0; pointer-events: none;
}
.hero-media img.poster { position: absolute; inset: 0; transition: opacity 1.2s; }
.hero-media img.kenburns { animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero-media.is-playing img.poster { opacity: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.55) 28%, rgba(0,0,0,0) 60%);
}
.hero-content {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero-content .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero-title { font-size: clamp(64px, 13.5vw, 230px); }
.hero-roles { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero-roles span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); }
.hero-roles span + span::before { content: "·"; margin-right: 22px; color: var(--accent); }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; padding-bottom: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
  white-space: nowrap;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.btn .play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

@media (max-width: 760px) {
  .hero-content .wrap { grid-template-columns: 1fr; }
  .hero-side { align-items: flex-start; }
  .hero-roles span { font-size: 10.5px; letter-spacing: .2em; }
  .hero-roles span + span::before { margin-right: 12px; }
  .hero-roles { gap: 6px 12px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section + .section { padding-top: 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  padding-bottom: 28px; margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.section-head .display { font-size: clamp(48px, 7.5vw, 120px); }
.section-head .eyebrow { margin-bottom: 18px; display: block; }
.link-arrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; padding-bottom: 12px;
  transition: color .3s;
}
.link-arrow::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover::after { transform: translateX(6px); }

/* statement */
.statement { padding: clamp(80px, 12vw, 180px) 0; }
.statement-grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(24px, 6vw, 112px); align-items: center; }
.statement-photo { margin: 0; }
.statement-photo .eyebrow { display: block; margin-bottom: 18px; }
.statement-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--bg-3); }
@media (max-width: 860px) {
  .statement-photo { max-width: 420px; }
  .statement-photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
}
.statement p.lead {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 50px); line-height: 1.08;
  margin: 0; letter-spacing: -.035em;
}
.statement p.lead em { color: var(--accent); font-style: normal; }
.statement .sub { margin-top: 36px; max-width: 62ch; color: var(--fg-2); font-size: 17px; }
@media (max-width: 860px) { .statement-grid { grid-template-columns: 1fr; } }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.tiles--5 { grid-template-columns: repeat(6, 1fr); }
.tiles--5 > :nth-child(1), .tiles--5 > :nth-child(2) { grid-column: span 3; }
.tiles--5 > :nth-child(n+3) { grid-column: span 2; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .tiles--5, .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .tiles--5 > * { grid-column: span 1 !important; }
  .tiles--5 > :first-child { grid-column: span 2 !important; }
}
@media (max-width: 560px) {
  .tiles--5, .tiles--4, .tiles--2 { grid-template-columns: 1fr; }
  .tiles--5 > :first-child { grid-column: span 1 !important; }
}

.tile { position: relative; display: block; overflow: hidden; background: var(--bg-3); }
.tile .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tiles--5 > :nth-child(-n+2) .media { aspect-ratio: 16 / 10; }
.tile--wide .media { aspect-ratio: 2.39 / 1; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter .8s var(--ease), opacity .8s;
  filter: saturate(.85) brightness(calc(.82 * var(--lift, 1)));
}
.tile:hover img { transform: scale(1.045); filter: saturate(1) brightness(calc(.95 * var(--lift, 1))); }
.tile .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 55%);
}
.tile .label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(16px, 2vw, 28px);
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}
.tile .label h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(26px, 2.8vw, 46px); line-height: 1; }
.tile .label h3 em { font-style: normal; color: var(--fg-2); }
.tile .label .count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.tiles--4 .label { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.tiles--4 .label h3 { font-size: clamp(22px, 2.2vw, 34px); }
.tile--wide .label h3 { font-size: clamp(34px, 4.6vw, 76px); }
.tile .label .kicker { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; font-family: var(--sans); font-style: normal; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .n { font-family: var(--display); font-weight: 700; letter-spacing: -.05em; font-size: clamp(60px, 8.5vw, 140px); line-height: .9; }
.stat .l { margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 36px; }
}

/* ---------- partners (credits) ---------- */
.credits {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(26px, 3vw, 48px); line-height: 1.2;
  color: var(--fg-2); margin: 0; padding: 0; list-style: none;
}
.credits li { display: inline; }
.credits li:not(:last-child)::after { content: " / "; color: var(--muted); font-style: normal; }
.credits li span { transition: color .3s; }
.credits li:hover span { color: var(--fg); }

/* ---------- CTA ---------- */
.cta { text-align: left; padding: clamp(80px, 12vw, 180px) 0; border-top: 1px solid var(--line); }
.cta .display { font-size: clamp(56px, 10vw, 170px); }
.cta .display em { color: var(--accent); }
.cta .actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--fg-2); font-size: 13px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-footer .brand { color: var(--fg); margin-bottom: 10px; display: inline-block; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* ---------- page header ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 140px)) 0 clamp(36px, 5vw, 64px); }
.page-head .display { font-size: clamp(64px, 12vw, 200px); }
@media (max-width: 600px) { .page-head .display { font-size: 10.6vw; } }
.page-head .meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.page-head .intro { max-width: 60ch; color: var(--fg-2); margin: 24px 0 0; font-size: 17px; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.subnav a {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2);
  transition: all .3s var(--ease);
}
.subnav a:hover { border-color: var(--line-2); color: var(--fg); }
.subnav a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- photo gallery (masonry) ---------- */
.masonry { columns: 3; column-gap: clamp(8px, 1vw, 14px); padding-bottom: clamp(80px, 10vw, 140px); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 520px) { .masonry { columns: 1; } }
.masonry figure { margin: 0 0 clamp(8px, 1vw, 14px); break-inside: avoid; }
.masonry a { display: block; position: relative; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.masonry a:hover img { transform: scale(1.03); }

.js img.fade { opacity: 0; }
.js img.fade.is-loaded { opacity: 1; }

/* ---------- video cards ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 32px); padding-bottom: clamp(80px, 10vw, 140px); }
.videos--featured > :first-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.vcard { display: block; text-align: left; width: 100%; }
.vcard .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.videos--featured > :first-child .media { aspect-ratio: 2.39 / 1; }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease), filter .8s; filter: brightness(.85); }
.vcard:hover img { transform: scale(1.04); filter: brightness(.65); }
.vcard .playbtn {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.85); transition: all .5s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vcard .playbtn::before { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.vcard:hover .playbtn, .vcard:focus-visible .playbtn { opacity: 1; transform: scale(1); }
@media (hover: none) { .vcard .playbtn { opacity: .9; transform: scale(.8); } }
.vcard .info { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: baseline; }
.vcard h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.05; }
.vcard:hover h3 { color: var(--accent); }
.vcard .sub { color: var(--fg-2); font-size: 15px; grid-column: 1; }
.vcard .num { font-size: 11px; letter-spacing: .2em; color: var(--muted); grid-row: 1; grid-column: 2; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; grid-column: 1 / -1; }
.roles span {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); padding-bottom: clamp(80px, 10vw, 160px); }
.about-portrait { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.15); }
.about-portrait figcaption { margin-top: 14px; }
.about-roles { list-style: none; margin: 0 0 56px; padding: 0; }
.about-roles li { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; font-size: clamp(38px, 4.6vw, 74px); line-height: 1.02; border-bottom: 1px solid var(--line); padding: 10px 0; }
.about-roles li:nth-child(even) { color: var(--fg-2); }
.about-body p { font-size: 18px; line-height: 1.7; color: var(--fg-2); margin: 0 0 1.3em; max-width: 64ch; }
.about-body p:first-child { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--fg); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 460px; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 120px); padding-bottom: clamp(80px, 10vw, 160px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact > *, .contact-aside > * { min-width: 0; }
.contact-aside .item a, .form-note a { overflow-wrap: anywhere; }
.form { display: grid; gap: 34px; }
.field { display: grid; gap: 10px; }
.field label, .field legend { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0 14px; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(22px, 2.2vw, 30px);
  transition: border-color .3s;
}
.field textarea { font-family: var(--sans); font-size: 17px; line-height: 1.6; min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #4a4743; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
  transition: all .3s var(--ease);
}
.chip span:hover { color: var(--fg); border-color: var(--fg-2); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.form-note { font-size: 13px; color: var(--muted); margin: -14px 0 0; }
.form-error { color: #e68a6f; font-size: 13px; margin: 0; min-height: 1em; }

.contact-aside { display: grid; gap: 36px; align-content: start; }
.contact-aside .item .eyebrow { display: block; margin-bottom: 8px; }
.contact-aside .item a, .contact-aside .item p { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; margin: 0; word-break: break-word; }
.contact-aside .item a:hover { color: var(--accent); }

/* ---------- lightbox / modal ---------- */
.lb, .vmodal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 5, 5, .97);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lb.is-open, .vmodal.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.lb-close { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 10px 0; }
.lb-close:hover { color: var(--accent); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .35s; }
.lb-stage img.is-loading { opacity: .25; }
.lb-nav {
  position: absolute; top: 0; bottom: 0; width: 18%; display: flex; align-items: center;
  font-size: 28px; color: var(--fg-2); transition: color .3s; z-index: 2;
}
.lb-nav:hover { color: var(--fg); }
.lb-prev { left: 0; justify-content: flex-start; padding-left: var(--gutter); }
.lb-next { right: 0; justify-content: flex-end; padding-right: var(--gutter); }
.lb-caption { padding: 16px var(--gutter) 24px; text-align: center; font-family: var(--sans); font-size: 15px; letter-spacing: .02em; color: var(--fg-2); min-height: 64px; }
@media (max-width: 760px) { .lb-nav { font-size: 22px; } }

.vmodal { grid-template-rows: auto 1fr; }
.vmodal-stage { display: grid; place-items: center; padding: 0 var(--gutter) var(--gutter); min-height: 0; }
.vmodal-frame { width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.vmodal-frame iframe, .vmodal-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.notfound .display { font-size: clamp(100px, 22vw, 320px); }
