/* =============================================================
   VITOR DUARTE — vitordmp.com
   Sydney Corporate Event & Live Music Photographer
   Dark · ultra-minimal · luxury. High-end gallery after hours.
   ============================================================= */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Colour */
  --bg:               #0C0C0C;
  --text:             #F0EDE8;
  --text-muted:       #888880;
  --accent:           #C8A96E;   /* warm gold — hover states only */
  --placeholder:      #1A1A1A;
  --placeholder-dark: #111111;   /* concerts — moodier */
  --light:            #F0EDE8;
  --light-ink:        #0C0C0C;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Navigation */
  --label-size:  11px;
  --label-track: 0.2em;
  --nav-h:       clamp(58px, 7.5vh, 76px);

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  120px;
  --gutter:    clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --img-scale: 1.03;
}

/* ----------------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;

  /* Page transition */
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
body.is-loaded  { opacity: 1; }
body.is-leaving { opacity: 0; }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ----------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ---------------------------------------------------------------- */
.label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text-muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
}

/* ----------------------------------------------------------------
   4. NAVIGATION (inner pages)
   Fixed. Gains backdrop after 40px scroll (added by JS).
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  transition: background 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}

.nav.nav--scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.nav-open .nav {
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.4s var(--ease);
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}
.nav__brand:hover { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
}

.nav__links a {
  position: relative;
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible               { color: var(--accent); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after        { transform: scaleX(1); }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 16px;
  background: none;
  border: 0;
  z-index: 201;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { bottom: 0; }

/* ----------------------------------------------------------------
   5. FOOTER
   ---------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--gutter);
  font-size: var(--label-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer a { transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

/* ----------------------------------------------------------------
   6. SCROLL-REVEAL
   ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------
   7. HOME — HERO GRID
   6 full-bleed image tiles fill the viewport. Work speaks first.
   Name overlays centred. No intro copy.

   To add real photos: set a background-image on each .hero-tile,
   or place <img class="hero-tile__img" loading="eager|lazy"> inside.
   First 3 tiles: loading="eager" (above the fold).
   ---------------------------------------------------------------- */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 50vh);
  gap: 1px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);    /* the 1px gap colour */
}

.hero-tile {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
  /* Vary brightness slightly so placeholders aren't identical */
}
.hero-tile:nth-child(2) { background: #171717; }
.hero-tile:nth-child(3) { background: #141414; }
.hero-tile:nth-child(4) { background: #131313; }
.hero-tile:nth-child(5) { background: #191919; }
.hero-tile:nth-child(6) { background: #161616; }

/* Tint layer over each tile — keeps name legible over bright photos */
.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.28);
  transition: background 0.8s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.hero-tile:hover::after { background: rgba(12, 12, 12, 0.10); }

/* Inline background-image or child <img> both scale on hover */
.hero-tile {
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease);
}
.hero-grid:hover .hero-tile { transform: none; } /* reset neighbours */
.hero-tile:hover { transform: scale(1.03); }

/* Real photo via <img> inside the tile.
   Portrait sources in landscape-ish tiles: bias the crop toward
   the upper third so faces stay in frame. */
.hero-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.9s var(--ease);
}
.hero-tile:hover .hero-tile__img { transform: scale(1.03); }

/* Name + subtitle overlay, perfectly centred */
.hero__over {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 8vw, 72px);
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  text-indent: 0.15em;
}

.hero__sub {
  margin-top: clamp(18px, 3vh, 28px);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.8;
}

/* Scroll indicator — animated vertical line */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 10;
  width: 1px;
  height: 40px;
  overflow: hidden;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 100%;
  background: var(--text-muted);
  animation: scrollDrop 2.6s var(--ease) infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  25%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  85%  { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ----------------------------------------------------------------
   8. HOME — NAVIGATION CARDS
   ---------------------------------------------------------------- */
.cards {
  display: grid;
  /* auto-fit handles any card count (currently five) */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  margin-top: clamp(48px, 8vh, 96px);   /* breathing room after the full-height hero */
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--placeholder);
}
.card__media {
  position: absolute;
  inset: 0;
  background: var(--placeholder);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media,
.card:focus-visible .card__media { transform: scale(var(--img-scale)); }

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.36);
  transition: background 0.6s var(--ease);
}
.card:hover .card__media::after { background: rgba(12, 12, 12, 0.16); }

.card__label {
  position: absolute;
  left: clamp(18px, 2.5vw, 32px);
  bottom: clamp(18px, 2.5vw, 28px);
  z-index: 2;
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text);
}
.card__index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.32em;
}

/* ----------------------------------------------------------------
   9. INNER PAGE SHELL
   ---------------------------------------------------------------- */
.page {
  padding-top: calc(var(--nav-h) + clamp(28px, 5vh, 52px));
  min-height: 100vh;
}
.page__title {
  text-align: center;
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(28px, 5vh, 52px);
}

/* ----------------------------------------------------------------
   10. MASONRY IMAGE GRID (events / concerts)
   ---------------------------------------------------------------- */
.grid {
  column-count: 2;
  column-gap: 2px;
  padding: 0 var(--gutter);
}
.grid--tight {
  column-gap: 0;
  padding: 0;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 2px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--placeholder);
  cursor: pointer;   /* tiles open the lightbox */
}
.grid--tight .tile { margin-bottom: 0; }
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

.tile--43 { aspect-ratio: 4 / 3; }
.tile--32 { aspect-ratio: 3 / 2; }
.tile--23 { aspect-ratio: 2 / 3; }   /* portrait — native ratio, no crop */

.tile__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--placeholder);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.grid--tight .tile__media { background: var(--placeholder-dark); }

.tile:hover .tile__media,
.tile:focus-visible .tile__media { transform: scale(var(--img-scale)); }

.grid--tight .tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 8, 8, 0.38);
  transition: background 0.6s var(--ease);
  pointer-events: none;
}
.grid--tight .tile:hover::before { background: rgba(8, 8, 8, 0.12); }

/* Hover label */
.tile__label {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 22px);
  z-index: 2;
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.tile:hover .tile__label,
.tile:focus-within .tile__label { opacity: 1; transform: none; }

/* Placeholder state — label shows faintly before real photos are added */
.tile:has(div.tile__media) .tile__label              { opacity: 0.28; transform: none; }
.tile:has(div.tile__media):hover .tile__label,
.tile:has(div.tile__media):focus-within .tile__label { opacity: 1; }

/* ----------------------------------------------------------------
   11. VENUES & CLIENTS strip
   ---------------------------------------------------------------- */
.clients {
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  text-align: center;
}
.clients__title {
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.clients__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  row-gap: 0.9em;
  font-size: var(--label-size);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* display:flex makes every child a flex item, so wrapping is driven by
   layout (flex-wrap) rather than by whitespace characters between tags —
   safe even when the markup has no space between adjacent <span>s. */
.clients__list span { white-space: nowrap; }
.clients__list .dot { color: var(--accent); margin: 0 0.7em; }

/* Mobile: tighter tracking + smaller gaps so venue names wrap cleanly
   without the strip feeling sparse on a narrow column. */
@media (max-width: 479px) {
  .clients__list {
    letter-spacing: 0.1em;
    row-gap: 0.7em;
  }
  .clients__list .dot { margin: 0 0.5em; }
}

/* ----------------------------------------------------------------
   12. ABOUT
   ---------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: calc(var(--nav-h) + clamp(28px, 5vh, 52px)) var(--gutter) var(--space-xl);
  max-width: 1440px;
  margin: 0 auto;
}

.about__heading {
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}
.about__sub {
  margin-top: var(--space-xs);
  font-size: var(--label-size);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about__body { margin-top: var(--space-lg); max-width: 56ch; }
.about__body p {
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.7em;
}
.about__body a {
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.about__body a:hover { color: var(--accent); border-color: var(--accent); }

.about__philosophy {
  margin-top: var(--space-md);
  max-width: 46ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
  color: var(--text);
}

/* Soft call-to-action closing the bio — quiet, not a banner */
.about__cta {
  margin-top: var(--space-lg);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  color: var(--text-muted);
}
.about__cta a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.about__cta a:hover { color: var(--accent); }

.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portrait:hover .portrait__media { transform: scale(var(--img-scale)); }
.portrait__label {
  position: relative;
  z-index: 1;
  font-size: var(--label-size);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   13. CONTACT — split panel
   ---------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.contact__visual {
  position: relative;
  background: var(--placeholder);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.contact__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.32);
}

.contact__panel {
  background: var(--light);
  color: var(--light-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(32px, 6vh, 72px))
           clamp(28px, 7vw, 100px)
           clamp(48px, 8vh, 96px);
}
.contact__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}
.contact__sub {
  margin-top: var(--space-sm);
  font-size: 14px;
  font-weight: 300;
  color: #6c6c64;
}

.form { margin-top: clamp(28px, 5vh, 48px); }
.field { position: relative; margin-bottom: var(--space-lg); }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8c8c84;
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ccc8c0;
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--light-ink);
  transition: border-color 0.4s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--light-ink); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230C0C0C' fill='none' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 26px;
}

.btn-submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  border: 0;
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-submit:hover { background: var(--accent); color: var(--bg); }

.contact__email {
  margin-top: var(--space-md);
  font-size: 13px;
  font-weight: 300;
  color: var(--light-ink);
}
.contact__email a {
  border-bottom: 1px solid #ccc8c0;
  transition: border-color 0.4s var(--ease);
}
.contact__email a:hover { border-color: var(--light-ink); }

.contact__foot {
  margin-top: var(--space-lg);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9e9e96;
}

/* Contact page: nav always shows backdrop (split layout fills viewport,
   no scroll headroom to trigger JS state)                              */
.page--contact .nav {
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ----------------------------------------------------------------
   14. 404
   ---------------------------------------------------------------- */
.fourohfour {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
.fourohfour h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 16vw, 160px);
  letter-spacing: 0.06em;
  line-height: 1;
}
.fourohfour p {
  margin-top: var(--space-md);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fourohfour a {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.fourohfour a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.fourohfour a:hover::after { transform: scaleX(1); }

/* ----------------------------------------------------------------
   15. LIGHTBOX  (built in JS, styled here)
   Full-screen image viewer. Near-black backdrop, image shown whole
   (object-fit: contain), thin minimal controls in the gold accent.
   ---------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

.lightbox__stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.lightbox__img.is-shown { opacity: 1; transform: none; }

/* Shared control styling — thin, quiet, gold on hover */
.lightbox__btn {
  position: absolute;
  z-index: 2;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { opacity: 1; color: var(--accent); }

/* Close — top right */
.lightbox__close {
  top: clamp(18px, 3vh, 34px);
  right: clamp(18px, 4vw, 44px);
  width: 40px;
  height: 40px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

/* Prev / Next — vertical centre, left & right edges */
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
}
.lightbox__prev { left: clamp(8px, 2.5vw, 40px); }
.lightbox__next { right: clamp(8px, 2.5vw, 40px); }

/* Counter — bottom centre */
.lightbox__count {
  position: absolute;
  bottom: clamp(18px, 3.5vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--label-size);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 767px) {
  .lightbox__nav  { width: 44px; height: 44px; font-size: 34px; }
  .lightbox__img,
  .lightbox__stage { max-width: 96vw; max-height: 84vh; }
}

/* ----------------------------------------------------------------
   16. RESPONSIVE
   ---------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1199px) {
  .about { grid-template-columns: 55% 45%; }
}

/* Mobile */
@media (max-width: 767px) {

  /* Hero grid: 2×2 on mobile (show only 4 tiles) */
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 50vh);
  }
  .hero-tile:nth-child(n+5) { display: none; }

  /* Nav collapses to hamburger + full-screen overlay */
  .nav {
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    z-index: 199;
  }
  body.nav-open .nav__links { transform: translateY(0); }

  .nav__links a {
    font-size: 14px;
    letter-spacing: 0.28em;
    color: var(--text);
  }
  .nav__links a::after { display: none; }

  /* Hamburger → X */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px)  rotate(45deg);  }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

  /* Cards and grids: single column */
  .cards { grid-template-columns: 1fr; }
  .card  { aspect-ratio: 16 / 10; }

  .grid        { column-count: 1; padding: 0; }
  .grid--tight { column-count: 1; }
  .tile        { margin-bottom: 2px; }
  .grid--tight .tile { margin-bottom: 1px; }

  .about {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-top: calc(var(--nav-h) + 28px);
  }
  .about__portrait { order: -1; max-width: 320px; }
  .about__body     { margin-top: var(--space-md); }

  .contact { grid-template-columns: 1fr; }
  .contact__visual { min-height: 45vw; }
  .contact__panel  { padding-top: clamp(40px, 8vw, 64px); }
}

/* ----------------------------------------------------------------
   17. REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body               { opacity: 1 !important; }
  [data-reveal]      { opacity: 1 !important; transform: none !important; }
  .lightbox__img     { opacity: 1 !important; transform: none !important; }
}
