﻿/* CSS Variables for Premium Off-White Theme */
:root {
  --primary-color: #c02f2f; /* Deep Red from Logo */
  --accent-color: #D6B588; /* Soft Earthy Tan */
  --bg-color: #F1E9D2; /* Cream / Parchment */
  --surface-color: #ffffff; /* Pure White for cards */
  --text-primary: #1c1b1a; /* Very dark charcoal */
  --text-secondary: #5A5552; /* Charcoal / Dark Gray */
  --border-color: #D6B588; /* Soft Earthy Tan border */
  --badge-bg: #5A5552; /* UI Badge Charcoal */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color); /* Fallback */
  
  /* The warm handmade parchment texture with faint architectural art */
  background-image: url('./bg-texture-v5.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Creates a smooth parallax effect on scroll */
  
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
}

/* Play Overlay (Intro Screen) */
.play-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.play-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.play-overlay-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) sepia(0.2);
  transform: scale(1.05);
  transition: transform 1.5s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.play-overlay.hidden .play-overlay-bg img {
  transform: scale(1.15); /* Adds a slight push-in effect before fading out */
}

.play-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 60px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  animation: slideUp 1s ease;
}

.play-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.years-highlight {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 45px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.modal-thumbnails img:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Detailed Project Columns Grid (from sketch) */
.project-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.project-column {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.project-col-img-wrap {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
}

.project-col-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-column:hover .project-col-img {
  transform: scale(1.08);
}

.project-col-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.project-col-content {
  padding: 40px 30px;
  flex-grow: 1;
}

.project-col-content h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.detailed-project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detailed-project-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  transition: transform 0.3s ease;
}

.detailed-project-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detailed-project-list li:hover {
  transform: translateX(10px);
}

.list-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-right: 15px;
  line-height: 1;
  opacity: 0.8;
}

.list-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2px;
}

.play-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(192, 47, 47, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image-container .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transform: scale(1.15); /* Start zoomed in */
  transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
  animation: kenburns 16s ease-in-out infinite alternate;
}

/* When play is clicked, remove the scale to 'zoom out' */
.hero-image-container.zoomed-out .hero-img {
  transform: scale(1);
}

.hero-text-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.5s ease 0.8s;
}

.hero-section.active .hero-text-overlay {
  opacity: 1;
  transform: translateY(0);
}

.hero-text-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 50px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.hero-text-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-text-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 2px;
}

.btn-primary:hover {
  background-color: #a02525;
}

/* Section Spacing */
section {
  padding: 120px 0;
}

/* Cards UI */
.card {
  background-color: var(--surface-color);
  padding: 45px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Brand Red Highlight Text */
.gold-gradient-text {
  color: var(--primary-color);
  background: none;
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  display: inline-block;
}

/* About Section Creative - Ultra Premium */
.about-creative-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 4px;
}

.about-main-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  filter: brightness(0.9) contrast(1.1);
}

.about-floating-box {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--surface-color);
  padding: 30px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  min-width: 160px;
}

.about-floating-box h4 {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 5px;
}

.about-floating-box p {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-size: 1rem;
}

.creative-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 25px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.stats-row {
  display: flex;
  gap: 50px;
  margin-top: 35px;
  padding-top: 35px;
  border-top: 1px solid var(--border-color);
}

.mini-stat h4 {
  font-size: 2.8rem;
  margin-bottom: 5px;
  line-height: 1;
}

.mini-stat p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

/* Inner Page Hero */
.page-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px; /* offset for navbar */
}

.page-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  animation: slideUp 1s ease;
}

.page-hero-content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.page-hero-content p {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 2px;
}

/* CSR Original Look with 3D Animations */
.csr-original-section {
  background: linear-gradient(135deg, rgba(250, 249, 246, 1) 0%, rgba(235, 230, 225, 0.8) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern overlay */
.csr-original-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

.csr-original-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.csr-original-card {
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.csr-original-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(-2deg);
  box-shadow: -5px 25px 40px rgba(0,0,0,0.08), 0 0 15px rgba(192, 47, 47, 0.1);
  border-color: rgba(192, 47, 47, 0.2);
}

.csr-emoji {
  font-size: 3.5rem;
  margin-bottom: 25px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.csr-original-card:hover .csr-emoji {
  transform: scale(1.2) translateY(-10px) rotate(10deg);
}

.csr-original-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.csr-original-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.csr-wide {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .csr-original-grid {
    grid-template-columns: 1fr;
  }
}

/* Services Section Creative */
.section-header-creative {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
  font-family: var(--font-heading);
}

/* Expertise Interactive Hover Gallery */
.expertise-interactive-layout {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
  padding-bottom: 60px;
}

/* Left side: Text Accordion */
.expertise-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.exp-list-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.exp-list-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.exp-list-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #ccc; /* light gray when inactive */
  transition: color 0.4s ease;
  font-weight: 300;
}

.exp-list-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exp-list-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  padding-left: 55px; /* Aligns with text */
}

.exp-list-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Hover & Active States for Left List */
.exp-list-item.active .exp-list-num,
.exp-list-item:hover .exp-list-num {
  color: var(--primary-color);
}

.exp-list-item.active .exp-list-title {
  color: var(--text-primary);
  transform: translateX(15px);
}
.exp-list-item:hover .exp-list-title {
  color: var(--text-primary);
  transform: translateX(10px);
}

.exp-list-item.active .exp-list-content {
  max-height: 200px; /* Enough to show paragraph */
  opacity: 1;
  margin-top: 15px;
}

/* Right side: Image Viewer */
.expertise-viewer {
  flex: 1.3; /* Slightly wider than the text */
  height: 650px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  background-color: #eee;
}

.exp-viewer-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 2s ease-out; /* Slow zoom when revealed */
  z-index: 1;
}

.exp-viewer-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Mobile Fallback */
@media (max-width: 900px) {
  .expertise-interactive-layout {
    flex-direction: column-reverse;
  }
  .expertise-viewer {
    width: 100%;
    height: 400px;
    flex: none;
  }
  .exp-list-title {
    font-size: 1.8rem;
  }
}

/* Projects Section */
.project-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.category-card {
  position: relative;
  height: 450px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.category-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(26,26,26,0.95), rgba(26,26,26,0.5), transparent);
  color: #fff;
  transition: var(--transition);
}

.category-info h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 5px;
  transform: translateY(15px);
  transition: var(--transition);
}

.category-info p {
  color: var(--accent-color);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.category-card:hover .category-info h3 {
  transform: translateY(0);
}

.category-card:hover .category-info p {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal-content {
  background-color: var(--bg-color);
  margin: 4% auto;
  padding: 0;
  width: 95%;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideUpModal 0.4s ease;
}

.modal-header {
  padding: 30px 40px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  padding: 5px;
}

.close-btn:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

#modal-title {
  margin-bottom: 5px;
  font-size: 2.2rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modal-gallery {
  padding: 40px;
  background: var(--bg-color);
}

.modal-main-img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thumb-wrapper {
  height: 180px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.thumb-wrapper:hover img {
  transform: scale(1.1);
}

/* Recognition Section */
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.awards-list {
  list-style: none;
}

.awards-list li {
  margin-bottom: 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.awards-list li strong {
  color: var(--primary-color);
  font-size: 1.1rem;
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding: 30px 0 0;
}

blockquote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--border-color);
  position: absolute;
  top: -20px;
  left: -10px;
  z-index: 0;
}

blockquote footer {
  margin-top: 25px;
  font-style: normal;
}

blockquote footer strong {
  color: var(--text-primary);
  display: block;
}

blockquote footer span {
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Footer Section */
.footer-section {
  padding: 80px 0 30px;
  background-color: var(--text-primary);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-wrap h2 {
  color: #fff;
  margin: 0;
}

.brand-desc {
  color: #aaa;
  max-width: 300px;
}

.footer-contact h3 {
  color: var(--accent-color);
  margin-bottom: 25px;
}

.footer-contact p {
  color: #ddd;
  margin-bottom: 12px;
}

.footer-contact strong {
  color: #fff;
}

.qr-placeholder {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.qr-placeholder span {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(50px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1.5%, -1.5%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.25; transform: scale(1); filter: blur(40px); }
  50% { opacity: 0.6; transform: scale(1.2); filter: blur(60px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-ken-burns {
  animation: kenburns 16s ease-in-out infinite alternate;
}

.animate-pulse-glow {
  animation: pulseGlow 5s ease-in-out infinite;
}

.shimmer-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.shimmer-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 20px rgba(212,175,55,0.3) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .services-grid, .recognition-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .play-content h1 {
    font-size: 2.2rem;
  }
  .hero-text-content h2 {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 101;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 6px 0;
  }
  .play-content {
    padding: 30px 20px;
  }
}

/* --- CINEMATIC HOME PAGE STYLES --- */
body.home-page-body {
  background: var(--bg-color);
}

.landing-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  z-index: 100;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.landing-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.landing-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 1s ease-out forwards;
}

.hero-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  margin-top: 15px;
  font-weight: 500;
  letter-spacing: 2px;
}

.hero-disciplines {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.dot {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.years-highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.cinematic-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 40px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.cinematic-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--primary-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.cinematic-btn:hover {
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(192, 47, 47, 0.4);
}

.cinematic-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Slideshow */
.slideshow-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 10;
  background: #000;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slideshow-container.fade-in {
  opacity: 1;
}

.slideshow-container.hidden {
  display: none;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  /* Alternating zoom directions for different slides */
  transform: scale(1);
}

.slide:nth-child(odd) .slide-bg {
  animation: slideZoomIn 14s ease-in-out infinite alternate;
}
.slide:nth-child(even) .slide-bg {
  animation: slideZoomOutAnim 14s ease-in-out infinite alternate;
}

.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.slide-text {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.slide.active {
  opacity: 1;
}

.slide.active .slide-text {
  opacity: 1;
  transform: translateY(0);
}

.slide-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  letter-spacing: clamp(2px, 0.8vw, 5px);
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: clamp(10px, 2vw, 20px);
  word-wrap: break-word;
}

.slide-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5.5vw, 4.5rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: clamp(0.5px, 0.8vw, 3px);
  text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 2px 5px rgba(0,0,0,0.8);
  max-width: 900px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@keyframes slideZoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}
@keyframes slideZoomOutAnim {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Add padding to page container for other pages to account for fixed navbar */
.page-container {
  padding-top: 80px;
}

/* --- Magazine Editorial Layout for Services Page --- */

.editorial-hero {
  padding: 180px 20px 100px;
  text-align: center;
}

.editorial-eyebrow {
  display: block;
  font-family: var(--font-body);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.editorial-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 400;
}

.editorial-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.editorial-showcase {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 60px;
}

.editorial-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.editorial-row.reverse {
  flex-direction: row-reverse;
}

.editorial-img-col {
  flex: 0 0 55%;
  position: relative;
  z-index: 1;
}

.editorial-img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.editorial-text-col {
  flex: 0 0 45%;
  background: var(--surface-color); /* White card */
  padding: 80px 60px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  border-left: 4px solid var(--primary-color);
}

.offset-right {
  margin-left: -10%;
}

.offset-left {
  margin-right: -10%;
  border-left: none;
  border-right: 4px solid var(--primary-color);
}

.editorial-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 300;
}

.editorial-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  font-weight: 400;
}

.editorial-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.editorial-philosophy {
  margin-top: 150px;
  padding-top: 100px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.philosophy-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--text-primary);
  margin-bottom: 80px;
  font-weight: 400;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  text-align: left;
}

.philosophy-quote {
  background: var(--surface-color);
  padding: 60px 50px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-top: 4px solid var(--primary-color);
  position: relative;
  z-index: 2;
}

.philosophy-quote h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.philosophy-quote p {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.philosophy-quote p::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--accent-color);
  position: absolute;
  top: -60px;
  left: -30px;
  opacity: 0.15;
  z-index: -1;
}

/* Responsive adjustments for editorial */
@media (max-width: 1024px) {
  .editorial-row, .editorial-row.reverse {
    flex-direction: column;
    gap: 40px;
  }
  .editorial-text-col {
    margin: -80px 20px 0 20px;
    padding: 50px 30px;
  }
  .offset-right, .offset-left {
    margin-left: 20px; margin-right: 20px;
  }
  .editorial-title { font-size: 4rem; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
  .editorial-img { height: 400px; }
  .editorial-title { font-size: 3rem; }
  .editorial-heading { font-size: 2.2rem; }
}

/* --- Recognition & Awards Page Styling --- */

.recognition-grid {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.award-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-bottom: 1px solid rgba(90, 85, 82, 0.2); /* Faint charcoal border */
  background: transparent;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.award-card:hover {
  transform: translateX(10px);
}

.award-year {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-color);
  font-weight: 300;
  line-height: 1;
  flex: 0 0 20%;
}

.award-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 40px;
}

.award-details h4 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.award-details p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .award-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .award-details {
    padding-left: 0;
  }
}

/* --- Connect Page Styling --- */

.contact-split {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  align-items: flex-start;
}

.contact-left {
  flex: 0 0 50%;
}

.contact-right {
  flex: 0 0 40%;
  padding-top: 20px;
}

.contact-info-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(90, 85, 82, 0.2);
}

.contact-info-block h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 400;
}

.contact-info-block p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
}

.gold-gradient-btn {
  background: linear-gradient(135deg, #D6B588, #b8976b);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.gold-gradient-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .contact-split {
    flex-direction: column;
  }
  .contact-left, .contact-right {
    flex: 0 0 100%;
  }
}

/* --- Interactive Project Imagery --- */

.day-night-container {
  position: relative;
  overflow: hidden;
}

.night-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.project-column:hover .night-img {
  opacity: 1;
}

/* --- Architecture Category Cards --- */
.category-cards-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.architecture-card {
  position: relative;
  width: 380px;
  height: 280px;
  border-radius: 4px; /* Sharper corners for architecture */
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.architecture-card:hover {
  transform: translateY(-8px);
}

.architecture-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: contrast(1.05);
}

.architecture-card:hover .architecture-card-img {
  transform: scale(1.08);
}

.architecture-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
  transition: opacity 0.4s ease;
}

.architecture-card:hover .architecture-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.architecture-card-title {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 2px;
  margin: 0;
  text-align: left;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.architecture-card:hover .architecture-card-title {
  transform: translateY(0);
  opacity: 1;
  color: var(--accent-color);
}

/* --- Interior Category Cards --- */
.interior-card {
  position: relative;
  width: 360px;
  height: 240px;
  border-radius: 16px; /* Softer corners */
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 6px solid #F8F5EE; /* Gallery frame look */
  transition: all 0.4s ease;
}

.interior-card:hover {
  box-shadow: 0 15px 35px rgba(214, 181, 136, 0.3);
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.interior-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: sepia(0.1) contrast(0.95); /* Softer, warmer look */
}

.interior-card:hover .interior-card-img {
  transform: scale(1.1) rotate(1deg);
}

.interior-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40, 30, 20, 0.4);
  transition: background 0.4s ease;
}

.interior-card:hover .interior-card-overlay {
  background: rgba(40, 30, 20, 0.1);
}

.interior-card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  letter-spacing: 3px;
  margin: 0;
  text-align: center;
  width: 100%;
  transition: transform 0.4s ease, letter-spacing 0.4s ease;
}

.interior-card:hover .interior-card-title {
  transform: translate(-50%, -55%);
  letter-spacing: 5px;
}

@media (max-width: 1200px) {
  .architecture-card, .interior-card { width: 300px; height: 220px; }
}
@media (max-width: 768px) {
  .architecture-card, .interior-card { width: 100%; max-width: 400px; height: 250px; }
}

/* --- Premium Projects Hero --- */
.premium-hero {
  position: relative;
  height: 75vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px; /* Offset for navbar */
}
.premium-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  filter: brightness(0.5) contrast(1.1); /* Darken for text readability */
  transform: scale(1.02);
}
.premium-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  animation: slideUpFade 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.premium-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--accent-color);
  margin-bottom: 25px;
  display: block;
}
.premium-hero-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 4px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.premium-hero-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .premium-hero-title { font-size: 3.5rem; }
  .premium-hero-desc { font-size: 1.1rem; }
}

/* --- Shared Sticky Layout (Used for both Architecture & Interior) --- */
.sticky-layout-section {
  padding: 150px 0;
  position: relative;
}

.sticky-layout-section.theme-dark {
  background-color: #1a1a1a;
  color: #f5f5f5;
}
.sticky-layout-section.theme-dark .section-header p {
  color: #a0a0a0;
}

.sticky-layout-section.theme-light {
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.sticky-layout-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.sticky-text-panel {
  flex: 0 0 35%;
  position: sticky;
  top: 150px;
}

.sticky-text-panel h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
.theme-dark .sticky-text-panel h2 { color: #fff; }
.theme-light .sticky-text-panel h2 { color: var(--text-primary); }

.sticky-text-panel p {
  font-size: 1.1rem;
  line-height: 1.8;
}
.theme-dark .sticky-text-panel p { color: #999; }
.theme-light .sticky-text-panel p { color: var(--text-secondary); }

.staggered-scroll-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.staggered-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
}
.theme-dark .staggered-item {
  border: 1px solid rgba(255,255,255,0.05);
}
.theme-light .staggered-item {
  border: 1px solid rgba(0,0,0,0.05);
}

.staggered-item:hover {
  transform: translateY(-10px);
}
.theme-dark .staggered-item:hover {
  border-color: rgba(214, 181, 136, 0.4);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 30px rgba(214, 181, 136, 0.1);
}
.theme-light .staggered-item:hover {
  border-color: rgba(214, 181, 136, 0.4);
  box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 30px rgba(214, 181, 136, 0.2);
}

.staggered-item.right-align {
  width: 80%;
  align-self: flex-end;
  height: 450px;
}

.staggered-item.left-align {
  width: 70%;
  align-self: flex-start;
  height: 550px;
}

.staggered-item.center-align {
  width: 100%;
  height: 600px;
}

.staggered-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.theme-dark .staggered-item img { filter: brightness(0.8) contrast(1.1); }
.theme-light .staggered-item img { filter: contrast(1.05); }

.staggered-item:hover img {
  transform: scale(1.08) rotate(-1deg);
}
.theme-dark .staggered-item:hover img { filter: brightness(1) contrast(1.1); }
.theme-light .staggered-item:hover img { filter: brightness(1) contrast(1.05); }

.staggered-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.staggered-item h3 {
  position: absolute;
  bottom: clamp(20px, 4vw, 30px);
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 2.5rem);
  letter-spacing: clamp(1.5px, 0.5vw, 4px);
  margin: 0;
  z-index: 2;
  transition: all 0.5s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.staggered-item:hover h3 {
  letter-spacing: clamp(2px, 0.8vw, 6px);
  color: var(--accent-color);
}

@media (max-width: 1024px) {
  .sticky-layout-wrapper { flex-direction: column; }
  .sticky-text-panel { position: static; margin-bottom: 40px; }
  .staggered-item.right-align, .staggered-item.left-align, .staggered-item.center-align { width: 100%; }
}
/* --- Sub-Page Gallery (Commercial / Residential / Hospitality Projects) --- */

.sub-gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.back-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}
.back-link:hover { opacity: 0.7; }

.pill-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pill-btn {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 12px 25px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.pill-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.masonry-grid {
  column-count: 2;
  column-gap: 30px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 30px;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .masonry-grid { column-count: 1; }
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom: 1px solid var(--primary-color);
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Project Auto-Playing Slider */
.project-slider-frame {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto 60px;
  aspect-ratio: 16 / 9;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.slider-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: none;
}

.slider-slide.active-filter {
  display: block;
}

.slider-slide.active-slide {
  opacity: 1;
  z-index: 2;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Client Marquee */
.client-marquee-section {
  padding: 60px 0;
  background-color: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.client-marquee-title {
  text-align: center;
  font-family: var(--font-body);
  color: var(--primary-color);
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.client-marquee-container {
  display: flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
}

.client-marquee-container:hover {
  animation-play-state: paused;
}

.client-logo-wrapper {
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-wrapper img {
  height: 80px;
  width: 150px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.client-logo-wrapper img:hover {
  transform: scale(1.1) translateY(-5px);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(255,255,255,0.15);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Floating Brand Seal */
@keyframes sealRotateHalf {
  0% { transform: rotate(-90deg); }
  50% { transform: rotate(90deg); }
  100% { transform: rotate(-90deg); }
}

.brand-seal {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 160px;
  height: 160px;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: sealRotateHalf 10s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* ==========================================================================
   MASTER RESPONSIVE STYLES (Tablets & Mobile Screens)
   ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  
  .sticky-layout-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .sticky-text-panel {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .staggered-item.right-align,
  .staggered-item.left-align,
  .staggered-item.center-align {
    width: 100%;
    align-self: auto;
  }
  
  .staggered-item.first-offset {
    margin-top: 0 !important;
  }
  
  .editorial-row,
  .editorial-row.reverse {
    flex-direction: column;
    gap: 0;
  }
  
  .editorial-img-col {
    width: 100%;
    flex: 1 1 100%;
  }
  
  .editorial-img {
    min-height: 380px;
    height: 380px;
  }
  
  .editorial-text-col {
    width: 100%;
    flex: 1 1 100%;
    margin: -40px 15px 0 15px;
    padding: 45px 30px;
    border-left: 4px solid var(--primary-color);
    border-right: none;
  }
  
  .offset-right, .offset-left {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  /* Global viewport & overflow protection */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 18px;
    width: 100%;
    max-width: 100%;
  }

  /* Page Container Padding */
  .page-container {
    padding-top: 70px;
  }

  /* Typography */
  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .creative-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Landing Screen Overlay */
  .landing-content {
    padding: 35px 18px;
    max-width: 92%;
  }

  .hero-main-logo {
    max-width: 280px;
    width: 85%;
    height: auto;
  }

  .years-highlight {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .cinematic-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
  }

  /* Hero Slideshow Typography */
  .slide-text {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .slide-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .slide-tagline {
    font-size: 1.85rem;
    letter-spacing: 0.5px;
    line-height: 1.22;
    padding: 0 4px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Featured Projects Cards on Home */
  .project-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-card {
    height: 300px;
    border-radius: 10px;
  }

  .category-img {
    object-fit: cover;
    object-position: center;
  }

  .category-info {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 0;
  }

  .category-info h3 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 4px;
    word-wrap: break-word;
  }

  .category-info p {
    font-size: 0.85rem;
  }

  /* Interactive Expertise Section */
  .expertise-interactive-layout {
    flex-direction: column;
    gap: 20px;
  }

  .expertise-interactive-list {
    width: 100%;
    flex: 1 1 100%;
  }

  .expertise-viewer {
    width: 100%;
    flex: 1 1 100%;
    height: 250px;
    border-radius: 10px;
  }

  .exp-list-title {
    font-size: 1.35rem;
    word-wrap: break-word;
  }

  .exp-list-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Projects Page Hero */
  .premium-hero {
    height: auto;
    min-height: 380px;
    padding: 110px 16px 50px;
  }

  .premium-hero-title {
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin-bottom: 15px;
    word-wrap: break-word;
  }

  .premium-hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0 4px;
  }

  /* Projects Page Sticky Sections & Staggered Cards */
  .sticky-layout-section {
    padding: 50px 0;
  }

  .sticky-layout-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .sticky-text-panel {
    position: static;
    width: 100%;
    margin-bottom: 8px;
  }

  .sticky-text-panel h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .sticky-text-panel p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .staggered-scroll-content {
    gap: 25px;
    width: 100%;
  }

  .staggered-item {
    width: 100% !important;
    height: 280px !important;
    margin-top: 0 !important;
    border-radius: 10px;
  }

  .staggered-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .staggered-item h3 {
    font-size: 1.25rem;
    letter-spacing: 1.2px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    line-height: 1.25;
    max-width: calc(100% - 32px);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .staggered-item:hover h3 {
    letter-spacing: 1.5px;
  }

  /* Sub-Galleries (Bungalow, Pizzeria, Penthouse, etc.) */
  .sub-gallery-header {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .sub-gallery-header .creative-title {
    font-size: 1.95rem;
    line-height: 1.22;
    margin-bottom: 8px;
    word-wrap: break-word;
  }

  .sub-gallery-header .editorial-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0 5px;
  }

  .back-link {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .pill-filters {
    gap: 8px;
    margin-bottom: 25px;
    padding: 0 4px;
  }

  .pill-btn {
    padding: 8px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    border-radius: 20px;
    line-height: 1.25;
  }

  /* Mobile Slider Presentation: Clean, prominent and uncropped */
  .project-slider-frame {
    width: 100%;
    height: 55vh;
    min-height: 320px;
    max-height: 520px;
    aspect-ratio: auto;
    border-radius: 8px;
    margin: 0 auto 30px;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  /* Services Page */
  .editorial-hero {
    padding: 110px 14px 35px;
  }

  .editorial-title {
    font-size: 2.3rem;
    line-height: 1.2;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .editorial-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .editorial-showcase {
    gap: 40px;
    margin-top: 25px;
  }

  .editorial-img {
    min-height: 260px;
    height: 260px;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
  }

  .editorial-text-col {
    margin: -25px 8px 0 8px;
    padding: 30px 18px;
    width: calc(100% - 16px);
    border-radius: 8px;
  }

  .editorial-num {
    font-size: 2.6rem;
    margin-bottom: 8px;
  }

  .editorial-heading {
    font-size: 1.65rem;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .editorial-body {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .editorial-philosophy {
    margin-top: 50px;
    padding-top: 40px;
  }

  .philosophy-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .philosophy-quote {
    padding: 30px 18px;
    border-radius: 8px;
  }

  .philosophy-quote h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }

  .philosophy-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  /* About Page */
  .about-creative-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .about-hero-desc {
    font-size: 0.95rem;
  }

  .about-main-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
  }

  .about-floating-box {
    position: static;
    transform: none;
    margin: 15px 0 0;
    width: auto;
    display: inline-block;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 15px;
  }

  .mini-stat {
    flex: 1 1 40%;
  }

  .mini-stat h4 {
    font-size: 1.7rem;
  }

  .csr-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Recognition Page */
  .award-spotlight {
    gap: 20px;
    margin-bottom: 35px;
  }

  .award-text h3 {
    font-size: 1.15rem;
  }

  .award-text .editorial-subtitle {
    font-size: 0.92rem;
  }

  .award-image-frame {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .award-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    border-radius: 8px;
  }

  .award-details {
    padding-left: 0;
  }

  .award-card h3 {
    font-size: 1.25rem;
    word-wrap: break-word;
  }

  .masonry-grid {
    column-count: 1;
  }

  /* Connect Page */
  .connect-luxury-layout {
    padding: 90px 14px 35px;
    min-height: auto;
  }

  .glass-form-panel {
    padding: 25px 16px;
    margin-bottom: 25px;
    border-radius: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .connect-header .editorial-title {
    font-size: 2rem;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .connect-header .editorial-subtitle {
    font-size: 0.9rem;
  }

  .connect-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Floating Brand Seal on Mobile */
  .brand-seal {
    width: 75px;
    height: 75px;
    bottom: 12px;
    right: 12px;
    opacity: 0.6;
  }

  /* Client Marquee */
  .client-marquee-section {
    padding: 35px 0;
  }

  .client-marquee-title {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .client-logo-wrapper {
    padding: 0 16px;
  }

  .client-logo-wrapper img {
    height: 55px;
    width: 105px;
    padding: 8px;
  }
}

/* Extra Small Phones (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .creative-title {
    font-size: 1.75rem;
  }

  .slide-tagline {
    font-size: 1.55rem;
    letter-spacing: 0.3px;
    line-height: 1.25;
  }

  .slide-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }

  .category-card {
    height: 270px;
  }

  .staggered-item {
    height: 250px !important;
  }

  .staggered-item h3 {
    font-size: 1.1rem;
    letter-spacing: 0.8px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .sub-gallery-header .creative-title {
    font-size: 1.7rem;
  }

  .pill-btn {
    padding: 7px 11px;
    font-size: 0.66rem;
  }

  .project-slider-frame {
    height: 48vh;
    min-height: 250px;
    max-height: 400px;
  }

  .brand-seal {
    width: 55px;
    height: 55px;
    bottom: 10px;
    right: 10px;
    opacity: 0.45;
  }
}
