/* ==========================================================================
   Quadrix Solutions — Portfolio
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand (sampled from the Quadrix banner + logo) */
  --navy-950: #050a1c;
  --navy-900: #070d24;
  --navy-850: #08122f;
  --navy-800: #0b1838;
  --navy-700: #12224a;
  --blue-500: #1c86ff;
  --blue-400: #2b9dff;
  --cyan-400: #35cdf6;
  --indigo-500: #2a4dff;

  --bg: var(--navy-900);
  --bg-alt: var(--navy-950);
  --surface: rgba(140, 170, 255, 0.045);
  --surface-hover: rgba(140, 170, 255, 0.075);
  --border: rgba(140, 175, 255, 0.13);
  --border-strong: rgba(140, 175, 255, 0.24);
  --text: #eaf0ff;
  --text-soft: #c3cdea;
  --muted: #8f9cc2;

  --grad: linear-gradient(120deg, var(--cyan-400) 0%, var(--blue-500) 50%, var(--indigo-500) 100%);
  --glow: 0 10px 40px -12px rgba(28, 134, 255, 0.55);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 6px;
}

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-500); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -12px rgba(53, 205, 246, 0.6); }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-hover); border-color: rgba(53, 205, 246, 0.5); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }
.icon-btn svg { font-size: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 13, 36, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-scrolled { background: rgba(6, 11, 30, 0.86); border-bottom-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; }
.brand__word {
  font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: 0.16em;
}
.brand__x { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand--sm .brand__mark { width: 28px; height: 28px; }
.brand--sm .brand__word { font-size: 15px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-soft); font-size: 15px; font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); background: var(--surface-hover); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  place-items: center;
}
.nav__toggle svg { font-size: 22px; }

@media (max-width: 760px) {
  .nav__toggle { display: inline-grid; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: #060b1e;
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: #060b1e; }
  .nav__links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 50% at 12% 70%, rgba(28, 80, 200, 0.28), transparent 70%),
    radial-gradient(40% 40% at 88% 12%, rgba(20, 110, 170, 0.22), transparent 70%),
    linear-gradient(#091536, var(--bg) 92%);
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero::before {
  /* faint dot grid like the banner */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(150, 180, 255, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(#000, transparent 85%);
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
}

.hero__banner {
  position: relative;
  max-width: 1640px; margin-inline: auto;
}
.hero__banner img {
  width: 100%;
  aspect-ratio: 1640 / 624;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

.hero__body {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: clamp(-90px, -5vw, -24px);
}
.hero__lead {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px); color: var(--text-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin: 44px 0 0; width: 100%; max-width: 640px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stats div { display: flex; flex-direction: column; gap: 2px; background: rgba(7, 13, 36, 0.92); padding: 18px 12px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd {
  order: -1;
  margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 600px) {
  .hero__banner img { aspect-ratio: auto; height: 230px; object-position: 50% 45%; }
  .hero__body { margin-top: -8px; }
  .hero__actions .btn { flex: 1 1 200px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(42, 77, 255, 0.10), transparent 70%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2, .contact h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan-400);
}
.eyebrow span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px;
  border: 1px solid rgba(53, 205, 246, 0.35); background: rgba(53, 205, 246, 0.08);
  letter-spacing: 0.08em;
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }

.project {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.project:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-3px); }

.project__shot { display: block; padding: 14px 14px 0; position: relative; }
.browser {
  border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid var(--border-strong); border-bottom: 0;
  background: #0d1735;
}
.browser__bar {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px;
  background: #101c40; border-bottom: 1px solid var(--border);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a66; }
.browser__url {
  flex: 1; min-width: 0;
  height: 22px; line-height: 22px; padding: 0 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05); color: var(--muted);
  font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; background: #0d1735; }
.browser__view img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .browser__view img { transform: scale(1.035); }
.project__open {
  position: absolute; right: 26px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(5, 10, 28, 0.82); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.project:hover .project__open, .project__shot:focus-visible .project__open { opacity: 1; transform: none; }

.project__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; border-top: 1px solid var(--border); }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.project h3 { font-size: 24px; font-weight: 700; }
.project h3 a:hover { color: var(--cyan-400); }
.project__desc { color: var(--text-soft); font-size: 15px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { color: #4ade9b; border-color: rgba(74, 222, 155, 0.35); background: rgba(74, 222, 155, 0.08); }
.badge--early { color: #fbbf5c; border-color: rgba(251, 191, 92, 0.35); background: rgba(251, 191, 92, 0.08); }
.badge--dev { color: var(--cyan-400); border-color: rgba(53, 205, 246, 0.35); background: rgba(53, 205, 246, 0.08); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 12.5px;
}

/* "Your project next" card */
.project--cta {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 36px);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(28, 134, 255, 0.16), transparent 60%),
    var(--surface);
  border-style: dashed;
}
.project--cta h3 { font-size: clamp(20px, 2.4vw, 26px); }
.project--cta p { color: var(--muted); margin-top: 6px; }
.project--cta:hover { transform: none; }

@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
  .project--cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 3vw, 28px); }

.album {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 0; background: none;
}
.album__stack { position: relative; aspect-ratio: 16 / 10; margin: 18px 18px 0; }
.album__stack > div {
  position: absolute; inset: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--navy-800);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.album__stack img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.album__stack .layer-3 { transform: rotate(-5deg) translate(-10px, 4px) scale(.94); opacity: .55; }
.album__stack .layer-2 { transform: rotate(3.5deg) translate(10px, -2px) scale(.97); opacity: .8; }
.album__stack .layer-1 { box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); }
.album:hover .layer-3, .album:focus-visible .layer-3 { transform: rotate(-9deg) translate(-26px, 6px) scale(.94); }
.album:hover .layer-2, .album:focus-visible .layer-2 { transform: rotate(6deg) translate(24px, -6px) scale(.97); }
.album:hover .layer-1, .album:focus-visible .layer-1 { transform: translateY(-4px); }

.album__count {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(5, 10, 28, 0.82); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600;
}
.album__info { padding: 22px 4px 0; }
.album__business { color: var(--cyan-400); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.album__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin-top: 6px; }
.album__desc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.album:focus-visible { outline-offset: 6px; border-radius: var(--radius); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2.4vw, 24px); }

.member {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px 20px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(28, 134, 255, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.member:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.avatar {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--grad);
  font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: 0.04em; color: #fff;
  box-shadow: 0 0 0 4px var(--navy-900), 0 0 0 5px rgba(53, 205, 246, 0.45), var(--glow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 20px; font-weight: 700; margin-top: 20px; }

.member__site {
  max-width: 100%; margin-top: 4px;
  color: var(--muted); font-size: 13.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.member__action { width: 100%; margin-top: auto; padding-top: 22px; }
.member__link { width: 100%; }
.member__soon {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--muted); font-size: 14px;
}
/* Long emails: shorten the username with "…" and keep "@gmail.com" visible, on one line */
.email { display: flex; min-width: 0; white-space: nowrap; }
.email__user { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.email__domain { flex: none; }

/* ---------- Contact ---------- */
.section--contact { padding-top: 0; }
.contact {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(70% 120% at 0% 100%, rgba(42, 77, 255, 0.30), transparent 60%),
    radial-gradient(60% 100% at 100% 0%, rgba(53, 205, 246, 0.16), transparent 60%),
    var(--navy-800);
  position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; right: -60px; bottom: -80px;
  width: 300px; height: 300px;
  background: url("../assets/brand/mark.png") center / contain no-repeat;
  opacity: .08; pointer-events: none;
}
.contact__list { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(5, 10, 28, 0.55); border: 1px solid var(--border);
  transition: border-color .2s ease, background-color .2s ease;
}
.contact__list a:hover { border-color: rgba(53, 205, 246, 0.5); background: rgba(5, 10, 28, 0.75); }
.contact__icon {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(53, 205, 246, 0.1); color: var(--cyan-400);
}
.contact__icon svg { font-size: 20px; }
.contact__label { display: block; color: var(--muted); font-size: 12.5px; }
.contact__text { min-width: 0; flex: 1; }
.contact__value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.contact__value.is-muted { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-alt); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__note { color: var(--muted); font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(3, 6, 18, 0.96); color: var(--text);
  display: none; flex-direction: column;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(3, 6, 18, 0.8); backdrop-filter: blur(6px); }

.lightbox__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
}
.lightbox__business { color: var(--cyan-400); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lightbox__title { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin-top: 2px; }

.lightbox__stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 var(--gutter);
}
.lightbox__stage { align-items: stretch; }
.lightbox__nav { align-self: center; }
.lightbox__figure { margin: 0; flex: 1; min-width: 0; position: relative; }
.lightbox__figure img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  touch-action: pan-y;
  user-select: none; -webkit-user-drag: none;
}
.lightbox__figure img.is-loading { opacity: 0; }
.lightbox__figure img { transition: opacity .2s ease; }
.lightbox__nav { flex: none; }

.lightbox__bottom { padding: 14px var(--gutter) 18px; }
.lightbox__caption { text-align: center; color: var(--text-soft); font-size: 15px; min-height: 24px; }
.lightbox__count { color: var(--muted); font-size: 13px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.lightbox__thumbs {
  display: flex; gap: 8px; justify-content: safe center;
  margin-top: 12px; overflow-x: auto; padding: 4px 2px;
  scrollbar-width: thin;
}
.lightbox__thumbs button {
  flex: none; width: 76px; height: 50px; padding: 0;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--navy-800);
  opacity: .5; transition: opacity .2s ease, border-color .2s ease;
}
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--cyan-400); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

@media (max-width: 600px) {
  .lightbox__nav { position: absolute; bottom: 12px; z-index: 2; background: rgba(5, 10, 28, 0.8); }
  .lightbox__nav--prev { left: calc(var(--gutter) + 6px); }
  .lightbox__nav--next { right: calc(var(--gutter) + 6px); }
  .lightbox__stage { padding: 0 var(--gutter); }
  .lightbox__thumbs button { width: 60px; height: 40px; }
}

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

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

.noscript { text-align: center; padding: 24px; color: var(--muted); }
body.lb-open { overflow: hidden; }
