/* ==========================================================================
   SKK CONSULTANTS — components.css
   Reusable blocks shared across pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MEDIA FRAME
   Every large photo sits in a frame that reserves its aspect ratio so the
   page doesn't jump while images stream in.
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--c-concrete);
}
.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--landscape { aspect-ratio: 4 / 3; }
.frame--wide      { aspect-ratio: 16 / 9; }
.frame--cinema    { aspect-ratio: 21 / 9; }
.frame--portrait  { aspect-ratio: 3 / 4; }
.frame--tall      { aspect-ratio: 2 / 3; }
.frame--square    { aspect-ratio: 1 / 1; }

/* Sand rule offset behind a feature image — used once or twice per page */
.frame--offset::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 42%;
  height: 42%;
  border-right: 3px solid var(--c-brand);
  border-bottom: 3px solid var(--c-brand);
  pointer-events: none;
}

/* Caption strip pinned to the bottom of a photo */
.frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(to top, rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0));
  color: var(--c-white);
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   2. HERO SLIDER
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 1000px;
  background: var(--s-dark-2);
  overflow: hidden;
  color: var(--c-white);
}

.hero__track { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

/* Slow drift on the active slide only — one deliberate motion moment */
.hero__slide.is-active img {
  animation: hero-drift 9s var(--ease) forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.35) 42%, rgba(12, 12, 12, 0.55) 100%),
    linear-gradient(100deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.15) 58%, rgba(12, 12, 12, 0) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: clamp(6rem, 12vh, 9rem);
}

.hero__copy { max-width: 60rem; }

.hero__caption {
  display: none;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: var(--sp-4);
}
.hero__caption::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--c-brand);
}
.hero__caption.is-active { display: flex; }

.hero__title {
  font-size: var(--t-4xl);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--c-white);
  max-width: 16ch;
  display: none;
}
.hero__title.is-active { display: block; }

.hero__sub {
  display: none;
  margin-top: var(--sp-5);
  max-width: 48ch;
  font-size: var(--t-md);
  color: rgba(255, 255, 255, 0.84);
}
.hero__sub.is-active { display: block; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

/* Slide text swaps in with a short lift */
.hero__copy .is-active { animation: hero-copy 0.7s var(--ease) both; }
@keyframes hero-copy {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Controls bar across the bottom of the hero */
.hero__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(to top, rgba(12, 12, 12, 0.55), rgba(12, 12, 12, 0));
}

.hero__bar-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--sp-4) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.hero__count {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.hero__count b { color: var(--c-white); font-size: 1.4rem; }

.hero__dots { display: flex; gap: 0.6rem; }

.hero__dot {
  position: relative;
  width: 46px;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active::after {
  animation: hero-progress var(--hero-delay, 6500ms) linear forwards;
}
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__arrows { display: flex; gap: 0.5rem; }

.hero__arrow {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--c-white);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__arrow:hover { background: var(--c-brand); border-color: var(--c-brand); }
.hero__arrow .icon { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .hero { height: 92svh; min-height: 520px; }
  .hero__arrows { display: none; }
  .hero__dot { width: 30px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   3. STAT STRIP
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  background: var(--s-dark);
  color: var(--c-white);
  overflow: hidden;
}

.stats__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(1);
}
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 32, 32, 0.96) 0%, rgba(32, 32, 32, 0.75) 100%);
}

.stats__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(2.25rem, 1rem + 3.5vw, 3.5rem);
}

.stat { padding-inline: clamp(1rem, 2vw, 2rem); }
.stat + .stat { border-left: 1px solid var(--c-rule-dark); }

.stat__num {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-white);
}
.stat__num span { color: var(--c-brand-light); }

.stat__label {
  margin-top: 0.6rem;
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 230, 227, 0.62);
}

@media (max-width: 780px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3) { border-left: 0; }
}

/* --------------------------------------------------------------------------
   4. SERVICE CARDS (large photographic tiles)
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  background: var(--c-rule);
}

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--c-charcoal);
  color: var(--c-white);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.92) 6%, rgba(12, 12, 12, 0.45) 46%, rgba(12, 12, 12, 0.1) 100%);
  transition: background 0.5s var(--ease);
}

.service-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--sp-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

.service-card__title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card__desc {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin-top 0.45s var(--ease);
}

.service-card__go {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover img,
.service-card:focus-visible img { transform: scale(1.06); }
.service-card:hover::after,
.service-card:focus-visible::after {
  background: linear-gradient(to top, rgba(12, 12, 12, 0.95) 10%, rgba(12, 12, 12, 0.6) 60%, rgba(120, 30, 30, 0.25) 100%);
}
.service-card:hover .service-card__desc,
.service-card:focus-visible .service-card__desc { max-height: 5rem; opacity: 1; }
.service-card:hover .service-card__go,
.service-card:focus-visible .service-card__go { background: var(--c-brand); border-color: var(--c-brand); }

/* Always show the description on touch devices — there is no hover there */
@media (hover: none) {
  .service-card__desc { max-height: 5rem; opacity: 1; }
}

/* --------------------------------------------------------------------------
   5. BENEFIT LIST (Why SKK)
   -------------------------------------------------------------------------- */
.benefits { display: grid; gap: 0; }

.benefit {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-rule);
}
.benefit:first-child { padding-top: 0; }

.section--dark .benefit { border-bottom-color: var(--c-rule-dark); }

.benefit__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: rgba(165, 42, 42, 0.1);
  color: var(--c-brand);
}
.section--dark .benefit__icon { background: rgba(165, 42, 42, 0.24); color: var(--c-sand); }
.benefit__icon .icon { width: 22px; height: 22px; }

.benefit h3 { font-size: 1.1875rem; }
.benefit p {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  color: var(--c-ink-muted);
  max-width: 46ch;
}
.section--dark .benefit p { color: rgba(232, 230, 227, 0.68); }

/* --------------------------------------------------------------------------
   6. PROJECT MASONRY (featured projects)
   -------------------------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--sp-3);
}

.project {
  position: relative;
  overflow: hidden;
  background: var(--c-charcoal);
  color: var(--c-white);
}

.project img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.2) 55%, rgba(12, 12, 12, 0) 100%);
  transition: background 0.5s var(--ease);
}

.project__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--sp-5);
}

.project__cat {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: 0.5rem;
}

.project__title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
}

.project__desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 42ch;
}

.project__go {
  margin-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1.5px solid var(--c-brand);
  padding-bottom: 3px;
}

.project:hover img { transform: scale(1.05); }
.project:hover::after {
  background: linear-gradient(to top, rgba(12, 12, 12, 0.94) 0%, rgba(12, 12, 12, 0.45) 65%, rgba(12, 12, 12, 0.1) 100%);
}

/* Deliberate rhythm — no two adjacent tiles the same size */
.project--hero  { grid-column: span 2; grid-row: span 2; }
.project--tall  { grid-column: span 1; grid-row: span 2; }
.project--wide  { grid-column: span 2; grid-row: span 1; }

@media (max-width: 1000px) {
  .projects { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .project--hero { grid-column: span 2; grid-row: span 2; }
  .project--tall { grid-row: span 2; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .project--hero, .project--wide, .project--tall { grid-column: span 1; grid-row: span 1; }
}

/* --------------------------------------------------------------------------
   7. CAPABILITY MOSAIC
   -------------------------------------------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 190px);
  gap: 3px;
}

.mosaic__tile {
  position: relative;
  overflow: hidden;
  background: var(--c-charcoal);
  color: var(--c-white);
  display: block;
}

.mosaic__tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.mosaic__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.35);
  transition: background 0.4s var(--ease);
}

.mosaic__label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mosaic__label .icon { width: 16px; height: 16px; color: var(--c-sand); }

.mosaic__tile:hover img,
.mosaic__tile:focus-visible img { transform: scale(1.07); filter: grayscale(0) contrast(1); }
.mosaic__tile:hover::after,
.mosaic__tile:focus-visible::after {
  background: linear-gradient(to top, rgba(12, 12, 12, 0.85), rgba(165, 42, 42, 0.2));
}
.mosaic__tile:hover .mosaic__label,
.mosaic__tile:focus-visible .mosaic__label { opacity: 1; transform: none; }

@media (hover: none) {
  .mosaic__label { opacity: 1; transform: none; }
  .mosaic__tile::after { background: linear-gradient(to top, rgba(12, 12, 12, 0.8), rgba(12, 12, 12, 0.1)); }
  .mosaic__tile img { filter: none; }
}

.mosaic__tile--w2 { grid-column: span 2; }
.mosaic__tile--w3 { grid-column: span 3; }
.mosaic__tile--h2 { grid-row: span 2; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic__tile--w3 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .mosaic__tile--w2, .mosaic__tile--w3 { grid-column: span 2; }
  .mosaic__tile--h2 { grid-row: span 1; }
}

/* --------------------------------------------------------------------------
   8. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.testimonials__media { position: relative; min-height: 320px; }
.testimonials__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonials__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(165, 42, 42, 0.35), rgba(12, 12, 12, 0.6));
}
.testimonials__quote {
  position: absolute;
  inset: auto var(--sp-5) var(--sp-5) var(--sp-5);
  z-index: 2;
  color: var(--c-white);
}
.testimonials__quote p {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.testimonials__quote span {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sand);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-rule);
  border-top: 3px solid var(--c-brand);
}
.section--dark .testimonial {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--c-rule-dark);
  border-top-color: var(--c-brand);
}

.rating { display: flex; gap: 2px; margin-bottom: var(--sp-3); color: var(--c-brand); }
.rating .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating__star--empty { color: var(--c-rule); }
.section--dark .rating__star--empty { color: rgba(232, 230, 227, 0.3); }

.testimonial blockquote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-slate);
  flex: 1;
}
.section--dark .testimonial blockquote { color: rgba(232, 230, 227, 0.8); }

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-rule);
}
.section--dark .testimonial figcaption { border-top-color: var(--c-rule-dark); }

.testimonial__avatar {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--c-charcoal);
  color: var(--c-sand);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.section--dark .testimonial__avatar { background: var(--c-brand); color: var(--c-white); }

.testimonial__who { line-height: 1.35; }
.testimonial__who b { display: block; font-size: 0.9375rem; font-weight: 600; }
.testimonial__who span { font-size: var(--t-xs); color: var(--c-ink-faint); }
.section--dark .testimonial__who span { color: rgba(232, 230, 227, 0.55); }

@media (max-width: 1000px) {
  .testimonials { grid-template-columns: 1fr; }
  .testimonials__media { min-height: 260px; }
}
@media (max-width: 620px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. PARTNERS
   -------------------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: var(--sp-6) var(--sp-4);
  background: var(--c-white);
  text-align: center;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.partner:hover { filter: none; opacity: 1; }

.partner__mark {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-charcoal);
}
.partner__mark em {
  font-style: normal;
  color: var(--c-brand);
}
.partner__kind {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

/* --------------------------------------------------------------------------
   10. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--s-dark-2);
  color: var(--c-white);
  isolation: isolate;
}

.cta-band__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(12, 12, 12, 0.93) 0%, rgba(12, 12, 12, 0.7) 50%, rgba(120, 30, 30, 0.45) 100%);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.cta-band h2 {
  font-size: var(--t-3xl);
  color: var(--c-white);
  max-width: 15ch;
}
.cta-band p {
  margin-top: var(--sp-4);
  max-width: 44ch;
  font-size: var(--t-md);
  color: rgba(255, 255, 255, 0.8);
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   11. LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(10, 10, 10, 0.96);
  padding: clamp(1rem, 3vw, 3rem);
}
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; gap: var(--sp-4); }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 3;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--c-white);
  transition: background-color 0.3s var(--ease);
}
.lightbox__close:hover { background: var(--c-brand); border-color: var(--c-brand); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--c-white);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox__nav:hover { background: var(--c-brand); border-color: var(--c-brand); }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

.lightbox__meta {
  max-width: var(--wrap);
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  color: var(--c-white);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--sp-4);
}
.lightbox__cat {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-sand);
}
.lightbox__title {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 0.35rem;
}
.lightbox__desc {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 62ch;
}
.lightbox__index {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__desc { display: none; }
}

/* --------------------------------------------------------------------------
   12. SCROLL REVEAL
   Kept to a single, quiet fade — no per-card bounce.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
