:root {
  --bg: #0f1114;
  --surface: #15171b;
  --surface-2: #1c1f24;
  --line: #24272d;
  --text: #f1f2f4;
  --muted: #7d838d;
  --accent: #f1f2f4;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
/* no sideways page scroll and no trackpad swipe-to-go-back on the page itself */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1000px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.pill-btn {
  display: inline-block;
  font-size: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .2s;
}
.pill-btn:hover { border-color: var(--accent); }

/* ---------- top bar ---------- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px max(var(--pad), calc((100vw - 1000px) / 2 + var(--pad)));
  padding-block: 26px;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s, backdrop-filter .35s;
}
/* clean at the very top, a translucent plate once the page moves */
.top.is-scrolled {
  padding-block: 14px;
  background: rgba(15, 17, 20, .55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .06);
}
[id] { scroll-margin-top: 90px; }
.top__name { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.top__nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.top__nav a { white-space: nowrap; transition: color .2s; }
.top__nav a:hover { color: var(--text); }
.top__cta { color: var(--text); padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.top__cta:hover { border-color: var(--accent); }
@media (max-width: 520px) { .top__nav a[href="#projects"] { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 84svh; /* the carousel backdrop peeks in at the bottom of the first screen */
  display: flex;
  align-items: center;
  padding: 96px 0 48px;
}
.hero__inner { width: 100%; will-change: opacity, transform; }
.hero__title, .hero .facts { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .facts { animation-delay: .18s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }
.sheet { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.3;
  letter-spacing: -.03em;
  max-width: 21ch;
  text-wrap: balance;
}
.hero__hello { display: block; }
.hero__emoji { display: inline-block; transform-origin: 50% 85%; cursor: default; padding: 0 .08em; }
/* a small nod on page load */
.hero__emoji.is-intro { animation: nod 2.6s ease-in-out 1s 2; }
/* hover: a calm, continuous wave */
.hero__emoji.is-waving { animation: wave 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-16deg); }
  75% { transform: rotate(14deg); }
}
@keyframes nod { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }

.facts { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 6vw, 64px); margin-top: 44px; }
.facts:empty { display: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) .32s both; }
.hero__actions a { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.hero__actions a:first-child { background: var(--text); border-color: var(--text); color: var(--bg); }
.hero__actions a:hover { border-color: var(--accent); }
.hero__actions a:first-child:hover { background: var(--accent); color: var(--bg); }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.facts span { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- featured carousel ---------- */
.reel {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  width: calc(100% - 2 * var(--pad));
  border-radius: 44px;
  background: #0a0b0d;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden;
}
/* scroll a little: first the backdrop appears, then the videos come up one by one */
.reel { opacity: 0; transform: translateY(70px) scale(.93); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reel.is-in { opacity: 1; transform: none; }
.reel .card { opacity: 0; translate: 0 36px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transition-delay: calc(.45s + var(--i, 0) * .09s); }
.reel.is-in .card { opacity: 1; translate: 0 0; }
.reel.is-ready .card { transition-delay: 0s; }
.still .reel, .still .reel .card { opacity: 1; transform: none; translate: 0 0; }
.reel__track {
  display: flex;
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(32px, 6vw, 88px) clamp(20px, 6vw, 96px);
  overflow-x: auto;
  scrollbar-width: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track .card { flex: 0 0 clamp(170px, 22vw, 262px); }
.reel__track .card--wide { flex-basis: clamp(300px, 40vw, 466px); aspect-ratio: auto; }
/* hovered video lifts up and stays up */
@media (hover: hover) {
  .reel__track .card:hover { transform: translateY(-14px); box-shadow: 0 26px 60px rgba(0, 0, 0, .6); }
}
/* edge zones: hovering them glides the carousel, clicking jumps */
.reel__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(64px, 10vw, 132px);
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity .35s;
}
.reel__zone--prev { left: 0; background: linear-gradient(to right, #0a0b0d, transparent); }
.reel__zone--next { right: 0; background: linear-gradient(to left, #0a0b0d, transparent); }
.reel__zone span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(241, 242, 244, .22);
  color: #fff;
  font-size: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s, transform .25s;
}
.reel__zone:hover span { background: rgba(241, 242, 244, .92); color: var(--bg); transform: scale(1.06); }
.reel__zone[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .reel { border-radius: 28px; } .reel__zone span { width: 42px; height: 42px; font-size: 17px; } }

/* ---------- video cards ---------- */
.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  isolation: isolate;
}
.card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 44%); pointer-events: none; }
.card__info { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
/* no caption: no dark fade at the bottom either */
.card:has(.card__info:empty)::after { opacity: 0; }
.card__title { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { color: rgba(243, 238, 230, .68); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__play {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(16, 15, 13, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.card--empty { cursor: default; }
.card--empty .card__media {
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--c1, var(--accent)) 55%, transparent), transparent 62%),
    radial-gradient(100% 70% at 100% 100%, color-mix(in srgb, var(--c2, #5a3d2a) 40%, transparent), transparent 62%),
    var(--surface-2);
  display: grid;
  place-items: center;
}
.card--empty .card__num { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); color: rgba(243, 238, 230, .28); }
.card--empty .card__play { opacity: 1; transform: none; color: rgba(243, 238, 230, .7); }
.card__views {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 11, 13, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card__views.todo { font-weight: 400; }
.card--empty .card__play { top: auto; bottom: 58px; left: 12px; right: auto; }
/* carousel posts: every slide in one long strip */
.strips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 20px; }
.strip__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.strip__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 500; }
.strip__views { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--text); }
.strip__views svg { opacity: .8; }
.strip__count { color: var(--muted); font-size: 13px; }
.strip__nav { display: flex; gap: 8px; }
.strip__nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; transition: background .2s, color .2s; }
.strip__nav button:hover { background: var(--text); color: var(--bg); }
.strip__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; border-radius: var(--radius); }
.strip__row::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 clamp(170px, 23vw, 240px); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); scroll-snap-align: start; cursor: zoom-in; }
.slide img, .slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__stage video.is-slide { height: min(calc(100dvh - 190px), 760px); }
.slide--empty {
  display: grid; place-items: center; cursor: default;
  font-family: var(--display); font-weight: 800; font-size: 44px; color: rgba(243, 238, 230, .26);
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--c1, #888) 45%, transparent), transparent 62%),
    var(--surface-2);
}

/* ---------- tag (growth / launch) ---------- */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--text);
}
.tag:empty { display: none; }

/* ---------- project folders ---------- */
#projects { padding-top: clamp(72px, 11vw, 140px); }
.folders { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 44px 60px; }
.folders > :nth-child(even) { translate: 0 120px; }
.folders { padding-bottom: 120px; }
@media (max-width: 680px) {
  .folders { grid-template-columns: minmax(0, 360px); gap: 20px; padding-bottom: 0; }
  .folders > :nth-child(even) { translate: none; }
}
.folder {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 366px;
  padding: 32px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%),
    var(--surface);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s;
}
.folder:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); box-shadow: 0 30px 80px color-mix(in srgb, var(--c1) 22%, transparent); }
/* on hover the folder wobbles left, right, and settles */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .folder:hover { animation: wobble .75s cubic-bezier(.3, .6, .4, 1) 1; }
}
@keyframes wobble {
  0% { rotate: 0deg; }
  22% { rotate: -2.6deg; }
  46% { rotate: 2deg; }
  66% { rotate: -1.1deg; }
  84% { rotate: .5deg; }
  100% { rotate: 0deg; }
}
.folder__cover .tag { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, .28); border-color: transparent; color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.folder__cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 152px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 40px color-mix(in srgb, var(--c1) 35%, transparent);
  font-family: var(--display);
  font-weight: 800;
  font-size: 54px;
  color: rgba(255, 255, 255, .92);
  overflow: hidden;
}
.folder__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* real logo instead of the letter */
.has-logo .folder__cover, .project__cover.has-logo { background: var(--logo-bg, #fff); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.folder__cover img.is-contain, .project__cover img.is-contain { object-fit: contain; padding: var(--logo-pad, 14%); }
.project__cover { overflow: hidden; }
.project__cover { position: relative; }
.project__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.folder__name { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin-top: 20px; }
.folder__count { color: var(--muted); font-size: 13px; margin-top: 2px; }
.folder__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: auto; padding-top: 28px; }
.folder__role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); max-width: 16ch; line-height: 1.7; }
.folder__year { font-size: 15px; color: var(--muted); white-space: nowrap; }
.folder__year b { font-weight: 500; color: var(--text); }
.todo { opacity: .45; font-style: italic; }

/* ---------- contact ---------- */
.contact { padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(56px, 8vw, 100px); }
.contact__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 84px); line-height: 1; letter-spacing: -.04em; margin-bottom: 30px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__links a, .contact__links span { padding: 13px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.contact__links a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.contact__links span { color: var(--muted); border-style: dashed; }

.foot { background: var(--bg);  display: flex; justify-content: space-between; gap: 16px; max-width: 1000px; margin: 0 auto; padding: 22px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- opened folder ---------- */
.project { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow-y: auto; }
.project::backdrop { background: var(--bg); }
.project[open] { animation: rise .35s cubic-bezier(.2, .7, .2, 1); }

/* ---------- about ---------- */
.about__inner { max-width: 760px; position: relative; }
.about__label { margin: clamp(20px, 5svh, 48px) 0 clamp(14px, 3svh, 26px); }
.about__text p {
  white-space: pre-line;
  margin: 0 0 .65em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, min(2.6vw, 3.1svh), 25px);
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.about__text p:not(:first-child) { color: rgba(241, 242, 244, .8); }
.about__text p:last-child { margin-bottom: 0; color: var(--text); }
.about[open] .about__text p { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * .1s + .15s); }
.about__links { margin-top: clamp(18px, 4svh, 36px); }
.about__inner { padding-bottom: 24px; }
.about__links a { padding: 10px 18px; font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.project__inner { max-width: 1000px; margin: 0 auto; padding: 22px var(--pad) 80px; }
.project__head { display: flex; align-items: center; gap: 22px; margin: 44px 0 22px; }
.project__cover { flex: none; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); font-family: var(--display); font-weight: 800; font-size: 40px; color: rgba(255, 255, 255, .92); }
.project__name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5.4vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.project__role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.project__about { max-width: 56ch; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; text-wrap: pretty; }
.project__name { margin-top: 8px; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project__links:empty { display: none; }
.project .facts { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.project__label { margin: 56px 0 0; }
.project__note { margin-top: 40px; color: var(--muted); font-size: 14px; }
.project__note:empty { display: none; }
.project__note + .project__label { margin-top: 14px; }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.story:empty { display: none; }
.story li { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.story h4 { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.story p { font-size: 16px; line-height: 1.5; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: 20px; }
.gallery button { padding: 0; border: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; text-align: left; }
.gallery img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: contain; background: var(--surface); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gallery button:hover img { transform: scale(1.04); }
.gallery span { display: block; padding: 10px 14px 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: 20px; }
.grid .card--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 60px 16px 20px; border: 0; background: rgba(10, 9, 8, .95); color: var(--text); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius: var(--radius); }
.lightbox__stage video, .lightbox__stage iframe { max-width: 100%; max-height: 100%; border: 0; border-radius: var(--radius); background: #000; }
.lightbox__stage video { height: min(calc(100dvh - 190px), 760px); width: auto; aspect-ratio: 9 / 16; max-width: 100%; object-fit: contain; }
.lightbox__stage iframe { width: min(100%, 1280px); aspect-ratio: 16 / 9; height: auto; }
.lightbox__stage iframe.is-vertical { width: auto; height: calc(100dvh - 190px); aspect-ratio: 9 / 16; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.lightbox__caption { color: var(--muted); font-size: 14px; }
.lightbox__close { position: absolute; top: 14px; right: 16px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(241, 242, 244, .9); color: var(--bg); font-size: 20px; cursor: pointer; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden], #lightbox-link[hidden] { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__media, .folder { transition: none; }
  .hero__emoji, .project[open], .hero__title, .hero .facts, .hero__actions, .reel, .about[open] .about__text p { animation: none; }
}

/* index.html?still — no motion, for screenshots */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .reveal { opacity: 1; transform: none; }

/* ---------- about: underlined words with photos ---------- */
.about__word { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; text-decoration-color: rgba(241, 242, 244, .45); transition: text-decoration-color .2s; }
.about__word:hover, .about__word.is-on { text-decoration-color: var(--text); }
.about__photo { position: absolute; z-index: 5; margin: 0; padding: 7px; background: #f4f1ea; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); transform: rotate(var(--rot, 0deg)); animation: photo-pop .45s cubic-bezier(.2, .9, .3, 1.2) both; cursor: pointer; }
.about__photo img { display: block; width: 100%; max-height: 38svh; object-fit: cover; border-radius: 2px; }
@keyframes photo-pop { from { opacity: 0; transform: translateY(14px) scale(.85) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .about__photo { animation: none; } }
