
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
}

main {
  width: 100%;
  min-height: 100vh;
}
/* ==================== */
/* ANIMATION KEYFRAMES  */
/* ==================== */

@keyframes smoothReveal {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slowScale {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==================== */
/* ELEVATED MINIMAL HERO */
/* ==================== */

.hero-section {
  background-color: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 6vw 4rem;
  overflow: hidden;
  position: relative;
}

.elevated-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  gap: 6vw;
}

.elevated-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.hero-prof {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--hero-prof);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  color: var(--hero-name);
  margin: 0 0 2rem 0;
  letter-spacing: -2px;
  opacity: 0;
  animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1rem);
  color: var(--hero-quote);
  max-width: 520px;
  margin-bottom: 3.5rem;
  animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: smoothReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.elevated-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.elevated-btn.primary {
  background-color: var(--hero-btn-bg);
  color: var(--hero-bg);
  border: 1px solid var(--hero-btn-bg);
}

.elevated-btn.primary:hover {
  background-color: transparent;
  color: var(--hero-btn-text-hover);
}

.elevated-btn.secondary {
  background-color: transparent;
  color: var(--hero-btn2-text);
  padding: 16px 8px;
  border-radius: 0;
}

.elevated-btn.secondary::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 0;
  width: 100%; height: 2px;
  background-color: var(--hero-btn-hover-bg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.elevated-btn.secondary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.elevated-visual {
  flex: 0.9;
  position: relative;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  animation: smoothReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.image-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 138, 122, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.05) saturate(0.9);
  transition: filter 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
  animation: slowScale 2s ease forwards;
}

.image-container:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(107, 138, 122, 0.22);
}

.image-container:hover::after {
  opacity: 1;
}

.image-container:hover img {
  filter: grayscale(0%) contrast(1.05) saturate(1.1);
  transform: scale(1.06);
}

/* ==================== */
/* MEDIA QUERIES        */
/* ==================== */

@media (max-width: 1024px) {
  .hero-section { padding: 8rem 5vw; }
  .elevated-wrapper { gap: 4vw; }
}

@media (max-width: 900px) {
  .elevated-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  .elevated-content {
    align-items: center;
  }
  .hero-quote {
    margin: 0 auto 3rem auto;
  }
  .elevated-visual {
    justify-content: center;
    width: 100%;
  }
  .image-container {
    max-width: 600px;
    aspect-ratio: 3/3.5;
  }
}

@media (max-width: 480px) {
  .hero-section { padding: 6rem 1.5rem 4rem; }
  .hero-name { font-size: clamp(3rem, 12vw, 4rem); letter-spacing: -1px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; }
  .elevated-btn { width: 100%; text-align: center; padding: 14px; }
  .elevated-btn.secondary::after { display: none; }
  .elevated-btn.secondary { border: 1px solid var(--hero-accent); }
  .image-container { aspect-ratio: 4/5; }
}

/* ============================ */
/* GALLERY PREVIEW SECTION      */
/* ============================ */

#home-gallery {
  background-color: var(--home-gallery-bg);
  min-height: 100vh;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

/* Typography Headings */
.gallery-home-header {
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
}

.gallery-home-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--home-gallery-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-home-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--home-gallery-title);
  font-style: italic;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Masterpiece Accordion Container */
.gallery-accordion-container {
  display: flex;
  flex-direction: column; /* Mobile first stack */
  width: 100%;
  max-width: 1600px;
  height: 80vh; /* Takes up a good portion of viewport */
  min-height: 600px;
  margin: 0 auto;
  gap: 0.5rem; /* Clean, minimal gap */
  background-color: var(--home-gallery-grid);
}

@media (min-width: 900px) {
  .gallery-accordion-container {
    flex-direction: row; /* Horizontal for desktop */
  }
}

/* Accordion Item */
.accordion-item {
  flex: 1; /* By default, share width/height evenly */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.8s var(--home-gallery-transition, cubic-bezier(0.25, 1, 0.5, 1));
  will-change: flex;
  border-radius: 4px; /* Optional slight curve */
}

/* Expand the active item */
.accordion-item:hover,
.accordion-item:focus-within {
  flex: 4; /* Expand strongly */
}

/* Image settings */
.accordion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--home-gallery-transition, cubic-bezier(0.25, 1, 0.5, 1));
  will-change: transform;
}

/* Subtle zoom off focus */
.accordion-item:hover img,
.accordion-item:focus-within img {
  transform: scale(1.03); 
}

/* Metadata Overlay Container */
.metadata-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push text to bottom */
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%); /* Legibility gradient */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--home-gallery-transition);
  will-change: opacity, transform;
  pointer-events: none; /* Let clicks pass through */
}

.accordion-item:hover .metadata-overlay,
.accordion-item:focus-within .metadata-overlay {
  opacity: 1;
  transform: translateY(0);
  /* Slight delay over the layout shift for a layered effect */
  transition: opacity 0.6s ease 0.1s, transform 0.6s var(--home-gallery-transition) 0.1s; 
}

/* Typography Inside Overlay */
.metadata-overlay p,
.metadata-overlay h4,
.metadata-overlay span {
  color: var(--home-gallery-text-in);
  margin: 0;
}

.metadata-quote {
  font-family: serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem !important;
  opacity: 0.9;
}

.metadata-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.5rem !important;
}

.metadata-device {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Call to Action Button */
.gallery-cta {
  margin-top: 2rem;
}

.home-gallery-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--home-gallery-btn-all);
  border: 1px solid var(--home-gallery-btn-all);
  padding: 0.8rem 2rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  will-change: transform;
  border-radius: 2px;
}

.home-gallery-btn:hover {
  background-color: var(--home-gallery-btn-all);
  color: var(--home-gallery-btn-all-hover);
  transform: translateY(-2px);
}

/* ============================ */
/* FEATURED LITERATURE SECTION  */
/* ============================ */

#featured-literature {
  background-color: var(--home-lit-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 6vw;
  position: relative;
  border-top: 1px solid var(--home-lit-border);
  border-bottom: 1px solid var(--home-lit-border);
}

.lit-wrapper {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}

/* Visual Side */
.lit-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.book-container {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.book-backdrop-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  right: -10%;
  bottom: -10%;
  background: radial-gradient(circle at center, transparent 70%);
  opacity: 0.3;
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
}

.book-cover {
  position: relative;
  z-index: 2;
  box-shadow: 20px 25px 50px rgba(0, 0, 0, 0.7),
              5px 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.book-cover:hover {
  transform: translateY(-5px);
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Side */
.lit-content {
  display: flex;
  flex-direction: column;
}

.kicker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kicker-line {
  width: 30px;
  height: 1px;
}

.kicker-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--home-lit-text-main2);
}

.lit-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--home-lit-text-main);
  margin: 0 0 2rem 0;
}

.lit-title .highlight {
  font-style: italic;
  color: var(--home-lit-text-main2);
}

.lit-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--home-lit-text-main2);
  margin: 0 0 2.5rem 0;
  max-width: 90%;
  font-weight: 300;
}

.lit-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--home-lit-text-main);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
}

.lit-feature i {
  font-style: normal;
  font-size: 1.2rem;
}

.lit-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--home-lit-text-main);
  margin: 0 0 3.5rem 0;
  padding-left: 2rem;
}

.lit-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.btn-primary-vintage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--home-lit-text-main);
  border: 1px solid var(--home-lit-border);
  padding: 14px 36px;
  text-decoration: none;
  transition: all 0.4s ease;
  background: transparent;
}

.btn-primary-vintage:hover {
  background-color: var(--home-lit-text-main);
  color: var(--home-lit-btn-bg);
  border-color: var(--home-lit-text-main);
}

.btn-text-vintage {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--home-lit-text-main2);
  text-decoration: none;
  transition: color 0.4s ease;
}

.btn-text-vintage:hover {
  color: var(--home-lit-text-main);
}

@media (max-width: 960px) {
  .lit-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .lit-content {
    align-items: center;
    text-align: center;
  }
  .lit-desc {
    max-width: 100%;
  }
  .kicker-wrap {
    justify-content: center;
  }
  .lit-quote {
    padding: 0;
    border-left: none;
  }
}

/* ============================ */
/* VOYAGE / THE MINIMAL LOGBOOK */
/* ============================ */



/* ============================ */

#voyage-logbook {
  background-color: var(--home-voyage-bg);
  height: 100vh; /* Enforces absolute 1-page height */
  padding: 4rem 2rem 2rem 2rem; /* Reduced vertical padding */
  display: flex;
  justify-content: center;
  overflow: hidden; /* Prevents scrolling past the fold */
}

.logbook-wrapper {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logbook-header {
  margin-bottom: 1.5rem; /* Tighter margin */
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.logbook-subtitle {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--home-voyage-subtitle);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.logbook-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin: 0;
  color: var(--home-voyage-title);
  letter-spacing: -1px;
}

.logbook-list {
  display: flex;
  flex-direction: column;
  flex: 1; /* Take up all remaining space */
  justify-content: space-between; /* Evenly distribute entries */
}

/* Base list styling */
.logbook-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 1rem;
  flex: 1; /* Stretch entries to fit window height */
  gap: 2rem;
  transition: background-color 0.4s ease, padding-left 0.4s ease;
  cursor: default;
}

.logbook-entry:last-child {
  border-bottom: none;
}

.logbook-entry:hover {
  background-color: rgba(255,255,255,0.02);
  padding-left: 2rem;
}

/* Metadata grouping */
.entry-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry-coord {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--home-voyage-cord-text);
  letter-spacing: 0.1em;
}

.voy-loc {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--home-voyage-loc-text);
  opacity: 0.5;
  text-transform: uppercase;
}

/* Big Display Title */
.entry-name {
  flex: 2;
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 300;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--home-entry-text);
  transition: color 0.4s ease;
}

.logbook-entry:hover .entry-name {
  color: var(--home-entry-text-hover);
}

/* Minimal visual window */
.entry-visual {
  flex: 2;
  height: 70%; /* Scales dynamically with row height */
  max-height: 120px;
  min-height: 60px;
  overflow: hidden;
  border-radius: 4px;
/* Cinematic mask fade to blend it into the background on the left side */
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%);
  opacity: 0.5;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.entry-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.logbook-entry:hover .entry-visual {
  opacity: 1;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%);
}

.logbook-entry:hover .entry-visual img {
  filter: grayscale(0%);
  transform: scale(1.05) translateX(-10px);
}

.voyage-btn {
  border: 1px solid var(--home-voyage-btn-all);
  background: transparent;
  color: var(--home-voyage-btn-all);
}
.voyage-btn:hover {
  background-color: var(--home-voyage-btn-all);
  color: var(--home-voyage-bg);
}

/* Mobile adjustments */
@media (max-width: 900px) {
  #voyage-logbook {
    height: 100vh; /* Keep the strict one-page height */
    min-height: -webkit-fill-available;
    padding: 6rem 1.5rem 2rem;
    overflow: hidden;
  }
  
  .logbook-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    gap: 1rem;
    height: 100%;
    padding-bottom: 2rem;
  }
  
  .logbook-list::-webkit-scrollbar {
    display: none;
  }
  
  .logbook-entry {
    flex: 0 0 85vw; /* Take up most of the screen width */
    scroll-snap-align: center;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
  }
  
  .logbook-entry:hover {
    padding-left: 2rem;
    background-color: transparent;
  }

  .entry-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 0.4; /* Blend image into background */
    z-index: 0;
    border-radius: 0;
  }
  
  .entry-meta, .entry-name {
    position: relative;
    z-index: 1; /* Bring text above the background */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  }
  
  .entry-name {
    color: #fff;
    font-size: clamp(24px, 6vw, 36px);
  }
  
  .entry-visual img {
    filter: grayscale(40%);
  }

  .logbook-entry:hover .entry-visual {
    opacity: 0.6;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .logbook-entry:hover .entry-visual img {
    transform: scale(1.05);
    filter: grayscale(0%);
  }
}




