/* ============================================
   ALPINE PORTFOLIO — STYLES
   Header structure modeled on Thomas Crauwels:
   utility bar → centered stacked logo → main nav with mega-menu
   ============================================ */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}

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

/* ---------- TYPOGRAPHY ---------- */
.serif {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 300;
}

.sans { font-family: 'Inter', sans-serif; }

h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.label-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #888;
  font-weight: 400;
}

/* ============================================
   HEADER — grid layout
   Expanded: 3 rows (utility-bar items / centered logo / centered main nav)
   Collapsed: 1 row (main nav left, utility-right migrates inline at end)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "utility-left  logo  utility-right"
    "nav           nav   nav";
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.collapsed {
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  grid-template-areas: "nav utility-right";
  border-bottom: 1px solid #ececec;
}

/* ---------- UTILITY-BAR WRAPPER ----------
   The HTML still wraps utility-left and utility-right inside <div class="utility-bar">.
   `display: contents` lets those children participate directly in the header grid
   so we don't need to touch the HTML on every page. */
.utility-bar { display: contents; }

/* ---------- UTILITY LEFT / RIGHT ---------- */
.utility-left {
  grid-area: utility-left;
  align-self: start;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0 0;
}

.utility-right {
  grid-area: utility-right;
  align-self: start;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 0 0;
}

.utility-left a,
.utility-left button,
.utility-right a,
.utility-right > .flyout-host > button {
  color: #1a1a1a;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-left a:hover,
.utility-left button:hover,
.utility-right a:hover,
.utility-right button:hover { opacity: 0.55; }

.caret {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
}

.utility-divider {
  width: 1px;
  height: 16px;
  background: #ddd;
}

.icon-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: #1a1a1a;
  stroke-width: 1.1;
  fill: none;
}

/* ---------- CENTERED LOGO ---------- */
.site-logo {
  grid-area: logo;
  display: block;
  text-align: center;
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.22em;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.05;
  padding: 14px 0 18px;
  justify-self: center;
  align-self: center;
}

.site-logo .logo-line { display: block; }

/* ---------- MAIN NAV ROW ---------- */
.main-nav-row {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 6px 0 22px;
  position: relative;
}

.site-header.collapsed .utility-left,
.site-header.collapsed .site-logo {
  display: none;
}

.site-header.collapsed .main-nav-row {
  justify-content: flex-start;
  padding: 14px 0;
}

.site-header.collapsed .utility-right {
  padding: 14px 0;
}

.mega-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.mega-toggle .bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}

.mega-toggle .bars::before,
.mega-toggle .bars::after,
.mega-toggle .bars span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
}

.mega-toggle .bars::before { top: 0; }
.mega-toggle .bars span { top: 50%; transform: translateY(-50%); display: block; }
.mega-toggle .bars::after { bottom: 0; }

.main-nav-row a,
.main-nav-row .nav-trigger {
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 400;
  padding: 6px 2px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s ease;
}

.main-nav-row a:hover,
.main-nav-row .nav-trigger:hover { opacity: 0.55; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: #ccc;
  margin: 0 6px;
}

.main-nav-row a.active {
  border-bottom: 1px solid #1a1a1a;
}

/* ============================================
   NAV PREVIEW PANEL
   Hovering over a nav item with [data-preview] drops down a Crauwels-style
   preview: title + description on left, three featured photographs on right.
   The panel content is rendered by initNavPreviews() in script.js.
   ============================================ */
.nav-preview-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f5f5f5;
  z-index: 990;
  padding: 220px 0 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.nav-preview-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.preview-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.preview-left {
  padding-right: 20px;
}

.preview-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  margin-bottom: 18px;
}

.preview-left h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: #1a1a1a;
}

.preview-left p {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 36px;
  font-weight: 300;
}

.preview-cta {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease;
}

.preview-cta:hover { background: #444; }

.preview-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.preview-item {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.preview-item:hover { opacity: 0.85; }

.preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  margin-bottom: 18px;
}

.preview-meta { text-align: center; }

.preview-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.preview-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1a1a;
}

.site-header.collapsed ~ .nav-preview-panel {
  padding-top: 100px;
}

@media (max-width: 900px) {
  .nav-preview-panel { display: none; }
}

/* ============================================
   SCROLL REVEAL
   Elements fade in and shift up when scrolled into view.
   Once revealed they stay visible (we unobserve after first intersection).
   See initScrollReveal() in script.js.
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

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

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   HOMEPAGE — STATIC HERO OVERLAY
   The big brand statement that sits over the carousel image.
   ============================================ */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  color: #ffffff;
  /* Top padding clears the fixed header so the centered title can never
     ride up underneath the nav bar on short viewports. */
  padding: 200px 32px 80px;
}

.hero-title {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  margin: 0;
}

.hero-word {
  display: block;
  font-size: clamp(3.5rem, 11vw, 10.5rem);
  font-weight: 400;
}

.hero-of {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0.15em 0;
}

.hero-tagline {
  margin-top: 60px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  font-weight: 300;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-scroll {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: auto;
  text-decoration: none;
  font-weight: 600;
}

.hero-scroll svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 1.4;
  fill: none;
}

/* ============================================
   HOMEPAGE — FEATURED FINNMARK BLOCK
   Dark, full-width hero image followed by a centered title-and-description card.
   ============================================ */
.home-block {
  padding: 120px 0;
  position: relative;
}

.home-block.dark { background: #0a0a0a; color: #ffffff; }
.home-block.light { background: #ffffff; color: #1a1a1a; }
.home-block.fog { background: #f4f4f4; color: #1a1a1a; }

.home-block .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.home-feature-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 60px;
  background: #111;
}

.home-feature-meta { text-align: center; }

.edition-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 28px;
  padding: 0;
}

.edition-pill > .pill {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 700;
}

.edition-pill > .pill.gold { background: #b89968; color: #ffffff; }
.edition-pill > .pill.blue { background: #c2cfd8; color: #1a1a1a; }
.edition-pill > .pill.gray { background: #d4d4d4; color: #1a1a1a; }

.edition-pill > .label {
  display: inline-block;
  padding: 6px 0 6px 14px;
  font-weight: 700;
}

.home-block.dark .edition-pill > .label { color: #ffffff; }
.home-block.light .edition-pill > .label,
.home-block.fog .edition-pill > .label { color: #1a1a1a; }

.home-feature-meta .desc {
  max-width: 560px;
  margin: 0 auto 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

.home-block.dark .home-feature-meta .desc { color: #cccccc; }
.home-block.light .home-feature-meta .desc,
.home-block.fog .home-feature-meta .desc { color: #555555; }

.discover-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.home-block.dark .discover-link { color: #ffffff; }
.home-block.light .discover-link,
.home-block.fog .discover-link { color: #1a1a1a; }

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

/* Pair: Eastern Sierra + Forthcoming, two columns of portrait images */
.home-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.home-pair-item { text-align: center; }

.home-pair-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
  background: #111;
}

/* ============================================
   HOMEPAGE — RECENT WORKS GRID
   ============================================ */
.home-section-header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 80px;
  padding: 0 32px;
}

.home-section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 28px;
  color: inherit;
}

.home-section-header h2 .accent-gold {
  color: #b89968;
}

.home-section-header .section-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  font-weight: 400;
}

.home-block.dark .home-section-header .section-lead { color: #bbbbbb; }

.recent-works-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 40px;
}

.recent-work {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.25s ease;
}

.recent-work:hover { opacity: 0.85; }

.recent-work img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 28px;
  background: #f0f0f0;
}

.recent-work .sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.recent-work .title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: inherit;
  margin-bottom: 16px;
}

.recent-work .badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  background: #e5e5e5;
  color: #555;
}

.recent-work .badge.gold { background: #d8c096; color: #2a2418; }
.recent-work .badge.blue { background: #c2cfd8; color: #1a2530; }

/* ============================================
   HOMEPAGE — FIELD DISPATCHES (replaces Crauwels' video series)
   Three dispatch cards on a fog background.
   ============================================ */
.dispatches-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
}

.dispatch-card {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  transition: opacity 0.25s ease;
}

.dispatch-card:hover { opacity: 0.85; }

.dispatch-card .img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  margin-bottom: 28px;
  position: relative;
}

.dispatch-card .img-wrap.placeholder {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}

.dispatch-card .episode {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.dispatch-card .dispatch-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  color: #1a1a1a;
}

.dispatch-card .excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 22px;
  font-weight: 400;
}

.dispatch-card .cta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 4px;
  display: inline-block;
}

/* ============================================
   HOMEPAGE — FINAL ALL WORKS CTA
   ============================================ */
.all-works-cta {
  text-align: center;
  margin-top: 80px;
}

.all-works-cta a {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 18px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.all-works-cta a:hover { background: #444; }

@media (max-width: 900px) {
  .home-block { padding: 80px 0; }
  .home-block .container { padding: 0 32px; }
  .home-pair { grid-template-columns: 1fr; gap: 60px; padding: 0 32px; }
  .recent-works-grid,
  .dispatches-grid { grid-template-columns: 1fr; padding: 0 32px; }
  .home-section-header { margin-bottom: 50px; }
  .all-works-cta a { padding: 16px 36px; }

  .hero-tagline { margin-top: 40px; }
  .hero-scroll { bottom: 36px; }
  .hero-overlay { padding: 110px 24px 70px; }  /* mobile header is ~80px */
}

/* ============================================
   MEGA MENU (hamburger panel)
   3 columns: identity / artwork / resources
   ============================================ */
.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 999;
  padding: 220px 32px 80px;
  border-bottom: 1px solid #ececec;
  transform: translateY(-100%);
  transition: transform 0.45s ease;
  visibility: hidden;
}

.site-header.collapsed ~ .mega-menu {
  padding-top: 110px;
}

.mega-menu.open {
  transform: translateY(0);
  visibility: visible;
}

.mega-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.mega-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #999;
  font-weight: 400;
  margin-bottom: 28px;
}

.mega-col a {
  display: block;
  padding: 12px 0;
  color: #1a1a1a;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease;
}

.mega-col a:hover { opacity: 0.55; }

/* ============================================
   FLYOUT DROPDOWNS — for MASSIFS, SUMMITS, lang, currency
   These appear from the utility bar.
   ============================================ */
.flyout-host {
  position: relative;
}

.flyout-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  background: #ffffff;
  border: 1px solid #ececec;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  padding: 18px 26px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
  text-align: left;
}

/* Invisible bridge so the cursor can travel from the trigger button to the
   flyout menu without falling into a hover-killing gap. */
.flyout-host::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 12px;
  pointer-events: none;
}

.flyout-host:hover::after { pointer-events: auto; }

.flyout-menu.left { right: auto; left: 0; }

.flyout-host:hover > .flyout-menu,
.flyout-host.open > .flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.flyout-menu a {
  display: block;
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1px solid #f3f3f3;
  white-space: nowrap;
}

.flyout-menu a:last-child { border-bottom: none; }

/* ============================================
   MOBILE NAV (hidden on desktop)
   ============================================ */
.hamburger-mobile {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  z-index: 1100;
}

.hamburger-mobile span {
  display: block;
  width: 22px;
  height: 1px;
  background: #1a1a1a;
  margin: 6px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-mobile.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-mobile.open span:nth-child(2) { opacity: 0; }
.hamburger-mobile.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 80px 32px;
  overflow-y: auto;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-overlay > a,
.mobile-overlay > button {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.mobile-overlay .group-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: #aaa;
  margin-top: 24px;
  text-transform: uppercase;
}

/* ============================================
   PAGE CONTAINERS / SPACING
   ============================================ */
.page-content { padding-top: 200px; } /* clears full expanded header */

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ============================================
   HOMEPAGE HERO CAROUSEL
   ============================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000000;
  overflow: hidden;
  /* No negative margin — header is position:fixed so it doesn't take flow
     space, and the hero image already bleeds behind it via z-index stacking. */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-color: #000;
}

.hero-slide.active { opacity: 1; }

.hero-slide a { display: block; width: 100%; height: 100%; }

.hero-caption {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-caption .series-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.hero-caption .series-loc {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero-arrow:hover { opacity: 1; }
.hero-arrow.prev { left: 32px; }
.hero-arrow.next { right: 32px; }

.hero-arrow svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}

/* ============================================
   SERIES PAGE — CINEMATIC DISPATCH
   Mont Blanc–style: image bleeds in from right with gradient fade to black on the left;
   title + multi-paragraph narrative sit on the dark side.
   ============================================ */
.cinematic-dispatch {
  position: relative;
  background: #0a0a0a;
  color: #ffffff;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 260px;
  padding-bottom: 120px;
}

.cinematic-dispatch .cinematic-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cinematic-dispatch .cinematic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    #0a0a0a 0%,
    rgba(10, 10, 10, 0.92) 18%,
    rgba(10, 10, 10, 0.55) 38%,
    rgba(10, 10, 10, 0.15) 62%,
    transparent 100%);
}

.cinematic-dispatch .cinematic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    transparent 25%,
    transparent 75%,
    rgba(10, 10, 10, 0.4) 100%);
  z-index: 1;
}

.cinematic-dispatch .breadcrumb {
  position: absolute;
  top: 220px;
  left: 64px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  z-index: 3;
}

.cinematic-dispatch .breadcrumb a {
  color: #888;
  transition: color 0.2s ease;
}

.cinematic-dispatch .breadcrumb a:hover { color: #fff; }

.cinematic-dispatch .breadcrumb .sep {
  margin: 0 10px;
  opacity: 0.5;
}

.cinematic-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 60px 64px 80px;
  margin-left: 0;
}

.cinematic-content h1 {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 60px;
  line-height: 0.95;
  text-transform: uppercase;
  color: #ffffff;
}

.cinematic-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
  color: #d4d4d4;
  font-weight: 300;
}

.cinematic-content p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .cinematic-dispatch { min-height: auto; padding: 110px 0 80px; }
  .cinematic-dispatch .cinematic-bg {
    width: 100%;
    height: 60vh;
    top: 90px;
    opacity: 0.55;
  }
  .cinematic-dispatch .cinematic-bg::after {
    background: linear-gradient(to bottom, transparent 0%, #0a0a0a 80%);
  }
  .cinematic-dispatch .breadcrumb {
    top: 110px;
    left: 24px;
  }
  .cinematic-content {
    padding: 40vh 28px 0;
    max-width: 100%;
  }
  .cinematic-content h1 { margin-bottom: 32px; }
}

/* ============================================
   FEATURED PHOTOGRAPHS GRID
   Editorial layout — title, work name, location tags, edition badge.
   No prices, no "add to gallery" CTA.
   ============================================ */
.featured-section {
  background: #000000;
  color: #ffffff;
  padding: 100px 0 60px;
  border-top: 1px solid #1a1a1a;
}

.featured-section-header {
  text-align: center;
  padding: 0 32px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.featured-section-header .featured-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}

.featured-section-header h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.featured-section-header p {
  font-size: 14px;
  color: #999;
  line-height: 1.7;
  font-weight: 300;
}

.featured-grid {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 32px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 40px;
}

.featured-item {
  text-align: center;
  color: #ffffff;
  cursor: pointer;
}

.featured-item .image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 28px;
  background: #0a0a0a;
}

.featured-item.tall .image-wrap { aspect-ratio: 4 / 5; }
.featured-item.panorama .image-wrap { aspect-ratio: 21 / 9; }

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-item:hover img { transform: scale(1.03); }

.featured-item .item-subtitle {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaaaaa;
  font-weight: 400;
  margin-bottom: 10px;
}

.featured-item .item-title {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
}

.featured-item .item-tags {
  font-size: 13px;
  color: #cccccc;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin-bottom: 22px;
  padding: 0 16px;
}

.featured-item .item-tags .pipe {
  margin: 0 8px;
  color: #666;
}

.edition-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  background: #b89968;
  color: #ffffff;
}

.edition-badge.prestige { background: #8a8278; }
.edition-badge.limited { background: #a8a8a8; color: #1a1a1a; }

/* ============================================
   SEARCH OVERLAY
   Opens fullscreen on search-icon click. Live-filters a static
   index of photographs, regions, and summits.
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1300;
  display: none;
  flex-direction: column;
  padding: 100px 40px 60px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.search-overlay.open {
  display: flex;
  opacity: 1;
}

.search-close {
  position: absolute;
  top: 28px;
  right: 36px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  font-size: 28px;
  font-family: inherit;
  font-weight: 200;
  color: #1a1a1a;
  line-height: 1;
  padding: 0;
}

.search-input-wrap {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 60px;
  position: relative;
}

.search-input-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.2'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.5' y2='16.5'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.search-overlay input {
  display: block;
  width: 100%;
  padding: 20px 0 20px 40px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: 'Cormorant Garamond', 'EB Garamond', serif;
  font-weight: 300;
  border: none;
  border-bottom: 1px solid #1a1a1a;
  background: transparent;
  outline: none;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.search-overlay input::placeholder {
  color: #aaa;
  font-style: italic;
}

.search-results {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.search-empty {
  text-align: center;
  color: #888;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 40px 0;
}

.search-result {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.search-result:hover { opacity: 0.6; }

.search-result img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4f4f4;
}

.search-result .meta { flex: 1; min-width: 0; }

.search-result .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.search-result .sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}

.search-result .badge {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: #f4f4f4;
  color: #888;
  align-self: flex-start;
}

@media (max-width: 600px) {
  .search-overlay { padding: 80px 20px 40px; }
  .search-result img { width: 80px; height: 60px; }
  .search-result .title { font-size: 18px; }
}

/* ----- Signature stack (signature image full-bleed at end) ----- */
.signature-stack {
  background: #000;
  padding: 60px 0 120px;
}

.signature-stack .signature-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 32px;
}

.signature-stack img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  margin-bottom: 36px;
}

.signature-stack .meta {
  max-width: 640px;
  text-align: left;
  color: #ffffff;
}

.signature-stack .meta .img-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.signature-stack .meta .img-location {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 14px;
}

.signature-stack .meta .img-caption {
  font-size: 14px;
  line-height: 1.7;
  color: #cccccc;
  font-weight: 300;
}

/* ============================================
   JOURNAL — listing
   ============================================ */
.journal-header {
  text-align: center;
  padding: 80px 32px 60px;
}

.journal-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.journal-header p { font-size: 14px; color: #666; letter-spacing: 0.1em; text-transform: uppercase; }

.journal-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.journal-post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 80px;
  border-bottom: 1px solid #ececec;
}

.journal-post-card:last-child { border-bottom: none; }

.journal-post-card .post-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f4f4f4;
}

.journal-post-card .post-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin: 12px 0 8px;
}

.journal-post-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.journal-post-card .post-excerpt { color: #444; margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.journal-post-card .read-more {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  display: inline-block;
}

/* ============================================
   JOURNAL POST — single
   ============================================ */
.journal-post-hero {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  margin-bottom: 60px;
}

.journal-post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.journal-post-body .post-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin-bottom: 16px;
}

.journal-post-body h1 {
  text-align: center;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 60px;
}

.journal-post-body p {
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.8;
  color: #2a2a2a;
}

.journal-post-body .inline-image {
  margin: 60px -32px;
  width: calc(100% + 64px);
  max-width: none;
}

@media (min-width: 900px) {
  .journal-post-body .inline-image {
    margin: 60px -120px;
    width: calc(100% + 240px);
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about-portrait {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  margin-bottom: 80px;
}

.about-body { max-width: 720px; margin: 0 auto; padding: 0 32px 120px; }
.about-body h1 { text-align: center; margin-bottom: 60px; }
.about-body h2 {
  font-size: 1.5rem;
  margin: 60px 0 24px;
  padding-top: 30px;
  border-top: 1px solid #ececec;
}
.about-body p { margin-bottom: 24px; font-size: 17px; line-height: 1.8; }
.about-body ul { list-style: none; margin-bottom: 24px; }
.about-body ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.about-body ul li span { color: #888; font-size: 13px; letter-spacing: 0.05em; }

/* ============================================
   CONTACT
   ============================================ */
.contact-wrap { max-width: 600px; margin: 0 auto; padding: 0 32px 120px; }
.contact-wrap h1 { text-align: center; margin-bottom: 24px; }
.contact-wrap .lead {
  text-align: center;
  color: #555;
  margin-bottom: 60px;
  font-size: 17px;
  line-height: 1.7;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; margin-bottom: 60px; }
.contact-form label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-bottom-color: #1a1a1a; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button {
  align-self: flex-start;
  margin-top: 12px;
  padding: 14px 36px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.contact-form button:hover { background: #444; }
.contact-form .form-error { color: #b22222; font-size: 12px; margin-top: 4px; letter-spacing: 0.05em; }
.contact-form .form-success {
  background: #f4f4f4;
  padding: 16px;
  font-size: 14px;
  color: #1a1a1a;
  text-align: center;
  display: none;
}
.contact-form.submitted .form-success { display: block; }

.contact-direct {
  text-align: center;
  font-size: 14px;
  color: #555;
  padding: 40px 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  margin-bottom: 60px;
}
.contact-direct a { color: #1a1a1a; }
.contact-commission { text-align: center; }
.contact-commission h3 { margin-bottom: 16px; }
.contact-commission p { color: #555; font-size: 15px; line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #ececec;
  padding: 50px 32px 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}
.site-footer p { margin-bottom: 8px; }
.site-footer.dark { background: #000; color: #666; border-top-color: #1a1a1a; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .utility-bar,
  .main-nav-row .nav-trigger,
  .main-nav-row > a:not(.mobile-nav-skip),
  .main-nav-row .nav-divider,
  .main-nav-row .mega-toggle { display: none; }

  .main-nav-row { padding: 0; min-height: 60px; }
  .hamburger-mobile { display: block; }

  .site-logo { font-size: 22px; padding: 18px 0; }
  .page-content { padding-top: 90px; }
  .hero { margin-top: -90px; }
  .series-hero { margin-top: -90px; height: 70vh; }

  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
  .hero-arrow { width: 44px; height: 44px; }
  .hero-caption { bottom: 50px; }
  .hero-caption .series-name { font-size: 28px; }

  .trip-dispatch { padding: 60px 24px; }
  .trip-dispatch p:first-of-type::first-letter { font-size: 3rem; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); padding: 0 8px; gap: 8px; }
  .featured-item.wide { grid-column: span 2; }
  .signature-stack { padding: 30px 0 60px; }

  .mega-grid { grid-template-columns: 1fr; gap: 40px; }
  .mega-menu { padding: 100px 24px 60px; }

  .journal-post-body .inline-image { margin: 40px -24px; width: calc(100% + 48px); }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-item.wide { grid-column: span 1; }
}
