/* YUP — live music & festival photography portfolio
   Dark, monochrome, photography-first. Mobile-first responsive. */

@font-face {
  font-family: "Quartzo";
  src: url("assets/fonts/quartzo.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --panel: #161616;
  --line: rgba(255, 255, 255, 0.1);
  --white: #f5f5f3;
  --grey: #a3a29e;
  --grey-dim: #6f6e6a;
  --yup-yellow: #e2be26;
  --font-display: "Quartzo", "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gap: clamp(2px, 0.4vw, 6px);
  --edge: clamp(16px, 5vw, 48px);
  --header-h: clamp(150px, 22vh, 260px);
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 12px 18px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: var(--edge);
  top: var(--edge);
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.notice-bar {
  margin: 0;
  width: 100%;
  text-align: center;
  padding: 7px var(--edge);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--black);
  background: var(--yup-yellow);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.4vw, 22px) var(--edge) clamp(4px, 1vw, 10px);
}

.topbar-mark img {
  height: clamp(64px, 12vw, 140px);
  width: auto;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--edge) clamp(12px, 2vw, 18px);
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar-nav a {
  opacity: 0.85;
  transition: opacity 0.2s;
}
.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  opacity: 1;
}

.topbar-ig {
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 28px);
  padding: clamp(200px, 26vh, 300px) var(--edge) clamp(72px, 10vh, 100px);
}

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 640px);
  max-height: 70svh;
}

.hero-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70svh;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.hero.no-hero .hero-stage { display: none; }

.hero-tag {
  margin: 0;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, 0.75);
  font-weight: 500;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--edge);
  bottom: clamp(28px, 5vh, 48px);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 245, 243, 0.55);
  border-radius: 20px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (min-width: 640px) {
  .scroll-cue { display: block; }
}

/* ---------- Section shared ---------- */

main { position: relative; z-index: 1; background: var(--black); }

.work,
.about,
.contact {
  scroll-margin-top: var(--header-h);
}

.about h2,
.contact h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: clamp(48px, 8vw, 96px) var(--gap) clamp(64px, 10vw, 120px);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.grid-item {
  position: relative;
  aspect-ratio: var(--tile-ratio, 4 / 5);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}

.grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.grid-item img.loaded { opacity: 1; }

.grid-item:hover img,
.grid-item:focus-visible img {
  transform: scale(1.045);
}

.grid-item:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.grid-empty-note {
  grid-column: 1 / -1;
  padding: 48px var(--edge);
  color: var(--grey-dim);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  margin: 0 calc(var(--edge) - var(--gap)) 0 0;
}

/* ---------- About ---------- */

.about {
  padding: clamp(64px, 12vw, 140px) var(--edge);
  border-top: 1px solid var(--line);
}

.about-inner { max-width: 62ch; }

.about h2 { margin-bottom: 22px; }

.bio {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: rgba(245, 245, 243, 0.92);
  font-weight: 400;
}

.bio strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(56px, 10vw, 110px) var(--edge) clamp(80px, 12vw, 140px);
  border-top: 1px solid var(--line);
}

.contact h2 { margin-bottom: 10px; }

.contact-sub {
  color: var(--grey);
  margin: 0 0 clamp(28px, 5vw, 44px);
  font-size: 0.98rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px) 4px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s, padding-left 0.25s var(--ease);
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 0.7;
  padding-left: 10px;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  text-transform: uppercase;
}

.contact-value {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--grey);
  font-weight: 500;
  text-align: right;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 22px var(--edge) 32px;
  color: var(--grey-dim);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
}

.noscript-note {
  padding: 40px var(--edge);
  color: var(--grey);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 6, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lightbox-track::-webkit-scrollbar { display: none; }

.lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-count {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(14px, 3vw, 26px);
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 243, 0.7);
  pointer-events: none;
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible { opacity: 1; }

.lightbox-close {
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  width: 56px;
  height: 72px;
  display: none;
}
.lightbox-prev { left: clamp(4px, 2vw, 20px); }
.lightbox-next { right: clamp(4px, 2vw, 20px); }

@media (min-width: 640px) {
  .lightbox-prev,
  .lightbox-next { display: block; }
}

.lightbox.single .lightbox-prev,
.lightbox.single .lightbox-next,
.lightbox.single .lightbox-count {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .grid-item img,
  .lightbox,
  .topbar { transition: none; }
}
