/* =========================================================
   Neo Brutalist portfolio. Studio Yellow palette, light mode only.
   Display: Bricolage Grotesque 800. Body: Archivo. Labels: JetBrains Mono.
   Spacing on a 4px grid. One radius (4px) for all boxes; stickers are round.
   ========================================================= */

:root {
  --paper: #F3F3EE;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-soft: #4A4A46;
  --on-color: #141414;          /* text on yellow/pink/blue/mint */
  --primary: #FFD23F;
  --pink: #FF8FB8;
  --blue: #7AA7FF;
  --mint: #7FE0B6;
  --lilac: #B9A4FF;          /* photo backdrop */
  --error: #C4002B;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --bw: 3px;
  --border: var(--bw) solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 4px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .03em; }
.small { font-size: .75rem; }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
::selection { background: var(--primary); color: #141414; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: #141414; padding: 8px 12px; border: var(--border);
}
.skip:focus { top: 16px; }

.section { padding-block: var(--s9); }
.section > .container > h2 { margin-bottom: var(--s7); }

.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body);
  padding: 15px 22px;
  min-height: 48px;
  background: var(--primary);
  color: var(--on-color);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 9px 14px; min-height: 40px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--surface); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--radius);
  cursor: pointer; font-size: 1.15rem;
  transition: transform .15s var(--ease);
}
.icon-btn:active { transform: translate(2px, 2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 72px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: var(--s6); }
.nav-links a { font-weight: 500; text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: var(--border);
    padding: var(--s2) 16px var(--s4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .nav-actions .btn-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s8) var(--s9); border-bottom: var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s8); align-items: center; }
.hero-copy { display: grid; gap: var(--s5); }
.hi {
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 4px 10px; width: max-content; max-width: 100%;
}
.hero-ctas { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s2); }

.portrait {
  position: relative;
  aspect-ratio: 1;
  width: 100%; max-width: 440px; margin-left: auto;
}
.portrait-frame {
  position: absolute; inset: 0; overflow: hidden;
  border: var(--border); border-radius: 50%;
  box-shadow: 10px 10px 0 var(--ink);
  background: repeating-linear-gradient(-45deg, var(--primary) 0 16px, var(--surface) 16px 32px);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph-label {
  position: absolute; inset: 0; margin: auto; height: max-content; width: max-content;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 8px 12px; font-family: var(--mono); font-size: .8rem; text-align: center;
}
.sticker {
  position: absolute; top: 6%; right: -6%; z-index: 3;
  background: var(--mint); color: var(--on-color);
  border: var(--border); border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: .9rem;
  transform: rotate(6deg); box-shadow: var(--shadow-sm);
}

/* Supporting badges: smaller and quieter than the sticker so it stays the focus */
.badge {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  border: var(--border); box-shadow: var(--shadow-sm);
  color: #141414;
}
.badge-ae {   /* After Effects style tile */
  left: -4%; top: 52%;
  width: 58px; height: 58px; border-radius: 12px;
  background: #00005B; color: #9999FF;
  font-family: var(--body); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em;
  transform: rotate(-8deg);
}
.badge-play {
  right: 6%; bottom: 2%;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--pink); font-size: 1.25rem;
  transform: rotate(4deg);
}
.badge-play i { margin-left: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .badge-ae { animation: float-a 5s ease-in-out infinite; }
  .badge-play { animation: float-b 6s ease-in-out infinite; }
}
@keyframes float-a { 50% { transform: rotate(-4deg) translateY(-6px); } }
@keyframes float-b { 50% { transform: rotate(0deg) translateY(5px); } }

@media (max-width: 860px) {
  .hero { padding-block: var(--s7) var(--s8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .portrait { margin: 0 auto; max-width: 320px; }
  .badge-ae { width: 48px; height: 48px; font-size: 1.2rem; left: -2%; }
  .badge-play { width: 44px; height: 44px; font-size: 1.05rem; }
  .sticker { right: -2%; font-size: .82rem; padding: 7px 12px; }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-areas: "a b c" "a d d";
  gap: var(--s5);
}
.svc {
  display: grid; align-content: start; gap: var(--s3);
  padding: var(--s6);
  color: var(--on-color);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.svc { text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.svc.no-link:hover, .svc.no-link:active { transform: none; box-shadow: var(--shadow); }
.svc:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.svc:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); font-weight: 700; font-size: .92rem; border-bottom: 2px solid currentColor; width: max-content; }
.svc:hover .svc-link i { transform: translate(2px, 2px); }
.svc-link i { transition: transform .2s var(--ease); }
/* optional looping clip: fills the tile, text sits on a solid panel so it stays readable */
.svc-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.svc.has-clip h3, .svc.has-clip p, .svc.has-clip .svc-link { background: #FFFFFF; color: #141414; width: max-content; max-width: 100%; padding: 2px 8px; border: 2px solid #141414; }
.svc p { max-width: 40ch; }
.svc:nth-child(1) { grid-area: a; background: var(--primary); align-content: end; min-height: 380px; }
.svc:nth-child(2) { grid-area: b; background: var(--pink); }
.svc:nth-child(3) { grid-area: c; background: var(--blue); }
.svc:nth-child(4) { grid-area: d; background: var(--mint); }
.svc:nth-child(1) h3 { font-size: 2rem; }

/* tiny looping motion mark: square morphs to circle and back */
.svc-mark {
  width: 56px; height: 56px; margin-bottom: var(--s2);
  border: 3px solid #141414; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: #141414;
  position: relative; background: rgba(255,255,255,.35);
}
.svc:nth-child(1) .svc-mark { width: 72px; height: 72px; font-size: 2rem; margin-bottom: auto; }

@media (prefers-reduced-motion: no-preference) {
  .svc-mark i { animation: bob 2.8s var(--ease) infinite; }
  .svc:nth-child(2) .svc-mark i { animation-delay: .35s; }
  .svc:nth-child(3) .svc-mark i { animation-delay: .7s; }
  .svc:nth-child(4) .svc-mark i { animation-delay: 1.05s; }
}
@keyframes bob {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-6px) rotate(-8deg); }
  40% { transform: translateY(0) rotate(4deg); }
}

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .svc:nth-child(1) { min-height: 280px; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .svc { padding: var(--s5); }
  .svc:nth-child(1) { min-height: 0; }
  .svc:nth-child(1) .svc-mark { margin-bottom: var(--s2); }
}

/* ---------- Brands: slim scrolling strip ---------- */
.brands {
  padding-block: var(--s6);
  background: var(--surface);
  border-block: var(--border);
}
.brands-title { font-size: 1.25rem; margin-bottom: var(--s4); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; gap: var(--s8); align-items: center; padding-right: var(--s8); }
/* fixed cell height keeps the strip slim even before a logo has loaded */
.logo { height: 56px; display: flex; align-items: center; justify-content: center; flex: none; }
.logo img { display: block; max-height: 52px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.logo.missing {
  border: 2px dashed var(--ink-soft); border-radius: var(--radius); height: 44px;
  padding: 0 16px; font-family: var(--mono); font-size: .75rem; color: var(--ink-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee.scrolling .marquee-track { animation: marquee var(--marquee-time, 40s) linear infinite; }
  .marquee.scrolling:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s8); align-items: start; }
.about-copy { display: grid; gap: var(--s5); position: sticky; top: 112px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.tl-item {
  display: grid; grid-template-columns: 112px 1fr; gap: var(--s5);
  padding: var(--s5) var(--s6);
}
.tl-item:nth-child(odd) { transform: translateX(-12px); }
.tl-years {
  font-family: var(--mono); font-weight: 600; font-size: .85rem;
  background: var(--primary); color: var(--on-color);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 4px 8px; height: max-content; width: max-content;
}
.tl-body { display: grid; gap: var(--s1); }
.tl-body .place { font-weight: 700; }
.tl-body .place + p { color: var(--ink-soft); }
.tl-highlights { margin: var(--s2) 0 0; padding-left: 18px; display: grid; gap: var(--s1); list-style: square; font-size: .95rem; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s3) 0 0; }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px;
  background: var(--surface); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: var(--s4) var(--s5);
}
.stat:nth-child(1) { background: var(--primary); }
.stat dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; color: var(--on-color); }
.stat dt { font-size: .9rem; color: var(--ink-soft); line-height: 1.35; }
.stat:nth-child(1) dt { color: var(--on-color); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .about-copy { position: static; }
  .tl-item:nth-child(odd) { transform: none; }
}
@media (max-width: 520px) {
  .tl-item { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s5); }
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--s6);
}
.project { grid-column: span 7; display: grid; gap: var(--s3); align-content: start; }
.project.tall { grid-column: span 5; grid-row: span 2; }
.project.featured { grid-column: 1 / -1; }
.project.featured .p-title { font-size: 1.75rem; }

.p-media {
  position: relative; overflow: hidden;
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  cursor: pointer; padding: 0; width: 100%;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: block; color: inherit;
}
.project.tall .p-media { aspect-ratio: 9 / 16; }
.p-media:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.p-media img, .p-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-media video { opacity: 0; transition: opacity .25s; }
.p-media.previewing video { opacity: 1; }
.p-media .p-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 6px;
  font-family: var(--mono); font-size: .8rem; color: #141414; text-align: center; padding: 16px;
}
.p-play {
  position: absolute; right: 14px; bottom: 14px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #141414;
  border: 3px solid #141414;
  display: grid; place-items: center; font-size: 1.3rem;
  transition: transform .2s var(--ease);
}
.p-media:hover .p-play { transform: scale(1.1) rotate(-8deg); }
.p-meta { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.p-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.15; }
.p-client { color: var(--ink-soft); }
.p-tag {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 2px 8px; color: var(--on-color);
}
.empty { font-family: var(--mono); color: var(--ink-soft); }

@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .project, .project.tall { grid-column: span 1; grid-row: auto; }
  .project.featured { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .project.tall .p-media { max-width: 320px; }
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s6); }
.quote { padding: var(--s6); display: grid; gap: var(--s5); align-content: space-between; }
.quote:nth-child(3n+1) { background: var(--primary); color: var(--on-color); }
.quote blockquote { margin: 0; font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
.quote blockquote::before { content: "\201C"; font-family: var(--display); font-size: 3rem; line-height: .6; display: block; margin-bottom: 8px; }
.who { display: flex; gap: var(--s3); align-items: center; }
.who img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; object-fit: cover; }
.who b { display: block; }
.who span { font-size: .9rem; opacity: .8; }
.quote-video .p-media { box-shadow: var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact { background: var(--primary); color: var(--on-color); border-top: var(--border); }
.contact .lead { color: var(--on-color); opacity: .85; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s8); align-items: start; }
.contact-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.email-box {
  display: grid; gap: var(--s2); margin-top: var(--s4);
  background: #FFFFFF; color: #141414;
  border: 3px solid #141414; border-radius: var(--radius); box-shadow: 4px 4px 0 #141414;
  padding: var(--s4) var(--s5); width: max-content; max-width: 100%;
}
.email-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.email { font-weight: 700; font-size: 1.1rem; word-break: break-all; user-select: all; }
.email-box .btn-ghost { background: #FFFFFF; color: #141414; border-color: #141414; box-shadow: 3px 3px 0 #141414; }

/* Email only (showForm: false): one column, bigger email card */
.contact.email-only .contact-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.contact.email-only .email-box { padding: var(--s5) var(--s6); box-shadow: 8px 8px 0 #141414; gap: var(--s3); width: auto; justify-self: start; }
@media (max-width: 560px) { .contact.email-only .email-box { padding: var(--s4); justify-self: stretch; } }
.contact.email-only .email { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }

.form { padding: var(--s6); color: var(--ink); border-color: #141414; box-shadow: 8px 8px 0 #141414; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.field { display: grid; gap: var(--s2); min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 700; font-size: .95rem; padding: 0; }
legend { margin-bottom: var(--s2); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface);
  border: var(--border); border-radius: var(--radius);
  padding: 11px 14px; min-height: 50px; width: 100%;
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--primary), 4px 4px 0 3px var(--ink); }
input[aria-invalid="true"] { border-color: var(--error); }
.error { color: var(--error); font-size: .88rem; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; min-height: 42px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--surface); font-weight: 500; cursor: pointer;
  transition: transform .12s var(--ease);
}
.chip input:checked + span { background: var(--primary); color: #141414; box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.chip input:focus-visible + span { outline: 3px dashed var(--ink); outline-offset: 2px; }

.form-foot { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s6); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ink); }
.form-status.bad { color: var(--error); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .form { padding: var(--s5); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--s7); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); flex-wrap: wrap; }
.socials a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.socials a:hover { color: var(--primary); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: var(--s5);
  background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--primary);
}
.lightbox.is-tall { width: min(440px, calc(100vw - 32px)); }
.lightbox::backdrop { background: rgba(20, 20, 20, .8); }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lightbox-frame { aspect-ratio: 16 / 9; background: #141414; border: var(--border); margin-top: 44px; max-height: calc(100dvh - 180px); }
.lightbox.is-tall .lightbox-frame { aspect-ratio: 9 / 16; margin-inline: auto; }
.lightbox-frame iframe, .lightbox-frame video { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-frame .no-video { height: 100%; display: grid; place-items: center; color: #F3F3EE; font-family: var(--mono); padding: 24px; text-align: center; }
.lightbox-title { margin-top: var(--s3); font-weight: 700; }

/* ---------- Video player (js/player.js) ---------- */
.vp {
  position: relative; width: 100%; height: 100%;
  background: #141414; overflow: hidden; outline: none;
  --vp-ui: #F3F3EE;
}
.vp:focus-visible { outline: 3px dashed var(--primary); outline-offset: -6px; }
.vp-video { width: 100%; height: 100%; object-fit: contain; background: #141414; cursor: pointer; }
.vp-big {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg);
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--primary); color: #141414;
  border: 3px solid #141414; box-shadow: 6px 6px 0 #141414;
  display: grid; place-items: center; font-size: 2.2rem; cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s;
}
.vp-big:hover { transform: translate(-50%, -50%) rotate(0) scale(1.06); }
.vp-big i { margin-left: 5px; }
.vp.is-playing .vp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }

.vp-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; color: #141414;
  border: 3px solid #141414; border-radius: var(--radius); box-shadow: 4px 4px 0 #141414;
  padding: 6px 8px;
  transition: opacity .25s, transform .25s var(--ease);
}
.vp:not(.has-started) .vp-bar { opacity: 0; transform: translateY(12px); pointer-events: none; }
.vp.is-idle .vp-bar { opacity: 0; transform: translateY(12px); }
.vp.is-idle { cursor: none; }
.vp-btn {
  flex: none; width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; color: #141414;
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: 1.15rem; cursor: pointer;
}
.vp-btn:hover { background: var(--primary); border-color: #141414; }
.vp-btn:focus-visible { outline: 2px dashed #141414; outline-offset: 1px; }
.vp-speed { width: auto; min-width: 44px; padding: 0 6px; font: 600 .8rem var(--mono); }
.vp-time { flex: none; font: 600 .78rem var(--mono); font-variant-numeric: tabular-nums; min-width: 92px; }

.vp-track {
  position: relative; flex: 1; min-width: 60px; height: 14px;
  background: #E4E4DD; border: 2px solid #141414; border-radius: 2px;
  cursor: pointer; touch-action: none;
}
.vp-track:focus-visible { outline: 2px dashed #141414; outline-offset: 3px; }
.vp-buffered { position: absolute; inset: 0 auto 0 0; width: 0; background: #C9C9C0; }
.vp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--primary); border-right: 2px solid #141414; }
.vp-knob {
  position: absolute; top: 50%; left: 0; width: 18px; height: 18px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--pink); border: 2px solid #141414;
  transition: transform .15s;
}
.vp-track:hover .vp-knob, .vp.is-seeking .vp-knob { transform: translate(-50%, -50%) rotate(45deg) scale(1.2); }

.vp-vol { flex: none; width: 72px; min-height: 0; padding: 0; border: 0; background: transparent; accent-color: #141414; box-shadow: none; }
.vp-vol:focus { box-shadow: none; }

.vp-spinner {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 4px solid var(--primary); border-right-color: transparent; border-radius: 50%;
  opacity: 0; pointer-events: none;
}
.vp.is-loading.is-playing .vp-spinner { opacity: 1; animation: vp-spin .8s linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.vp-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #F3F3EE; font-family: var(--mono); background: #141414; }
.vp.has-error .vp-big, .vp.has-error .vp-bar { display: none; }
.vp.is-fullscreen .vp-bar { left: 24px; right: 24px; bottom: 24px; }

@media (max-width: 600px) {
  .vp-vol, .vp-speed { display: none; }
  .vp-time { min-width: 0; font-size: .7rem; }
  .vp-big { width: 72px; height: 72px; font-size: 1.8rem; }
  .vp-bar { left: 6px; right: 6px; bottom: 6px; gap: 4px; padding: 3px 4px; border-width: 2px; box-shadow: 2px 2px 0 #141414; }
  .vp-btn { width: 30px; height: 30px; font-size: 1rem; }
  .vp-track { height: 10px; }
  .vp-knob { width: 14px; height: 14px; }
}
.lightbox.is-tall .vp-vol, .lightbox.is-tall .vp-speed { display: none; }
.lightbox.is-tall .vp-time { min-width: 0; font-size: .7rem; }

/* ---------- Reveal on scroll (content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
