/* ============================================
   Global Styles — shared across all pages
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Custom Properties --- */
:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --hero-start: #2b3a9e;
  --hero-end: #7b2d8e;
  --card-bg: #141414;
  --text-muted: #aaa;
  --border-subtle: #1a1a1a;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-serif-display: 'DM Serif Display', 'Georgia', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ol, ul {
  list-style: none;
}

/* --- Focus Styles (accessibility) --- */
:focus-visible {
  outline: 2px solid var(--hero-end);
  outline-offset: 3px;
}

/* --- Layout Utilities --- */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Nav (shared) --- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  mix-blend-mode: difference;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  transition: opacity var(--transition-base);
}

.nav-link:hover {
  opacity: 0.6;
}

/* --- Fixed Site Nav (3 buttons) --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 1.5rem 2.5rem;
  pointer-events: none;
}

.site-nav-inner {
  display: flex;
  gap: 1.5rem;
  pointer-events: auto;
}

.site-nav-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
  line-height: 1;
}

.site-nav-btn:hover {
  opacity: 0.5;
}

.site-nav-btn[aria-expanded="true"] {
  color: #0044cc;
}

/* --- Info Panel (cobalt blue dropdown) --- */
.info-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: #0044cc;
  color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-panel.is-open {
  max-height: 80vh;
}

.info-panel-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 5rem 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-panel-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}

.info-panel-close:hover {
  border-color: #fff;
  transform: rotate(90deg);
}

.info-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  font-weight: 400;
}

.info-col p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.info-col a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.info-col a:hover {
  opacity: 0.7;
}

/* --- Section Title (shared) --- */
.section-title {
  font-family: var(--font-serif-display, 'DM Serif Display', 'Georgia', serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* --- Photo Strip (shared) --- */
.photo-strip {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.photo-strip-scroll {
  display: flex;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.photo-strip-scroll::-webkit-scrollbar {
  display: none;
}

.photo-item {
  flex: 1 0 0%;
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.photo-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* --- Photo Item Caption (hover overlay) --- */
.photo-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
}

.photo-item:hover .photo-item-caption {
  transform: translateY(0);
}

.caption-location {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.caption-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1a2a1a, #2a3a2a);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* --- Photo Break (shared) --- */
.photo-break {
  padding: 0;
  text-align: center;
  background: #fff;
}

.photo-break-figure {
  max-width: none;
  margin: 0;
}

.photo-break-figure > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.photo-placeholder--lg {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.photo-caption {
  margin-top: 0;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  font-style: italic;
  background: #000;
}

/* --- Contact Footer (shared) --- */
.contact {
  padding: 6rem 2rem;
  text-align: center;
  border-top: none;
  background: #0a0a0a;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #0044cc;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.5rem;
  border: 1px solid #333;
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.contact-link:hover {
  border-color: #0044cc;
  color: #fff;
  background: #0044cc;
}

/* --- Scroll Reveal (JS-driven) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive (shared) --- */
@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.5rem;
  }

  .site-nav-btn {
    font-size: 0.6rem;
    /* Bigger touch target */
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .info-panel-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 4.5rem 1.5rem 2rem;
  }

  .info-panel-close {
    width: 44px;
    height: 44px;
  }

  .nav {
    padding: 1rem 1.5rem;
    gap: 1.2rem;
  }

  .photo-item {
    min-width: 250px;
  }

  /* Photo strip: horizontal scroll with snap on mobile */
  .photo-strip-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .contact {
    padding: 4rem 1.5rem;
  }

  .contact-links {
    gap: 0.75rem;
  }

  .contact-link {
    /* Bigger touch target */
    padding: 0.75rem 1.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0.75rem 1rem;
  }

  .site-nav-inner {
    gap: 1rem;
  }

  .site-nav-btn {
    font-size: 0.55rem;
  }

  .info-panel-inner {
    grid-template-columns: 1fr;
    padding: 4rem 1rem 1.5rem;
  }

  .nav {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.7rem;
  }
}
