/* ==========================================================================
   NAYVAM ATELIER & CO - ARCHITECTURAL DESIGN SYSTEM
   Color Palette:
   - Burnt Sienna: #984216
   - Ivory Sand:   #E4D6C5
   - Espresso Brown: #1B0C05
   Keywords: Intuitive, Newness, Adaptability
   ========================================================================== */

:root {
  /* Brand Primary Colors */
  --burnt-sienna: #984216;
  --burnt-sienna-hover: #B04D1B;
  --burnt-sienna-light: rgba(152, 66, 22, 0.25);
  --ivory-sand: #E4D6C5;
  --ivory-sand-light: #853711;
  --ivory-sand-tint: #702e0e;
  --espresso-brown: #8ae1e8;
  --espresso-muted: #8ae1e8;
  --espresso-light: #8ae1e8;
  --espresso-faint: rgba(0, 255, 255, 0.1);

  /* Semantic System Tokens */
  --bg-primary: #984216;
  --bg-secondary: #853711;
  --bg-card: #853711;
  --bg-dark: #702e0e;
  --text-primary: #8ae1e8;
  --text-secondary: #8ae1e8;
  --text-muted: #8ae1e8;
  --text-light: #8ae1e8;
  --text-light-muted: #8ae1e8;
  --border-light: rgba(0, 255, 255, 0.25);
  --border-sienna: rgba(0, 255, 255, 0.45);
  --border-dark: rgba(0, 255, 255, 0.25);

  /* Typography */
  --font-primary: 'Anton', sans-serif;
  --font-secondary: 'Oswald', sans-serif;
  --font-display: 'Anton', sans-serif;
  --font-editorial: 'Oswald', sans-serif;
  --font-sans: 'Oswald', sans-serif;

  /* Transitions */
  --trans-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
  overflow-anchor: none;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
.brand-font {
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editorial-font {
  font-family: var(--font-secondary);
  font-style: normal;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast), opacity var(--trans-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   HEADER / GLOBAL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(152, 66, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--trans-smooth), border-color var(--trans-smooth), transform var(--trans-smooth);
}

.site-header.transparent-mode {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.dark-mode {
  background: rgba(152, 66, 22, 0.98);
  border-bottom-color: var(--border-dark);
  color: var(--text-primary);
}

/* Brand Identity Lockup */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-logo-combo {
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
}

.header-logo-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}

.brand-lockup:hover .header-logo-icon {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 50px;
  width: max-content;
  box-sizing: border-box;
}

.brand-title {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  line-height: 0.85;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: #8ae1e8 !important;
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
  text-transform: none !important;
  white-space: nowrap;
}

.brand-title i {
  font-family: inherit;
  font-style: normal;
  text-transform: none !important;
}

.dark-mode .brand-title {
  color: #8ae1e8 !important;
}

.brand-subtitle {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.29em;
  margin-right: -0.29em;
  text-transform: lowercase;
  color: #8ae1e8 !important;
  line-height: 1;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: 0;
  text-align: left;
  align-self: flex-start;
  white-space: nowrap;
  display: block;
}

.dark-mode .brand-subtitle {
  color: #8ae1e8 !important;
}

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-quick-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-link {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  color: #8ae1e8;
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #8ae1e8;
  transition: width var(--trans-fast);
}

.header-link:hover::after {
  width: 100%;
}

.dark-mode .header-link::after {
  background: #8ae1e8;
}

/* Menu Hamburger Button */
.menu-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.08);
  color: #8ae1e8;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--trans-fast);
}

.dark-mode .menu-toggle-btn {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.4);
  color: #8ae1e8;
}

.menu-toggle-btn:hover {
  background: #8ae1e8;
  color: #984216;
  border-color: #8ae1e8;
  transform: translateY(-1px);
}

.hamburger-icon {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  height: 1.5px;
  width: 100%;
  background-color: currentColor;
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

/* ==========================================================================
   FULLSCREEN NAVIGATION DRAWER OVERLAY
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #984216;
  color: #8ae1e8;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3vw 5vw;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.25);
}

.nav-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ae1e8;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 40px;
  transition: all var(--trans-fast);
}

.nav-close-btn:hover {
  border-color: #8ae1e8;
  background: #8ae1e8;
  color: #984216;
}

.nav-overlay-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 6vw;
  padding: 4vh 0;
}

.nav-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8vh;
}

.nav-item-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  color: #8ae1e8;
  letter-spacing: 0.08em;
  display: inline-block;
  transition: transform var(--trans-smooth), color var(--trans-fast);
  position: relative;
}

.nav-item-link:hover {
  color: #E4D6C5;
  transform: translateX(16px);
}

.nav-item-link.active-link {
  color: #E4D6C5;
}

.nav-item-link.active-link::before {
  content: '—';
  position: absolute;
  left: -40px;
  color: #8ae1e8;
}

.nav-overlay-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-left: 1px solid rgba(0, 255, 255, 0.25);
  padding-left: 4vw;
}

.nav-info-block h4 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #8ae1e8;
  margin-bottom: 0.75rem;
}

.nav-info-block p,
.nav-info-block a {
  font-size: 0.95rem;
  color: #8ae1e8;
  line-height: 1.6;
}

.nav-info-block a:hover {
  color: #E4D6C5;
}

.nav-social-links {
  display: flex;
  gap: 1.5rem;
}

.nav-social-link {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ae1e8;
  transition: color var(--trans-fast);
}

.nav-social-link:hover {
  color: #E4D6C5;
}

.nav-overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #8ae1e8;
}

/* ==========================================================================
   APP PAGE VIEW CONTAINER & TRANSITIONS
   ========================================================================== */
.page-view {
  display: none;
  min-height: 80vh;
  overflow-anchor: none;
}

.page-view.active {
  display: block;
}

/* Suppress Footer on Intro and Contact Views */
#intro-view.active ~ .site-footer,
#contact-view.active ~ .site-footer {
  display: none !important;
}

#intro-view {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #984216;
  color: #8ae1e8;
}

.intro-ambient-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: transform 12s ease-out;
  transform: scale(1.02);
}

.intro-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(152, 66, 22, 0.2) 0%, rgba(152, 66, 22, 0.4) 40%, rgba(152, 66, 22, 0.85) 100%);
  pointer-events: none;
}

.intro-center-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  text-align: center;
  padding: 2rem 2rem 5vh 2rem;
}

.intro-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.intro-logo-mark {
  width: clamp(52px, 6vw, 76px);
  height: auto;
  object-fit: contain;
  margin-bottom: 1.2rem;
  display: block;
}

/* Brand Logo Mark Accents Across Pages */
.hero-brand-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.8rem;
}

.hero-logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.studio-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.studio-logo-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.2);
}

.intro-badge {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: none !important;
  color: #8ae1e8 !important;
  margin-bottom: 1.2rem;
  padding: 6px 18px;
  border: 1px solid #8ae1e8;
  border-radius: 40px;
  background: rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.intro-title {
  font-family: var(--font-primary);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  letter-spacing: 0.04em;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #8ae1e8 !important;
  line-height: 1.1;
  text-shadow: none;
}

.intro-title,
.intro-title span,
.intro-title * {
  font-family: var(--font-primary) !important;
  font-weight: 400 !important;
  color: #8ae1e8 !important;
}

.intro-title .title-navyam,
.intro-title .title-navyam i {
  font-family: var(--font-primary) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  color: #8ae1e8 !important;
  letter-spacing: 0.03em;
}

.intro-title span {
  font-family: var(--font-primary) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #8ae1e8 !important;
}

.intro-keywords {
  font-family: var(--font-secondary);
  font-style: normal;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8ae1e8 !important;
  font-weight: 300;
  opacity: 0.95;
  margin-top: 0.8rem;
}

.intro-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 48px;
  border: 1px solid #8ae1e8;
  border-radius: 60px;
  color: #984216;
  background: #8ae1e8;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--trans-smooth);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-explore-btn:hover {
  background: #E4D6C5;
  border-color: #E4D6C5;
  color: #984216;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 255, 255, 0.35);
}

.intro-media-controls {
  position: absolute;
  bottom: 3.5vw;
  right: 4vw;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #8ae1e8;
  background: rgba(0, 255, 255, 0.1);
  color: #8ae1e8;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.media-btn:hover {
  background: #8ae1e8;
  border-color: #8ae1e8;
  color: #984216;
}

/* ==========================================================================
   2. HOME VIEW (#home)
   ========================================================================== */
#home-view {
  padding-top: var(--header-height);
}

/* Home Hero */
.home-hero-section {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 6vw 8vh 6vw;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  background: var(--bg-primary);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8ae1e8;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-pill-badge::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #8ae1e8;
}

.home-hero-headline {
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: #8ae1e8;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.home-hero-subheadline {
  font-family: var(--font-editorial);
  /* font-style: italic; */
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  color: #8ae1e8;
  margin-bottom: 3.5rem;
  max-width: 900px;
}

.home-hero-meta-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4vw;
  align-items: baseline;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-section-label {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8ae1e8;
}

.hero-manifesto-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #8ae1e8;
  max-width: 780px;
}

/* Featured Projects Showcase (Full-bleed sections) */
.featured-projects-section {
  display: flex;
  flex-direction: column;
}

.featured-project-item {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 6vw;
  overflow: hidden;
  color: #8ae1e8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.featured-project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  z-index: 1;
  filter: brightness(82%);
}

.featured-project-item:hover .featured-project-bg {
  transform: scale(1.04);
  filter: brightness(75%);
}

.featured-project-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 12, 5, 0.85) 0%, rgba(27, 12, 5, 0.2) 60%, transparent 100%);
  z-index: 2;
}

.featured-project-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  padding-bottom: 2rem;
}

.project-meta-pill {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 400;
  text-transform: uppercase;
  color: #8ae1e8;
  margin-bottom: 0.75rem;
}

.featured-project-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #8ae1e8;
}

.view-more-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #8ae1e8;
  color: #984216;
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--trans-fast);
}

.featured-project-item:hover .view-more-cta {
  background: #E4D6C5;
  color: #984216;
  transform: translateY(-2px);
}

.cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--trans-fast);
}

.featured-project-item:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   3. PROJECTS VIEW (#projects)
   ========================================================================== */
#projects-view {
  padding-top: var(--header-height);
  background: var(--bg-primary);
}

.projects-intro-header {
  padding: 8vh 6vw 6vh 6vw;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 5vw;
}

.page-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  letter-spacing: 0.08em;
  color: #8ae1e8;
}

.projects-intro-copy {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #8ae1e8;
}

/* Filter Bar */
.projects-filter-bar {
  padding: 1.5rem 6vw;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  background: #853711;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8ae1e8;
  border: 1px solid rgba(0, 255, 255, 0.35);
  transition: all var(--trans-fast);
}

.filter-chip:hover {
  color: #E4D6C5;
  border-color: #8ae1e8;
}

.filter-chip.active {
  background: #8ae1e8;
  color: #984216;
  border-color: #8ae1e8;
}

/* Projects Grid */
.projects-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  /* background: var(--border-light); */
  border-bottom: 1px solid var(--border-light);
}

.project-card {
  position: relative;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--trans-fast);
}

.project-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E0D5C7;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 12, 5, 0.3);
  opacity: 0;
  transition: opacity var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.card-view-indicator {
  padding: 12px 28px;
  border-radius: 40px;
  background: #8ae1e8;
  color: #984216;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(10px);
  transition: transform var(--trans-fast);
}

.project-card:hover .card-view-indicator {
  transform: translateY(0);
}

.project-card-details {
  padding: 2.2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ae1e8;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.project-card-title {
  font-size: 1.5rem;
  line-height: 1.25;
  color: #8ae1e8;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.project-card-desc {
  font-size: 0.92rem;
  color: #8ae1e8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   4. PROJECT DETAIL MODAL / CASE STUDY (#project-detail)
   ========================================================================== */
.project-modal-container {
  position: fixed;
  inset: 0;
  background: rgba(27, 12, 5, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2500;
  display: none;
  opacity: 0;
  overflow-y: auto;
  padding: 4vh 4vw;
  transition: opacity var(--trans-fast);
}

.project-modal-container.active {
  display: flex;
  justify-content: center;
  opacity: 1;
}

.project-modal-card {
  background: #E4D6C5;
  color: #1B0C05;
  width: 100%;
  max-width: 1280px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto;
  border: 1px solid rgba(0, 255, 255, 0.25);
}

.modal-close-trigger {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #8ae1e8;
  color: #984216;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--trans-fast);
}

.modal-close-trigger:hover {
  background: #E4D6C5;
  color: #984216;
  transform: rotate(90deg);
}

.modal-hero-cover {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  background: #2B180D;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(152, 66, 22, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 4vw;
  color: #8ae1e8;
}

.modal-project-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.05em;
  color: #1B0C05;
}

.modal-body-content {
  padding: 4vw;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5vw;
}

.modal-facts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-right: 1px solid rgba(0, 255, 255, 0.25);
  padding-right: 3vw;
}

.fact-item h4 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1B0C05;
  margin-bottom: 0.4rem;
}

.fact-item p {
  font-size: 1.05rem;
  color: #1B0C05;
  font-weight: 500;
}

.modal-narrative-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.modal-narrative-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #1B0C05;
  font-family: var(--font-editorial);
  font-style: italic;
}

.modal-narrative-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1B0C05;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.modal-gallery-item {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--ivory-sand-medium);
  box-shadow: 0 4px 12px rgba(35, 23, 17, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.modal-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(35, 23, 17, 0.16);
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-gallery-item:hover img {
  transform: scale(1.04);
}

.modal-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 8, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-gallery-item:hover::after {
  opacity: 1;
}

/* ==========================================
   GALLERY FULLSCREEN LIGHTBOX
   ========================================== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 8, 5, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lightbox-counter {
  margin-top: 1rem;
  font-family: var(--font-secondary, 'Oswald', sans-serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E4D6C5;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10002;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E4D6C5;
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10001;
  user-select: none;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.75rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  .lightbox-next {
    right: 0.75rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  .lightbox-close-btn {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
  .lightbox-image {
    max-width: 95vw;
    max-height: 75vh;
  }
}

.modal-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4vw;
  border-top: 1px solid rgba(0, 255, 255, 0.25);
  background: #853711;
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ae1e8;
  font-weight: 600;
  transition: color var(--trans-fast);
}

.modal-nav-btn:hover {
  color: #E4D6C5;
}

/* ==========================================================================
   5. STUDIO VIEW (#studio)
   ========================================================================== */
#studio-view {
  padding-top: var(--header-height);
  background: var(--bg-primary);
}

.studio-hero-banner {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ae1e8;
}

.studio-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
}

.studio-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(152, 66, 22, 0.85) 0%, rgba(152, 66, 22, 0.4) 100%); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.studio-hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  letter-spacing: 0.12em;
  color: #8ae1e8;
}

/* Studio Story Section */
.studio-story-section {
  padding: 8vh 6vw;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 6vw;
  border-bottom: 1px solid var(--border-light);
}

.section-label-block {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8ae1e8;
}

.story-lead-paragraph {
  font-size: 1.35rem;
  line-height: 1.6;
  font-family: var(--font-editorial);
  font-style: italic;
  color: #8ae1e8;
  margin-bottom: 1.8rem;
}
.highlight-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #8ae1e8;
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
}

.story-body-paragraph {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #8ae1e8;
}

/* Approach Section */
.studio-approach-section {
  padding: 8vh 6vw;
  border-bottom: 1px solid var(--border-light);
  background: #853711;
}

.approach-header-row {
  margin-bottom: 4rem;
}

.approach-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
}

.pillar-card {
  background: var(--bg-primary);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-smooth), border-color var(--trans-fast), box-shadow var(--trans-smooth);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: #8ae1e8;
  box-shadow: 0 15px 35px rgba(0, 255, 255, 0.15);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #8ae1e8;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.pillar-title {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: #8ae1e8;
  margin-bottom: 1.2rem;
}

.pillar-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #8ae1e8;
}

/* Team Grid Section */
.studio-team-section {
  padding: 8vh 6vw;
  border-bottom: 1px solid var(--border-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5vw;
  margin-top: 3.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #D9CFC4;
  margin-bottom: 1.5rem;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(85%);
  transition: filter var(--trans-smooth), transform var(--trans-smooth);
}

.team-card:hover .team-photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-name {
  font-size: 1.2rem;
  color: #8ae1e8;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8ae1e8;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.88rem;
  color: #8ae1e8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-contact-link {
  font-size: 0.8rem;
  color: #8ae1e8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.team-contact-link:hover {
  color: #E4D6C5;
}

/* Careers / Jobs Section */
.studio-jobs-section {
  padding: 8vh 6vw;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 6vw;
  background: #853711;
  border-bottom: 1px solid var(--border-light);
}

.vacancy-box {
  background: var(--bg-primary);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 3rem;
  margin-top: 2rem;
  border-left: 3px solid #8ae1e8;
}

.vacancy-title {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #8ae1e8;
  margin-bottom: 1rem;
}

.vacancy-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #8ae1e8;
  margin-bottom: 1.8rem;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #8ae1e8;
  color: #984216;
  border-radius: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--trans-fast);
}

.apply-btn:hover {
  background: #E4D6C5;
  color: #984216;
}

/* ==========================================================================
   6. CONTACT VIEW (#contact)
   ========================================================================== */
#contact-view {
  position: relative;
  padding-top: var(--header-height);
  background: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh;
}

.contact-top-close-btn {
  position: fixed;
  top: calc(var(--header-height) + 14px);
  right: 4vw;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #853711;
  color: #8ae1e8;
  border: 1px solid rgba(0, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--trans-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.contact-top-close-btn:hover {
  background: #8ae1e8;
  color: #984216;
  transform: rotate(90deg);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  border-bottom: none;
}

.contact-info-col {
  padding: 5vh 5vw;
  background: #853711;
  color: #8ae1e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: 0.08em;
  color: #8ae1e8;
  margin-bottom: 1rem;
}

.contact-intro-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #8ae1e8;
  max-width: 460px;
  margin-bottom: 1.8rem;
}

.contact-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-block h4 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8ae1e8;
  margin-bottom: 0.4rem;
}

.contact-block p,
.contact-block a {
  font-size: 1rem;
  color: #8ae1e8;
  line-height: 1.5;
}

.contact-block a:hover {
  color: #E4D6C5;
}

.contact-form-col {
  padding: 5vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-primary);
}

.form-header-title {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #8ae1e8;
  margin-bottom: 1.4rem;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ae1e8;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 2px;
  background: #853711;
  color: #8ae1e8;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--trans-fast), background var(--trans-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #8ae1e8;
  background: #702e0e;
}

.form-group textarea {
  resize: none;
  min-height: 80px;
}

.form-submit-btn {
  padding: 14px 36px;
  background: #8ae1e8;
  color: #984216;
  border: 1px solid #8ae1e8;
  border-radius: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.5rem;
  transition: all var(--trans-fast);
}

.form-submit-btn:hover {
  background: #E4D6C5;
  border-color: #E4D6C5;
  color: #984216;
  transform: translateY(-2px);
}

/* Toast / Feedback notification */
.form-notification {
  display: none;
  padding: 16px 22px;
  border-radius: 4px;
  background: #853711;
  border-left: 4px solid #8ae1e8;
  color: #8ae1e8;
  font-size: 0.92rem;
  margin-top: 1rem;
}

.form-notification.active {
  display: block;
}

/* ==========================================================================
   GLOBAL FOOTER - PRESERVED UNTOUCHED
   ========================================================================== */
.site-footer {
  background: #1B0C05 !important;
  color: #E4D6C5 !important;
  padding: 6vh 6vw 4vh 6vw;
  border-top: 1px solid rgba(247, 243, 238, 0.15) !important;
}

.site-footer .brand-title {
  color: #E4D6C5 !important;
}

.site-footer .brand-subtitle {
  color: #D5C5B5 !important;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4vw;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(247, 243, 238, 0.15) !important;
}

.footer-brand-title {
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: #E4D6C5 !important;
  margin-bottom: 0.5rem;
}

.footer-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #984216 !important;
  margin-bottom: 1.8rem;
  font-weight: 600;
}

.footer-brand-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #D5C5B5 !important;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #984216 !important;
  margin-bottom: 1.2rem;
}

.footer-links-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E4D6C5 !important;
}

.footer-links-nav a:hover {
  color: #984216 !important;
}

.footer-coords p,
.footer-coords a {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #D5C5B5 !important;
}

.footer-coords a:hover {
  color: #E4D6C5 !important;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #D5C5B5 !important;
}

.footer-social-cluster {
  display: flex;
  gap: 1.8rem;
}

.footer-social-cluster a {
  color: #E4D6C5 !important;
}

.footer-social-cluster a:hover {
  color: #984216 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-overlay-body {
    grid-template-columns: 1fr;
    gap: 4vh;
  }

  .nav-overlay-info {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
  }

  .home-hero-meta-row {
    grid-template-columns: 1fr;
  }

  .projects-intro-header {
    grid-template-columns: 1fr;
  }

  .projects-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .modal-body-content {
    grid-template-columns: 1fr;
  }

  .modal-facts-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2rem;
    padding-right: 0;
  }

  .studio-story-section,
  .studio-jobs-section {
    grid-template-columns: 1fr;
  }

  .approach-pillars-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-info-col {
    padding: 5vh 6vw 4vh 6vw;
    min-height: auto;
  }

  .contact-form-col {
    padding: 4vh 6vw 8vh 6vw;
    min-height: auto;
  }

  .contact-headline {
    padding-right: 50px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-quick-links {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}