/* ==========================================================================
   RESET & SYSTEM CONSTANTS (Pure Dark Editorial Canvas)
   ========================================================================== */
:root {
  --bg-pure: #0a0a0a;         /* Deep obsidian black */
  --card-bg: #121212;         /* Slightly lifted charcoal for structural frames */
  --text-main: #ffffff;       /* Solid white */
  --text-muted: #8e8e8e;      /* Neutral gray for readable contrast blocks */
  --border-light: #222222;     /* Muted layout partitions */
  --border-dark: #ffffff;
  --accent-gray: #161616;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pure);
}

body {
  background: var(--bg-pure);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scroll Progress Bar Tracker */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  animation: grow-progress auto linear;
  animation-timeline: scroll();
}

@keyframes grow-progress {
  to { transform: scaleX(1); }
}

/* Fix target navigation padding so headers don't hide behind fixed nav */
.chapter-target-offset {
  position: relative;
  top: -120px; 
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.portfolio-nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  z-index: 90;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-nav .logo {
  font-weight: 600;
}

.portfolio-nav .nav-label {
  color: var(--text-muted);
}

/* ==========================================================================
   HERO INTERACTIVE ENTRY & BUTTONS
   ========================================================================== */
.hero-minimal {
  height: 95vh;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  padding: 0 8%;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden; /* Keeps fanned out cards within bounds */
}

.hero-title-wrapper {
  margin-bottom: 0;
  z-index: 2;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-main-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  margin-top: 2rem;
  font-size: 1.1rem;
  max-width: 450px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Horizontal Quick Anchor Links */
.hero-anchors-wrapper {
  margin-top: 3rem;
}



/* ===============================
   HERO PHOTO STACK
=============================== */

.hero-cards-stack{
    position:relative;
    width:100%;
    height:390px;
    display:flex;
    justify-content:center;
    align-items:center;
    perspective:1200px;
}

/* Card */

.hero-cards-stack .card{
    position:absolute;
    width:215px;
    height:295px;
    overflow:hidden;
    border-radius:14px;
    background:var(--card-bg);
    border:3px solid #202020;

    box-shadow:
        0 18px 35px rgba(0,0,0,.45);

    transition:
        transform .75s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease,
        border-color .35s ease;

    will-change:transform;
}

.hero-cards-stack .card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ===============================
   DEFAULT STACK
=============================== */

.card-1{
    transform:
    translate(-42px,18px)
    rotate(-13deg);

    z-index:1;

    transition-delay:0s;
}

.card-2{
    transform:
    translate(-18px,8px)
    rotate(-7deg);

    z-index:2;

    transition-delay:.04s;
}

.card-3{
    transform:
    translate(0,-2px)
    rotate(0deg);

    z-index:5;

    transition-delay:.08s;
}

.card-4{
    transform:
    translate(18px,8px)
    rotate(7deg);

    z-index:4;

    transition-delay:.12s;
}

.card-5{
    transform:
    translate(42px,18px)
    rotate(13deg);

    z-index:3;

    transition-delay:.16s;
}

/* ===============================
   FAN OUT
=============================== */

.hero-cards-stack:hover .card-1{
    transform:
    translate(-120px,-5px)
    rotate(-25deg);
}

.hero-cards-stack:hover .card-2{
    transform:
    translate(-60px,-28px)
    rotate(-13deg);
}

.hero-cards-stack:hover .card-3{
    transform:
    translate(0,-42px)
    rotate(0deg);
}

.hero-cards-stack:hover .card-4{
    transform:
    translate(60px,-28px)
    rotate(13deg);
}

.hero-cards-stack:hover .card-5{
    transform:
    translate(120px,-5px)
    rotate(25deg);
}

/* ===============================
   HOVER INDIVIDUAL CARD
=============================== */

.hero-cards-stack .card:hover{

    z-index:99 !important;

    transform:
    translateY(-18px)
    scale(1.03) !important;

    border-color:var(--text-main);

    box-shadow:
        0 30px 55px rgba(0,0,0,.55);
}

/* ===============================
   MOBILE
=============================== */

@media (max-width:968px){

.hero-cards-stack{

    height:330px;
}

.hero-cards-stack .card{

    width:170px;
    height:235px;
}

.card-1{
transform:translate(-32px,15px) rotate(-12deg);
}

.card-2{
transform:translate(-15px,8px) rotate(-6deg);
}

.card-3{
transform:translate(0,0) rotate(0);
}

.card-4{
transform:translate(15px,8px) rotate(6deg);
}

.card-5{
transform:translate(32px,15px) rotate(12deg);
}

.hero-cards-stack:hover .card-1{
transform:translate(-75px,-5px) rotate(-20deg);
}

.hero-cards-stack:hover .card-2{
transform:translate(-38px,-20px) rotate(-10deg);
}

.hero-cards-stack:hover .card-3{
transform:translate(0,-28px);
}

.hero-cards-stack:hover .card-4{
transform:translate(38px,-20px) rotate(10deg);
}

.hero-cards-stack:hover .card-5{
transform:translate(75px,-5px) rotate(20deg);
}

}


.scroll-indicator {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.anchor-buttons {
  display: flex;
  gap: 1rem;
}

.anchor-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.8rem;      /* Decreased padding for a tighter container */
  font-size: 0.7rem;          /* Scaled down text size */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.anchor-btn:hover {
  background: var(--text-main);
  color: var(--bg-pure);
  border-color: var(--text-main);
}

/* ==========================================================================
   LAYOUT STRUCTURES (Main Container & Chapter Details)
   ========================================================================== */
main {
  width: 100%;
  padding: 0 5%;
  margin-top: 6rem;
}

.chapter-marker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: 10rem 0;
}

/* Destination Intro Layout */
.destination-intro-block {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 5%;
  margin-bottom: 8rem;
}

.dest-meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding-top: 0.5rem;
}

.dest-title-group h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.dest-title-group p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 700px;
  font-weight: 300;
}

/* ==========================================================================
   VARIABLE CAPTION & SPACE NOTE FRAMEWORK
   ========================================================================== */
.image-context-note {
  max-width: 260px;
}

.image-context-note h5 {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.image-context-note p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 300;
}

/* Dynamic Positioning Styles */
.pos-caption-under .image-context-note {
  margin-top: 1.25rem;
}

.pos-caption-right {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.pos-caption-above {
  display: flex;
  flex-direction: column;
}

.pos-caption-above .image-context-note {
  margin-bottom: 1.25rem;
}

.pos-caption-left {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 2rem;
}

.text-pad-left {
  padding-left: 2rem;
}

/* ==========================================================================
   STORY BLOCK: 65% Image / 35% Text Framework
   ========================================================================== */
.travel-story-split {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 6%;
  align-items: flex-start;
  margin-bottom: 10rem;
}

.travel-story-split.layout-reverse {
  grid-template-columns: 35fr 65fr;
}

.story-image-panel {
  width: 100%;
}

.story-image-panel img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.05);
}

.story-text-panel {
  padding: 1rem 0;
}

.panel-num {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.story-text-panel h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.story-text-panel p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* ==========================================================================
   EDITORIAL ASYMMETRIC GALLERY GRID
   ========================================================================== */
.editorial-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  margin-bottom: 10rem;
  align-items: end;
}

.img-frame {
  width: 100%;
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.item-tall {
  grid-column: 1 / span 6;
}
.item-tall .img-frame img { height: 50vh; }

.item-wide {
  grid-column: 7 / span 6;
  margin-bottom: 12rem;
}
.item-wide .img-frame img { height: 30vh; }

.item-standard {
  grid-column: 3 / span 8;
}
.item-standard .img-frame img { height: 35vh; }

/* Add a new, smaller grid profile item */
.item-compact {
  grid-column: 11 / span 2; /* Occupies a small 2-column track on the far right */
}
.item-compact .img-frame img {
  height: 25vh;
}


/* ==========================================================================
   FULLSCREEN REVEAL VIEWPORT
   ========================================================================== */
.fullscreen-reveal {
  margin: 8rem -5.3% 0 -5.3%;
  position: relative;
}

.reveal-container {
  width: 100%;
  height: 85vh;
}

.reveal-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal-caption {
  background: var(--bg-pure);
  padding: 4rem 10%;
  text-align: center;
}

.reveal-caption blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   STICKY OVERVIEW SEGMENT
   ========================================================================== */
.sticky-hike-intro {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 5%;
  position: relative;
  margin-top: 4rem;
}

.sticky-sidebar {
  position: sticky;
  top: 15vh;
  height: fit-content;
  padding-bottom: 4rem;
}

.sticky-sidebar h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 1.5rem 0;
}

.sticky-sidebar p {
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.hike-metrics {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.metric span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric strong {
  font-weight: 600;
}

/* Timeline Stacking Cards */
.scrollable-timeline {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
}

.card-img-wrapper {
  width: 100%;
}

.card-img-wrapper img {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 2rem 0.5rem 0.5rem 0.5rem;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.card-body h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 400;
  margin: 0.75rem 0 1.25rem 0;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ==========================================================================
   STAGGERED GALLERY
   ========================================================================== */
.staggered-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 12rem 0;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  display: block;
}

.gallery-col.move-down {
  margin-top: 8rem;
}

/* ==========================================================================
   SUMMIT SECTION HERO STYLE
   ========================================================================== */
.summit-split-hero {
  display: grid;
  grid-template-columns: 60% 40%;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  align-items: center;
  margin-bottom: 10rem;
}

.summit-img-box {
  width: 100%;
}

.summit-img-box img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  display: block;
}

.summit-text-box {
  padding: 4rem;
}

.summit-text-box h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 1rem 0 1.5rem 0;
}

.summit-text-box p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 300;
}

/* ==========================================================================
   OUTRO REFLECTION STYLE
   ========================================================================== */
.editorial-outro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  margin: 12rem 0;
  align-items: start;
}

.outro-text h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.outro-text p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: 300;
}

.outro-quote blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.4;
  border-left: 2px solid var(--text-main);
  padding-left: 2rem;
}

/* ==========================================================================
   FOOTER STYLE
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 5%;
  margin-top: 8rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE SCALING LAYOUT
   ========================================================================== */
@media (max-width: 968px) {
  .portfolio-nav { padding: 1.5rem; }
  .hero-minimal { padding: 0 5%; }
  .hero-anchors-wrapper { flex-direction: column; align-items: flex-start; gap: 1rem; }
  
  .pos-caption-left, .pos-caption-right { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .text-pad-left { padding-left: 0; }
  
  .destination-intro-block,
  .travel-story-split, 
  .travel-story-split.layout-reverse,
  .sticky-hike-intro,
  .summit-split-hero,
  .editorial-outro {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
  
  .sticky-sidebar { position: relative; top: 0; }
  .editorial-photo-grid { display: flex; flex-direction: column; gap: 4rem; }
  .item-wide { margin-bottom: 0; }
  
  .staggered-gallery { grid-template-columns: 1fr; gap: 4rem; margin: 6rem 0;}
  .gallery-col.move-down { margin-top: 0; }
  .gallery-col { gap: 4rem; }
  .summit-text-box { padding: 2rem; }
}



.chapter-video {
  width: 80%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin: 1.5rem 0;
}