@charset "UTF-8";

/* Base TML & Body */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* 16px is the modern standard for 1rem */
}
body {
  background-color: var(--bg-color); /* Uses dark mode variable */
  color: var(--text-primary); /* Uses off-white text variable */
  font-family: var(--font-body); /* Proxima Nova, Adobe sans-serif */
  font-weight: 400;
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased; /* Makes typography look sharper on Mac */
  -moz-osx-font-smoothing: grayscale;
}

/* Global Header */
.global-header {
  position: absolute; /* Pulls it out of the stack so the hero slides up under it */
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm) var(--space-md); /* Gives it breathing room from the edges */
  z-index: 100; /* Guarantees it stays on top of the image */

  /* Flexbox to push Logo left and Nav right */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.logo {
  width: clamp(50px, 8vw, 100px);
  display: block;
  /* The Modern Legibility Glow, Not a visible shadow */
  /* drop-shadow(X-offset, Y-offset, Blur, Color) */
  /* filter: drop-shadow(0px 0px 0.25rem rgba(0, 0, 0, 0.3)); */
}

/* Mobile Navigation, Up to 1067px */
.mobile-menu-toggle {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  z-index: 1000; /* Must be higher than the .main-nav */
  position: relative; /* Forces the z-index to activate */
}
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--accent-red2);
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;

  /* The Hardware-Accelerated Slide */
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}
.main-nav.is-open {
  transform: translateX(0); /* Slides it onto the screen */
}
.main-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-xxl); /* Massive cinematic text for mobile */
  color: var(--text-primary);
  display: block;
}
.main-nav a.nav-cta {
  color: var(--accent-color);
  font-style: italic;
}

/* Desktop Navivation (The Elegant Split) 1068px and up */
@media only screen and (min-width: 1068px) {
  /* 1. Kill the hamburger button */
  .mobile-menu-toggle {
    display: none;
  }
  /* 2. Destroy the mobile drawer and return to normal document flow */
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: translateX(0); /* Reset the off-canvas shift */
    display: block;
  }
  /* 3. Reformat the list into a horizontal row */
  .main-nav ul {
    flex-direction: row;
    align-items: center;
  }
  /* 4. Switch from massive serif to clean, uppercase sans-serif */
  .main-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .main-nav a.nav-cta {
    color: var(--text-secondary);
    font-style: normal;
    border: 1px solid;
    padding: 8px 13px;
    border-radius: 5px;
  }
}

/* Global Footer */
.global-footer {
  display: flex;
  flex-direction: column; /* This forces the vertical stack */
  align-items: center; /* Dead-centers everything horizontally */
  text-align: center;

  /* Massive breathing room above the footer to separate it from the content */
  padding: var(--space-xl) var(--space-md) var(--space-md);
  gap: var(
    --space-sm
  ); /* The exact distance between the copyright line and the socials */
}

/* Subdue the copyright text so it doesn't scream at the user */
.global-footer p {
  color: var(
    --accent-color
  ); /* Assuming you have a slightly muted gray/off-white variable */
  font-size: 0.875rem; /* 14px - keeps it legible but secondary */
  margin-bottom: 0; /* Kill the default paragraph margin so Flexbox controls the spacing */
}

/* The Socials Container */
.social-links {
  display: flex;
  flex-direction: row; /* Keeps Instagram and Twitter cleanly side-by-side */
  justify-content: center;
  gap: var(--space-md); /* Elegant negative space between the two links */
}

/* Premium Typography for the Social Links */
.social-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Wide tracking for that Vogue/editorial aesthetic */
  color: var(--text-primary);
  transition: opacity var(--transition-smooth);
}
.social-links img {
  display: block;
  width: 45px;
}

/* =========================================
   (Mobile - up to 734px)
   ========================================= */
/* Default styles */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  /* This is how you do transitions properly: only on the element that needs it */
  transition: opacity var(--transition-smooth);
}
a:hover {
  opacity: 0.7; /* A subtle, premium fade instead of an underline */
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading); /* Uses Garamond Premier Pro, Adobe Serif */
  color: var(--text-primary); /* Uses your pure white/accent */
  font-weight: 400; /* High-end editorial usually avoids heavy bolding */
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
}

h1 {
  font-size: var(--text-xxl);
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
h2 {
  font-size: var(--text-xl);
  color: var(--accent-color);
}
.pretitle {
  /* Usually sits above H1 */
  font-size: var(--text-lg);
  letter-spacing: 0.05rem;
}
p {
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
}
.b {
  font-weight: 700;
}
.i {
  font-style: italic;
}

.btn {
  padding: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  border-radius: 5px;
}
.btn-primary {
  background: var(--accent-red2);
}
.btn-ghost {
  border: 1px solid;
}

/* Hero */
.hero-section {
  /* Forces the section to be exactly the height of the user's screen */
  height: 100vh;
  width: 100%;

  background-image: url("../assets/hero/dune-cinematic-editorial-portrait-christopher-loke.jpg");
  background-size: 500%;
  background-position: 38% 80%;
  background-repeat: no-repeat;

  /* A subtle dark overlay so your H1 text pops perfectly */
  background-color: var(--bg-color);
  box-shadow: inset 0 0 0 2000px rgba(10, 10, 10, 0.4);
  /* The Flex Engine */
  display: flex;
  flex-direction: column;
  /* 1. Push everything to the absolute bottom */
  justify-content: flex-end;
  /* 2. Center it horizontally */
  align-items: center;
  text-align: center;
  /* 3. The "Bottom Quarter" Math */
  padding: 0 var(--space-md) 15vh;
}
.hero-content h2 {
  font-family: var(--font-body);
  color: var(--text-secondary);
}
.hero-actions {
  display: flex;
  flex-direction: column; /* Stacks the buttons one on top of the other */
  gap: var(--space-sm); /* Uses your fluid spacing variable */
  width: 100%;
  margin-top: var(--space-md); /* Gives breathing room from the H2 */
}
/* Force the buttons to stretch full width on mobile for easy tapping */
.hero-actions .btn {
  width: 100%;
  text-align: center;
}

/* Manifesto */
.manifesto-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.manifesto-content {
  padding: var(--space-lg) var(--space-md);
}
.manifesto-content p {
  font-size: var(--text-lg);
}
.manifesto-actions {
  margin-top: var(--space-lg);
}

/* Staggered Teaser */
.staggered-teaser {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl); /* Massive vertical breathing room */
  padding: var(--space-xl) var(--space-md); /* Pad the top/bottom, keep off mobile edges */
  width: 100%;
}
.teaser-item {
  width: 100%; /* Take up the full mobile screen width (minus padding) */
  display: flex;
}
.teaser-item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures your images behave perfectly */
  border-radius: 0.5rem;
}

/* Gateway CTA */
.gateway-cta {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-xl);
}

/* PORTFOLIO ARCHIVE PAGE */
/* The Header & Menu Spacing */
.portfolio-page {
  padding-top: 15vh; /* Pushes content down clear of the global fixed header */
  padding-bottom: var(--space-xl);
}
.portfolio-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.portfolio-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(
    --text-primary
  ); /* Keeps it stark and white, not the accent color */
}
/* The Minimal Premium Sticky Filter Menu (Mobile First) */
.filter-menu {
  display: flex;
  flex-wrap: wrap; /* Safety net: lets items drop to a second line instead of breaking the screen */
  justify-content: center;
  align-items: center;
  gap: 0.5rem; /* Tighter gap for mobile */

  margin-top: var(--space-md);
  margin-bottom: var(
    --space-xl
  ); /* Massive breathing room before the grid starts */

  /* The Sticky Engine */
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  z-index: 90;

  /* The Apple Frosted Glass Effect */
  background-color: rgba(16, 15, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Sizing & Edge Protection */
  padding: 0.5rem 1rem; /* Tighter padding for mobile */
  border-radius: 50px;
  width: fit-content;
  max-width: 95vw; /* Physically prevents the menu from expanding past the screen width */
  margin-left: auto;
  margin-right: auto;

  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem; /* 12px for mobile - guarantees it fits on one line */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-smooth);
}
.filter-btn:hover {
  color: var(--accent-color);
}
.filter-btn.active {
  color: var(--accent-color);
  font-weight: 700;
}
/* THE MASONRY ENGINE (Pure CSS)
   Mobile: 1 Column
   Tablet: 2 Columns
   Desktop: 3 Columns
*/
.master-grid {
  column-count: 1;
  column-gap: var(--space-md);
  padding: 0 var(--space-md);
  width: 100%;
}
.grid-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  /* Revert back to margin instead of padding for perfect CSS column math */
  margin-bottom: var(--space-md);
  /* This explicitly kills the invisible typography baseline gap */
  vertical-align: top;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
/* Make sure the image inside doesn't have any hidden spacing */
.grid-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}
/* The JavaScript Hiding Class */
.grid-item.hidden {
  display: none;
}

/* The Lightbox */
/* Change the cursor on the grid images so users know they can click */
.grid-item img {
  cursor: zoom-in;
}
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999; /* Forces it above your global header */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(
    10,
    10,
    10,
    0.98
  ); /* Almost pure black, slight transparency */

  /* Flexbox to dead-center the expanded image */
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 90vw; /* Keeps it slightly off the edges */
  max-height: 90vh;
  object-fit: contain; /* Ensures the whole image is always visible without cropping */
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8); /* Cinematic glow behind the image */
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  color: var(--text-primary);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}
.lightbox-close:hover {
  color: var(--accent-color); /* Turns gold/red when hovered */
}

/* About Page, Split Screen Editorial */
.about-page {
  padding-top: 15vh;
  width: 100%;
}
.about-grid {
  display: flex;
  flex-direction: column; /* Stacks on mobile */
  width: 100%;
}
.about-copy {
  padding: 0 var(--space-md) var(--space-xl);
}
.about-title {
  font-size: var(--text-xxl);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.intro-text {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--accent-color) !important;
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}
.about-prose p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}
.location-text {
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-primary) !important;
  font-size: var(--text-lg);
}
.about-image {
  width: 100%;
}
.image-sticky-wrapper {
  width: 100%;
  height: 60vh;
  overflow: hidden; /* THIS IS CRITICAL: It chops off the 10% overflow */
}
.about-image img {
  width: 100%;
  height: 100%; /* Changed from 60vh to 100% so the wrapper controls the height */
  object-fit: cover; /* Locks the aspect ratio, preventing the warp */
  object-position: 50% 40%; /* Keep adjusting this to center your eyes */
  transform: scale(1); /* Mathematically zooms the image */
}

/* Luxury Inquiry Form */
.inquiry-section {
  padding: var(--space-xl) var(--space-md);
  background-color: #0a0a0a; /* Slightly darker than base body to separate it */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
}
.inquiry-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}
.inquiry-container h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.inquiry-container p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}
.luxury-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.luxury-form input,
.luxury-form select,
.luxury-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0;
  transition: border-color var(--transition-smooth);
}
.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--accent-color);
}
/* Fix select dropdown color on MacOS/Windows */
.luxury-form select option {
  background-color: var(--bg-color);
  color: var(--text-primary);
}
.submit-btn {
  margin-top: var(--space-sm);
  padding: 1rem 2rem;
  border: none;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color var(--transition-smooth);
}
.submit-btn:hover {
  background-color: var(--accent-red);
}

/* Thank You Utility Page */
.thanks-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
}
.thanks-logo {
  margin-bottom: var(--space-xl);
  width: 100px;
}
.thanks-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.thanks-text {
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}
.thanks-btn {
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

/* =========================================
   TABLET (735px and up)
   ========================================= */
@media only screen and (min-width: 735px) {
  /* Hero */
  .hero-section {
    background-size: 350%;
    background-position: 40% 55%;
  }
  .hero-content h1 {
    color: white;
  }
  .hero-actions {
    flex-direction: row; /* Snaps the buttons side-by-side */
    width: auto; /* Releases the 100% stretch constraint */
    justify-content: center; /* Forces the buttons to the dead center of the row */
  }
  /* Return buttons to their natural width based on the text inside them */
  .hero-actions .btn {
    width: auto;
  }

  /* PORTFOLIO ARCHIVE PAGE */
  /* Restore Luxury Menu Spacing */
  .filter-menu {
    gap: var(--space-md);
    padding: 0.75rem 2rem;
  }
  .filter-btn {
    font-size: 0.875rem; /* Returns to 14px */
  }
  .master-grid {
    column-count: 2;
    column-gap: var(--space-lg);
  }
  .grid-item {
    margin-bottom: var(--space-lg);
  }
}

/* =========================================
   Laptop / Standard Desktop (1068px and up)
   ========================================= */
@media only screen and (min-width: 1068px) {
  /* Hero */
  .hero-section {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
    padding-left: var(--space-xl);
    padding-right: var(--space-md);
    background-size: 150%;
    background-position: 0 60%;
  }
  .hero-actions {
    justify-content: flex-start;
  }

  /* Manifesto */
  .manifesto-content {
    padding: var(--space-xl);
  }

  /* Staggered Teaser */
  /* Restrict the images to 45% of the screen so they don't look massive and blurry */
  .teaser-item {
    width: 55%;
  }
  /* Image 1: Force it to the left edge */
  .teaser-item.align-left {
    align-self: flex-start;
  }
  /* Image 2: Force it to the right edge */
  .teaser-item.align-right {
    align-self: flex-end;
  }
  /* Image 3: Force it dead center */
  .teaser-item.align-center {
    align-self: center;
  }

  /* PORTFOLIO ARCHIVE PAGE */
  .master-grid {
    column-count: 3;
    column-gap: var(
      --space-md
    ); /* Reduced from XL to MD for tight, editorial grouping */
    padding: 0 var(--space-xl); /* Keeps the grid breathing off the monitor edges */
  }
  .grid-item {
    margin-bottom: var(
      --space-md
    ); /* Matches the column-gap for perfect mathematical spacing */
  }

  /* About Page, Split Screen */
  .about-grid {
    flex-direction: row;
    align-items: stretch; /* Forces the right column to be as tall as the left text column */
  }
  .about-page {
    padding-top: 0;
  }
  /* Left Column occupies 50% */
  .about-copy {
    width: 50%;
    padding: 15vh var(--space-xl) var(--space-xl) 10vw; /* Added 15vh to the top padding */
  }
  /* Right Column occupies 50% */
  .about-image {
    width: 50%;
    /* Removed height and sticky from here so it acts as a tall track */
  }
  .image-sticky-wrapper {
    position: sticky; /* Moved the sticky engine to the inner wrapper */
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Keeps the scaled image sliced cleanly */
  }
  .about-image img {
    height: 100%;
    object-fit: cover; /* Locks the aspect ratio, preventing the warp */
    object-position: 50% 25%; /* Keep adjusting this to center your eyes */
  }
}

/* =========================================
   Ultra-Wide Monitors (Pushed out of the Laptop Zone, 1921px and up)
   ========================================= */
@media only screen and (min-width: 1921px) {
  /* Hero */
  .hero-section {
    background-size: cover;
    background-position: center center;
  }

  /* Staggered teaser */
  .staggered-teaser {
    /* Keep the column direction, but now we control the width of the images */
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
  .teaser-item {
    width: 45%;
  }

  /* Manifesto */
  .manifesto-content {
    width: 75vw;
  }

  /* PORTFOLIO ARCHIVE PAGE */
  .master-grid {
    column-count: 4; /* NOW we trigger the 4th column because we have the screen real estate */
    column-gap: var(--space-lg); /* Slightly wider gap for massive screens */
    padding: 0 10vw; /* Pinches the grid slightly so it doesn't span 4000px wide on a curved monitor */
  }
  .grid-item {
    margin-bottom: var(--space-lg);
  }
}
