/* Design Tokens & Variables */
:root {
  --bg-color: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #000000;
  --text-secondary: rgba(0, 0, 0, 0.65);
  --text-muted: rgba(0, 0, 0, 0.45);
  --border-color: rgba(0, 0, 0, 0.08);
  --accent-color: #000000;
  --font-family: Arial, sans-serif;
  --header-height: 80px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --video-overlay: rgba(0, 0, 0, 0.55);
  --bg-drawer: #ffffff;
  --text-drawer: #000000;
  --card-bg-lightpage: #ffffff;
}

/* Global Transition for Theme Switching */
html, body, header, footer, .page-header-wrap, .product-card, .slider-image-container, .project-main-image, .menu-drawer, .featured-section, .contact-section {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Selection */
::selection {
  background: var(--text-primary);
  color: var(--bg-color);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(8, 8, 8, 0.85);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo span {
  font-weight: 300;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1010;
  padding: 0.5rem;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  transition: var(--transition-smooth);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 1200px;
  color: var(--text-primary);
  margin-bottom: 3.5rem;
}

.hero-text strong {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-text {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-text {
    font-size: 1.85rem;
    margin-bottom: 2rem;
  }
}

/* Buttons */
.btn-container {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Featured Products Section */
.featured {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-link:hover {
  color: var(--text-secondary);
}

.section-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Product Card */
.product-card {
  display: block;
  color: #000000; /* Explicitly black */
  padding-bottom: 0;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.product-card:hover {
  color: #000000;
}

.product-image-container {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-card);
  border: none; /* No frame around images */
  margin-bottom: 1.5rem;
  position: relative;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000; /* Explicitly black */
}

.product-year {
  font-size: 0.9rem;
  color: var(--text-secondary); /* Dynamic opacity black */
}

.product-type {
  font-size: 0.85rem;
  color: var(--text-secondary); /* Dynamic opacity black */
  margin-top: 0.25rem;
}

/* Works Page Specifics */
.works-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
}

.page-title-section {
  margin-bottom: 4rem;
}

.page-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Filters */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 100px;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--bg-color);
  background: var(--text-primary);
}

/* Project Detail Page */
.project-detail-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
}

.project-hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 6rem;
}

@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.project-main-image {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: var(--bg-card);
}

.project-meta-box {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.meta-item-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-item-value {
  font-size: 1rem;
  font-weight: 500;
}

.project-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Next Project Banner */
.next-project-banner {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.next-project-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.next-project-title {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: inline-block;
  position: relative;
}

.next-project-title::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--text-primary);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-project-link:hover .next-project-title::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (max-width: 768px) {
  .next-project-title {
    font-size: 2.5rem;
  }
}

/* About Page Specifics */
.about-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-title {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.about-content h2 strong {
  font-weight: 700;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.team-card {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.team-image-container {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 1.5rem;
  border-radius: 0;
}

.team-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-image-container img {
  transform: scale(1.03);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact Page Specifics */
.contact-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.contact-block-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-email {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.contact-email:hover {
  color: var(--text-secondary);
}

.office-address {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.social-links a {
  font-size: 1.1rem;
  font-weight: 500;
}

.social-links a:hover {
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--text-primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  background: var(--bg-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* Legal Page Layout */
.legal-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 8rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Homepage specific styles */
.homepage-body {
  overflow: hidden;
  height: 100vh;
}

.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
  width: 6px;
}
.scroll-container::-webkit-scrollbar-track {
  background: #ffffff;
}
.scroll-container::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.home-logo-btn {
  position: fixed;
  top: 2rem;
  left: 4rem;
  z-index: 2100;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.15em;
  cursor: pointer;
  mix-blend-mode: difference;
  color: #ffffff; /* Must be white for difference blending to render black on white and white on black */
  text-decoration: none;
  transition: opacity 0.3s ease;
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
}

.home-logo-btn:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .home-logo-btn {
    top: 1.25rem;
    left: 2rem;
  }
  .menu-btn {
    top: 1.25rem;
    right: 2rem;
  }
  .header-controls {
    top: 1.25rem;
    right: 5rem;
  }
}

.home-section {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 6rem 10% 4rem 10%;
  display: flex;
  align-items: stretch;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--video-overlay); /* Subtle dark or light translucent overlay to ensure text stands out */
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  width: 100%;
  height: 100%;
  align-items: end;
  position: relative;
  z-index: 3;
}

.hero-left {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.hero-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-description {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  color: #ffffff;
  max-width: 500px;
}

.brand-title {
  font-size: 9.5vw;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: none;
  color: #ffffff;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 2rem;
    align-items: start;
  }
  .hero-left {
    align-items: flex-end;
  }
  .hero-right {
    align-items: flex-start;
  }
  .hero-description {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .brand-title {
    font-size: 15vw;
    margin-bottom: 1rem;
  }
}

/* Featured Section */
.featured-section {
  background: #ffffff;
  color: #000000;
  align-items: center;
  padding: 0 10%;
  display: flex;
}

.featured-section .section-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.featured-header {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.slider-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.slider-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 calc(33.333% - 1.333rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 1024px) {
  .slider-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .slider-item {
    flex: 0 0 80%;
  }
}

.slider-image-container {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: 0;
  margin-bottom: 1rem;
}

.slider-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-item:hover .slider-image-container img {
  transform: scale(1.05);
}

.slider-info {
  display: flex;
  flex-direction: column;
}

.slider-item-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.works-link-container {
  display: flex;
  justify-content: flex-start;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.5rem;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.view-all-btn:hover {
  opacity: 0.7;
}

.arrow-icon {
  width: 16px;
  height: 16px;
}

/* Contact Section */
.contact-section {
  background: #000000;
  color: #ffffff;
  padding: 6rem 10% 4rem 10%;
  display: flex;
}

.contact-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  opacity: 0.6;
}

.contact-large-email {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.contact-large-email:hover {
  opacity: 0.7;
}

.contact-address {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.8;
}

.contact-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-social-list a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-social-list a:hover {
  opacity: 0.7;
}

.contact-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #ffffff;
  opacity: 0.6;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
  opacity: 0.7;
}

/* Persistent Menu Toggle (+ Icon) */
.menu-btn {
  position: fixed;
  top: 2rem;
  right: 4rem;
  width: 24px;
  height: 24px;
  z-index: 2100;
  background: none;
  border: none;
  cursor: pointer;
  mix-blend-mode: difference;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-size: 0; /* Hide visual text while preserving ARIA/reader accessibility */
  color: transparent;
  overflow: hidden;
}

.menu-btn:hover {
  opacity: 0.7;
}

.menu-btn::before,
.menu-btn::after {
  content: '';
  position: absolute;
  background-color: #ffffff; /* Inverted via mix-blend-mode difference */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Horizontal bar of plus icon */
.menu-btn::before {
  width: 18px;
  height: 1.5px;
}

/* Vertical bar of plus icon */
.menu-btn::after {
  width: 1.5px;
  height: 18px;
}

/* Spin to turn into an X when open */
.menu-btn.open {
  transform: rotate(135deg);
}

@media (max-width: 768px) {
  .menu-btn {
    top: 1.25rem;
    right: 2rem;
  }
}

/* Sliding Menu Banner (Drawer) */
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  min-width: 320px;
  height: 100vh;
  background: var(--bg-drawer);
  color: var(--text-drawer);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.menu-drawer.open {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .menu-drawer {
    width: 100vw;
    padding: 2.5rem;
  }
}



.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Staggered cascading animations for link text items inside the menu drawer */
.drawer-links li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-drawer.open .drawer-links li {
  opacity: 1;
  transform: translateY(0);
}

.menu-drawer:not(.open) .drawer-links li {
  transition: none;
}

.menu-drawer.open .drawer-links li:nth-child(1) { transition-delay: 0.1s; }
.menu-drawer.open .drawer-links li:nth-child(2) { transition-delay: 0.2s; }
.menu-drawer.open .drawer-links li:nth-child(3) { transition-delay: 0.3s; }
.menu-drawer.open .drawer-links li:nth-child(4) { transition-delay: 0.4s; }

.drawer-links a {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-drawer);
  text-decoration: none;
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: opacity 0.3s ease;
}

.drawer-links a:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .drawer-links a {
    font-size: 2.5rem;
  }
}

.product-detail-body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-y: auto;
}

/* Make the product detail container wrap all sections naturally */
.product-detail-body .project-detail-page {
  padding-top: 0;
  padding-bottom: 0;
  min-height: auto;
  display: block;
}

/* The hero section (first page) takes exactly 100vh */
.product-detail-body .project-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
  padding-top: 7rem;
  padding-bottom: 4rem;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .product-detail-body .project-hero {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
}

.product-detail-body .project-main-image {
  background-color: var(--bg-card);
  border: none;
  height: 65vh;
  max-height: 65vh;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .product-detail-body .project-main-image {
    height: 45vh;
    max-height: 45vh;
  }
}

.product-detail-body .project-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-body .project-meta-box {
  position: static;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-detail-body .project-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 0.25rem;
}

.product-detail-body .meta-item-label {
  color: var(--text-primary);
  opacity: 0.6;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 300;
}

.product-detail-body .meta-item-value {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 300;
}

.product-detail-body .project-description {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #333333;
  max-width: 480px;
}

.product-detail-body .project-description p {
  margin-bottom: 0;
}

.product-detail-body .project-meta-grid {
  gap: 1rem;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: none;
}

.product-detail-body .btn-container {
  margin-top: 2rem;
  border: none;
  padding-bottom: 0;
}

.product-detail-body .btn {
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 300;
}

.product-detail-body .next-project-banner {
  border: none;
  padding: 6rem 0;
  text-align: center;
  background-color: var(--bg-color);
}

.product-detail-body .next-project-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.product-detail-body .next-project-title {
  color: var(--text-primary);
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: -0.02em;
}

.product-detail-body .next-project-title::after {
  background-color: var(--text-primary);
}

/* Override Footer for Product Detail Page (placed below fold) */
.product-detail-body footer {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

.product-detail-body footer .copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
}

.product-detail-body footer .footer-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 300;
}

.product-detail-body footer .footer-nav a:hover {
  color: var(--text-primary);
}

/* Global Font weight and Typography overrides */
.logo,
.hero-text strong,
.section-title,
.product-name,
.page-title,
.project-header h1,
.next-project-title,
.about-title,
.about-content h2 strong,
.team-name,
.footer-logo,
.brand-title,
.featured-header,
.slider-item-name {
  font-weight: bold !important;
}

body,
p,
span,
a,
li,
button,
input,
textarea,
select,
.nav-links a,
.mobile-nav a,
.btn,
.section-link,
.filter-btn,
.meta-item-value,
.meta-item-label,
.social-links a,
.home-logo-btn,
.view-all-btn,
.menu-btn,
.drawer-links a,
.next-project-label,
.copyright {
  font-weight: 300 !important;
}

/* Scrolling Product Gallery (E-commerce View) */
.product-gallery-container {
  margin-top: 1rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.product-gallery-container::-webkit-scrollbar {
  height: 4px;
}

.product-gallery-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

.product-gallery-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

.gallery-scroll {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

.gallery-item {
  width: 70px;
  height: 70px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.gallery-item:hover,
.gallery-item.active {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Uncropped vertical product image styling with white canvas background & border */
.project-main-image img.vertical-fit {
  object-fit: contain !important;
  background-color: #ffffff !important;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.2s ease;
  opacity: 0.4; /* Slight transparency by default */
  outline: none;
  padding: 0;
}

.gallery-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  background: transparent;
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.9);
}

.gallery-arrow svg {
  width: 32px;
  height: 32px;
  fill: #000000;
}

.prev-arrow {
  left: 1.5rem;
}

.next-arrow {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-arrow {
    opacity: 0.6;
    width: 36px;
    height: 36px;
  }
  .gallery-arrow svg {
    width: 26px;
    height: 26px;
  }
  .prev-arrow {
    left: 0.75rem;
  }
  .next-arrow {
    right: 0.75rem;
  }
}

/* Video Thumbnail Overlay */
.gallery-item {
  position: relative;
}

.video-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease;
}

.gallery-item:hover .video-thumb-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.video-thumb-overlay svg {
  width: 24px;
  height: 24px;
  fill: #ffffff !important;
}

/* Light Background Page Overrides (for Works and Installations lists) */
.light-page {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.light-page ::selection {
  background: #000000 !important;
  color: #ffffff !important;
}

.light-page::-webkit-scrollbar-track,
.light-page .scroll-container::-webkit-scrollbar-track {
  background: #ffffff !important;
}

/* Page Header Wrapper (Black Background at the top) */
.page-header-wrap {
  background-color: #000000;
  color: #ffffff;
  padding-top: 8rem;
  padding-bottom: 3.5rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

.page-header-wrap .page-title {
  color: #ffffff !important;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Override padding-top for works grid section on light page */
.light-page .works-page {
  padding-top: 4rem !important;
  padding-bottom: 8rem;
}

/* Remove image container borders, background-colors, and border-radius */
.light-page .product-image-container {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: 1.5rem;
}

/* Filter buttons inside black header section */
.page-header-wrap .filter-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-header-wrap .filter-btn {
  color: rgba(255, 255, 255, 0.5) !important;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  padding: 0 0 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.page-header-wrap .filter-btn:hover,
.page-header-wrap .filter-btn.active {
  color: #ffffff !important;
}

.page-header-wrap .filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-header-wrap .filter-btn.active::after {
  transform: scaleX(1);
}



/* Header Controls Container (Theme & Language Switchers) */
.header-controls {
  position: fixed;
  top: 2rem;
  right: 8rem;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  mix-blend-mode: difference;
  height: 24px;
}

.lang-switcher {
  display: flex;
  gap: 0.8rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  align-items: center;
  height: 100%;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45); /* Inverted via difference blending */
  cursor: pointer;
  padding: 0 0.15rem;
  font-weight: 300;
  transition: color 0.3s ease;
  outline: none;
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
}

.lang-btn.active {
  color: #ffffff;
  font-weight: 600;
}

/* Unified Mobile Layout & Size Optimizations (max-width: 768px) */
@media (max-width: 768px) {
  /* Page title scaling to prevent wrapping/clipping on narrow viewports */
  .page-title,
  .page-header-wrap .page-title {
    font-size: 2.25rem !important;
  }

  .product-detail-body .project-header h1 {
    font-size: 1.85rem !important;
  }

  .about-content h2 {
    font-size: 1.85rem !important;
  }

  .legal-content h1 {
    font-size: 2rem !important;
  }

  /* Spacing adjustments */
  .page-header-wrap {
    padding-top: 6rem !important;
    padding-bottom: 2rem !important;
  }

  /* Header controls position alignment */
  .header-controls {
    top: 1.25rem;
    right: 4.5rem;
    gap: 1.5rem;
  }

  /* Responsive height blocks to allow clean scrolling instead of hard crop */
  .home-section {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  .hero-section {
    padding: 8rem 1.5rem 4rem 1.5rem !important;
  }

  .featured-section {
    padding: 6rem 1.5rem 4rem 1.5rem !important;
  }

  .contact-section {
    padding: 6rem 1.5rem 4rem 1.5rem !important;
  }
  
  .contact-container {
    height: auto !important;
  }
}

/* Custom Cursor styling for desktop mode (fine pointers) */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, img, video, .gallery-item, .product-card, .slider-item, .team-card, .home-logo-btn, .menu-btn, .video-thumb-overlay {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.25s ease, 
                border 0.25s ease,
                opacity 0.2s ease;
    opacity: 1;
    box-sizing: border-box;
    /* Blend mode difference makes it inverted black/white */
    mix-blend-mode: difference;
    background-color: #ffffff; /* Renders black on white segments, white on black segments */
    will-change: transform;
  }

  .custom-cursor.hovering {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    mix-blend-mode: normal !important; /* normal blending for transparent white look */
  }
}
