/* =============================================
   MICHELE FOCHI — PHOTO PORTFOLIO
   ============================================= */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a09;
  --bg-alt:      #111110;
  --bg-card:     #171714;
  --text:        #ece8de;
  --text-sub:    #8a8478;
  --text-dim:    #3e3c38;
  --accent:      #c8a96e;
  --accent-lite: #e0c898;
  --border:      #1e1d1a;
  --border-mid:  #2c2b26;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 60px;
  --wrap:  1220px;
  --gap:   18px;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.00, 0.00, 0.20, 1.00);
  --dur:      0.35s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar        { width: 3px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border-mid); border-radius: 2px; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 56px);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 56px);
  transition: background var(--dur) var(--ease), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 9, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--border);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--dur);
}
.nav__logo:hover { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 15% 60%, rgba(200,169,110,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(80,110,160,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0c0b09 0%, #0a0a09 50%, #0d0c0a 100%);
}
/* Film-grain texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  animation: heroIn 1.1s var(--ease-out) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.hero__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 11vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-sub);
  margin-bottom: 2.8rem;
  font-weight: 300;
}

.hero__cta {
  display: inline-block;
  padding: 11px 34px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--dur), color var(--dur);
}
.hero__cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 0.8s 1.6s forwards;
}
.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2.2s 2.4s infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
.gallery-section,
.trips-section,
.stories-section,
.subjects-section,
.cities-section,
.awards-section,
.about-section,
.contact-section { padding: clamp(72px, 10vw, 140px) 0; }

.trips-section    { background: var(--bg-alt); }
.subjects-section { background: var(--bg); }
.stories-section  { background: var(--bg-alt); }
.cities-section   { background: var(--bg); }
.awards-section   { background: var(--bg-alt); }
.contact-section  { background: var(--bg-alt); }

.section-header { margin-bottom: clamp(40px, 6vw, 72px); }
.section-header--center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-sub);
}

.gallery-context {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.3rem;
  margin-bottom: 0.15rem;
}

.gallery-story-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-sub);
  line-height: 1.7;
  margin-top: 0.6rem;
  max-width: 680px;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters { margin-bottom: clamp(28px, 4vw, 52px); }

.filters__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 6px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  border: 1px solid var(--border-mid);
  transition: all 0.22s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,169,110,0.07);
}

.filter-btn--scelta.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200,169,110,0.11);
  font-style: italic;
}

.filter-btn--trip-exit {
  color: var(--text-sub);
  border-color: var(--border-mid);
  padding-right: 14px;
}
.filter-btn--trip-exit:hover {
  color: var(--text);
  border-color: var(--text-dim);
  text-decoration: line-through;
}

.filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-btn {
  padding: 3px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.22s;
}
.tag-btn:hover, .tag-btn.active {
  color: var(--text-sub);
  border-color: var(--border-mid);
  background: var(--bg-card);
}

/* ============================================================
   GALLERY GRID — masonry via CSS columns
   ============================================================ */
.gallery-section .container {
  max-width: 1640px;
  padding: 0 clamp(18px, 4vw, 64px);
}

.gallery-grid {
  columns: 2;
  column-gap: clamp(20px, 2.6vw, 44px);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: clamp(20px, 2.6vw, 44px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  display: block;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery-item.in   { opacity: 1; transform: none; }
.gallery-item.hide { display: none; }

/* Photo containers — natural aspect ratio, no cropping */
.gallery-item__visual {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-item__visual img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}

/* Fallback gradient tile keeps a sensible ratio when there's no photo */
.gallery-item__bg {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  transition: transform 0.7s var(--ease);
}
.gallery-item[data-size="portrait"] .gallery-item__bg { aspect-ratio: 2/3; }
.gallery-item[data-size="square"]   .gallery-item__bg { aspect-ratio: 1/1; }

.gallery-item:hover .gallery-item__visual img,
.gallery-item:hover .gallery-item__bg { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.18) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__title {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}
.gallery-item__loc {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

.gallery-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-sub);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* Group headers inside the masonry grid */
.gallery-group-header {
  column-span: all;
  padding: 28px 0 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  border-top: 1px solid var(--border-mid);
  margin-top: 18px;
}
.gallery-group-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* ============================================================
   SUBJECTS
   ============================================================ */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.subject-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.subject-card.in { opacity: 1; transform: none; }

.subject-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1916 0%, #202019 100%);
  transition: transform 0.7s var(--ease);
}
.subject-card:hover .subject-card__bg { transform: scale(1.07); }

.subject-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.subject-card:hover .subject-card__cover { transform: scale(1.07); }

.subject-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.subject-card__count {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.subject-card__title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
}

.subject-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.12);
}
.subject-card:hover .subject-card__hover { opacity: 1; }
.subject-card__hover-btn {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 18px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   TRIPS
   ============================================================ */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.trip-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.trip-card.in { opacity: 1; transform: none; }

.trip-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.trip-card:hover .trip-card__bg { transform: scale(1.07); }

.trip-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.trip-card:hover .trip-card__cover { transform: scale(1.07); }

.trip-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.trip-card__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.trip-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 4px;
}
.trip-card__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.1);
}
.trip-card:hover .trip-card__hover { opacity: 1; }
.trip-card__hover-btn {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 7px 20px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   STORIES  (mirrors trips visually)
   ============================================================ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.story-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story-card.in { opacity: 1; transform: none; }

.story-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.story-card:hover .story-card__bg { transform: scale(1.07); }

.story-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.story-card:hover .story-card__cover { transform: scale(1.07); }

.story-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.story-card__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.story-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 4px;
}
.story-card__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.1);
}
.story-card:hover .story-card__hover { opacity: 1; }
.story-card__hover-btn {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 7px 20px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   CITIES  (mirrors stories visually)
   ============================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.city-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.city-card.in { opacity: 1; transform: none; }

.city-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}
.city-card:hover .city-card__bg { transform: scale(1.07); }

.city-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.city-card:hover .city-card__cover { transform: scale(1.07); }

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.city-card__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.city-card__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 4px;
}
.city-card__desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.1);
}
.city-card:hover .city-card__hover { opacity: 1; }
.city-card__hover-btn {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 7px 20px;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}

.award-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  min-height: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
              border-color 0.3s, background 0.3s;
}
.award-card.in { opacity: 1; transform: none; }
.award-card:hover {
  border-color: var(--accent);
  background: #14130f;
}

.award-card__cover,
.award-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.award-card__bg {
  background: linear-gradient(135deg, #1a1916 0%, #25241e 100%);
}
.award-card:hover .award-card__cover { transform: scale(1.04); }

.award-card__overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.4vw, 32px);
  gap: 8px;
}

.award-card__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.award-card__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}
.award-card__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.5;
}
.award-card__hint {
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.award-card:hover .award-card__hint { color: var(--accent); }

@media (max-width: 960px) {
  .awards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .award-card { grid-template-columns: 1fr; }
  .award-card__cover,
  .award-card__bg { aspect-ratio: 3/2; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  flex-shrink: 0;
}
.about__image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--border-mid);
  transform: translate(-10px, 10px);
  pointer-events: none;
}
.about__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #1a1916 0%, #252420 50%, #1e1d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__image::after {
  content: 'MF';
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 300;
  color: var(--border-mid);
  letter-spacing: 0.15em;
}
.about__image:has(.about__photo)::after { display: none; }

.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.about__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.about__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}
.about__text {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about__stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat__number {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__content { text-align: center; }

.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--text);
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 4px;
  margin-bottom: 2rem;
  transition: color 0.2s, border-color 0.2s;
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }

.contact__social {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}
.social-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.2s;
}
.social-link:hover { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copy, .footer__made {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,5,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 48px 0 0;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1rem;
  color: var(--text-sub);
  padding: 10px;
  transition: color 0.2s;
  line-height: 1;
  z-index: 2;
}
.lightbox__close:hover { color: var(--text); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-sub);
  padding: 16px 14px;
  transition: color 0.2s;
  line-height: 1;
  user-select: none;
  z-index: 2;
}
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--text); }

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.lightbox__visual,
.lightbox__img {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 60px;
  right: 60px;
  width: calc(100% - 120px);
  height: calc(100% - 32px);
  object-fit: contain;
  display: none;
}
.lightbox__visual.show,
.lightbox__img.show { display: block; }

.lightbox__info {
  flex-shrink: 0;
  width: 100%;
  padding: 14px 60px 18px;
}
.lightbox__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox__header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.lightbox__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lightbox__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text);
}
.lightbox__desc {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.55;
}
.lightbox__body--no-title .lightbox__desc {
  font-size: 1.15rem;
  color: var(--text);
}
.lightbox__date {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: right;
}
.lightbox__cat {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  opacity: 0.75;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
}
.lightbox__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.lightbox__tags .tag {
  font-size: 0.62rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 8px;
}

/* ============================================================
   FOCUSED MODE  (single-section view for trip / story / city)
   ============================================================ */

/* Back button */
.gallery-back {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  transition: color 0.2s;
  padding: 0;
}
.gallery-back:hover { color: var(--text); }
.gallery-back__arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.gallery-back:hover .gallery-back__arrow { transform: translateX(-3px); }

/* In focused mode: show back button, hide everything else */
body.focused .hero,
body.focused .subjects-section,
body.focused .trips-section,
body.focused .stories-section,
body.focused .cities-section,
body.focused .awards-section,
body.focused .about-section,
body.focused .contact-section,
body.focused .footer {
  display: none !important;
}

body.focused .gallery-section {
  padding-top: calc(var(--nav-h) + clamp(32px, 6vw, 60px));
  min-height: 100svh;
}

body.focused .gallery-back { display: inline-flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .gallery-grid { columns: 2; column-gap: 16px; }
  .gallery-item { margin-bottom: 16px; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about__image-wrap {
    width: min(320px, 70vw);
    margin: 0 auto clamp(32px, 6vw, 48px);
  }
  .about__stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(10,10,9,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 0.9rem; letter-spacing: 0.12em; }
  .nav__toggle { display: flex; }

  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
  .lightbox__visual,
  .lightbox__img { left: 44px; right: 44px; width: calc(100% - 88px); }
  .lightbox__info { padding: 10px 44px 14px; }
}

@media (max-width: 540px) {
  .gallery-grid  { columns: 1; column-gap: 14px; }
  .gallery-item  { margin-bottom: 14px; }
  .trips-grid,
  .stories-grid,
  .cities-grid,
  .subjects-grid { grid-template-columns: 1fr; gap: 20px; }
  .subject-card  { aspect-ratio: 4/3; }
  .subject-card__overlay { padding: 22px; }
  .subject-card__title   { font-size: clamp(1.4rem, 5vw, 1.7rem); }
  .about__stats  { gap: 1.4rem; }
  .contact__social { gap: 1.4rem; }
}

@media (max-width: 380px) {
  .gallery-grid  { columns: 1; }
}

/* ============================================================
   MOBILE LANDSCAPE (phone on its side)
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {

  /* Hero: don't force full viewport height on landscape phone */
  .hero {
    min-height: 100vw;
    min-height: 100svh;
  }

  /* Nav overlay: compact scrollable */
  .nav__links {
    gap: 1.4rem;
    justify-content: flex-start;
    padding: 1.2rem 0;
  }
  .nav__links a { font-size: 0.8rem; }

  /* Gallery: at least 2 columns in landscape */
  .gallery-grid { columns: 2; }

  /* Subjects: keep airy on landscape phone */
  .subjects-grid { grid-template-columns: repeat(3, 1fr); }

  /* Trips/stories/cities: 2 cols */
  .trips-grid,
  .stories-grid,
  .cities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Lightbox landscape layout */
  .lightbox__wrap {
    flex-direction: row;
    padding: 0;
  }
  .lightbox__close {
    top: 6px;
    right: 8px;
    padding: 6px;
  }
  .lightbox__stage {
    flex: 1;
    min-width: 0;
  }
  .lightbox__visual,
  .lightbox__img {
    top: 8px;
    bottom: 8px;
    left: 48px;
    right: 48px;
    width: calc(100% - 96px);
    height: calc(100% - 16px);
  }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
  .lightbox__info {
    width: clamp(160px, 30vw, 240px);
    flex-shrink: 0;
    overflow-y: auto;
    padding: 48px 16px 16px;
    border-left: 1px solid var(--border);
  }
  .lightbox__body { gap: 6px; }
  .lightbox__title { font-size: 1rem; }
  .lightbox__desc  { font-size: 0.78rem; }
  .lightbox__date  { text-align: left; }
}
