/* ==========================================================================
   Cristo Luís Chikale — portfolio
   Tokens, base, layout, components, motion
   ========================================================================== */

:root {
  /* Colour: black, gold, white */
  --black: #000000;
  --gold: #c9a227;
  --gold-deep: #a8841a;
  --gold-soft: rgba(201, 162, 39, 0.38);
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-small: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  --fs-h2: clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);
  --fs-hero: clamp(3.4rem, 1rem + 10.5vw, 10.5rem);

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --maxw: 1200px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3 { margin: 0; font-weight: 400; color: var(--white); }

p { margin: 0 0 1.1em; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- The gold thread ---------- */
.thread {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 1px;
  background: rgba(201, 162, 39, 0.16);
  z-index: 40;
  pointer-events: none;
  display: none;
}
.thread__line {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top center;
  transform: scaleY(0);
}
@media (min-width: 1180px) {
  .thread { display: block; }
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--gold-soft);
}

.nav {
  height: var(--header-h);
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}
.nav__mono {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--gold); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.lang__btn {
  padding: 0.35rem 0.3rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}
.lang__btn:hover { color: var(--white); }
.lang__btn[aria-pressed="true"] { color: var(--gold); }
.lang__sep { color: rgba(255, 255, 255, 0.3); }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}
.nav__toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle-bar:nth-child(1) { top: 17px; }
.nav__toggle-bar:nth-child(2) { top: 26px; }
.is-open .nav__toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); background: var(--gold); }
.is-open .nav__toggle-bar:nth-child(2) { top: 21px; transform: rotate(-45deg); background: var(--gold); }

@media (max-width: 959px) {
  .nav__toggle { display: block; }
  .nav__name { font-size: 1.05rem; }

  .nav__menu {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .is-open .nav__menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease), visibility 0s;
  }
  .nav__links { flex-direction: column; gap: 0.4rem; }
  .nav__links a {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--white);
  }
  .nav__links a::after { display: none; }
  .lang { font-size: 1rem; }
  .is-open.site-header { background: var(--black); }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.badge--live::before {
  background: var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6); }
  60% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__slide.is-active img { animation: kenburns-a 18s linear forwards; }
.hero__slide:nth-child(even).is-active img { animation-name: kenburns-b; }

@keyframes kenburns-a {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2%, -1.5%, 0); }
}
@keyframes kenburns-b {
  from { transform: scale(1.16) translate3d(2%, 1%, 0); }
  to   { transform: scale(1.04) translate3d(0, 0, 0); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 38%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 65%);
}

.hero__content {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(4.5rem, 10vh, 7rem);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.hero__name-line { display: block; }
.hero__name-line + .hero__name-line { padding-left: 0.6em; }

.hero__role {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.hero__role::before {
  content: "";
  flex: none;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: var(--gold);
}

.hero__tagline {
  max-width: 34em;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  margin: 0;
  max-width: 60%;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.hero__caption-text { transition: opacity 0.6s var(--ease); }
.hero__caption-text.is-fading { opacity: 0; }

/* Page-load sequence: the only orchestrated entrance on the page */
.hero__name-line,
.hero__role,
.hero__tagline,
.hero__actions {
  animation: rise 1.3s var(--ease) both;
}
.hero__name-line:nth-child(2) { animation-delay: 0.12s; }
.hero__role { animation-delay: 0.45s; }
.hero__tagline { animation-delay: 0.6s; }
.hero__actions { animation-delay: 0.75s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }

.section__head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.section__head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--gold);
}
@media (min-width: 860px) {
  .section__head { grid-template-columns: 1fr 1fr; align-items: end; }
}

.section__title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section__intro {
  margin: 0;
  color: var(--muted);
  max-width: 30em;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: 5rem; }
}

.about__statement { max-width: 40em; }
.lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 1.6em;
}

.facts { margin: 0; align-self: start; }
.facts__row {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  color: var(--gold);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.facts dd {
  margin: 0;
  color: var(--white);
  font-size: 0.975rem;
  line-height: 1.55;
}
.facts dd span { display: block; }
.facts dd span + span { margin-top: 0.5rem; }

/* ---------- Films ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  outline: 1px solid var(--line);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.video__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.78);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.video__facade:hover img,
.video__facade:focus-visible img { transform: scale(1.03); filter: saturate(1) brightness(0.9); }
.video__facade:focus-visible { outline-offset: -4px; }

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(60px, 8vw, 84px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0, 0, 0, 0.45);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.video__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--gold);
}
.video__facade:hover .video__play { background: var(--gold); transform: translate(-50%, -50%) scale(1.05); }
.video__facade:hover .video__play::after { border-left-color: var(--black); }

.film__title {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.film__alt {
  margin: 0.35rem 0 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}
.film__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0 0 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.film__meta dt { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.03em; }
.film__meta dd { margin: 0; color: var(--white); font-size: 0.95rem; }
.film__text { max-width: 36em; }
.film__video-label { font-size: var(--fs-small); color: var(--muted); margin: 0; }

.film--feature {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .film--feature {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }
  .film--feature .film__title { font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); }
}

.films__pair {
  display: grid;
  gap: 4rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}
@media (min-width: 860px) {
  .films__pair { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.films__pair .film__media { margin-bottom: 1.75rem; }

.switch {
  display: inline-flex;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
}
.switch__btn {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.switch__btn + .switch__btn { border-left: 1px solid var(--gold-soft); }
.switch__btn:hover { color: var(--white); }
.switch__btn[aria-pressed="true"] { background: var(--gold); color: var(--black); }

/* ---------- Current project ---------- */
.project {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: var(--section) 0;
  overflow: hidden;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.project__bg { position: absolute; inset: 0; z-index: -1; }
.project__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.55); }
.project__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.project__card { max-width: 37rem; }
.project__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.project__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.35;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.project__card > p:not(.badge):not(.project__sub) { color: rgba(255, 255, 255, 0.88); }
.project__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-soft);
}
.project__meta dt { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.03em; }
.project__meta dd { margin: 0; color: var(--white); font-size: 0.95rem; }

.project__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  max-width: 60%;
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gallery__item { aspect-ratio: 3 / 2; position: relative; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.6s var(--ease);
}
.gallery__btn:hover img,
.gallery__btn:focus-visible img { transform: scale(1.04); }
.gallery__btn:focus-visible { outline-offset: -3px; }

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  font-size: 0.75rem;
  color: var(--white);
  text-align: left;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__btn:hover .gallery__cap,
.gallery__btn:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery__item--wide .gallery__cap { opacity: 1; transform: none; }
}

/* ---------- Experience ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 62rem;
}
.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
  .timeline__item { grid-template-columns: 11rem 1fr; align-items: baseline; }
}
.timeline__years {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.timeline__role {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}
.timeline__org { margin: 0.2rem 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 0.6rem + 4.4vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white);
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.15em;
  transition: color 0.35s var(--ease), background-size 0.6s var(--ease);
}
.contact__email:hover,
.contact__email:focus-visible { color: var(--gold); background-size: 100% 1px; }

.contact__list {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 40rem;
}
.contact__list li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--white);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__label { color: var(--gold); font-size: var(--fs-small); font-weight: 500; padding-top: 0.15em; }
.contact__list a { border-bottom: 1px solid var(--gold-soft); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); justify-self: start; }
.contact__list a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--gold-soft);
  padding: 2rem 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer__top { color: var(--gold); }
.site-footer__top:hover { color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.96);
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox[open] { display: grid; place-items: center; animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 4.5rem 3.5rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__caption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 40em;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  top: 1.6rem;
  left: 1.25rem;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--gold);
}
@media (max-width: 640px) {
  .lightbox__figure { padding: 4rem 0.75rem 6rem; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

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

/* ---------- Mobile tweaks ---------- */
@media (max-width: 520px) {
  .hero__caption { left: var(--gutter); right: var(--gutter); max-width: none; text-align: left; bottom: 1rem; }
  .hero__content { padding-bottom: 4.5rem; }
  .hero__name-line + .hero__name-line { padding-left: 0; }
  .hero__role::before { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__list li { grid-template-columns: 1fr; gap: 0.15rem; }
  .project__credit { left: var(--gutter); max-width: none; text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__slide.is-active img { animation: none; transform: scale(1.04); }
}
