@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --accent-gold: #CAA05C;
  --accent-gold-rgb: 202, 160, 92;
  --navy-dark: #0A0A0B;
  --navy-mid: #161617;
  --pure-black: #000000;
  --body-text: #888888;
  --off-white: #E8E8E8;
  --white: #FFFFFF;
  --gray-dark: #111111;

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-ui: 'Inter', sans-serif;

  --section-pad: 120px 60px;
  --max-width: 1400px;
  --header-h: 90px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 100px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --accent-glow: 0 0 20px rgba(202, 160, 92, 0.3);
}

#main-wrapper {
  position: relative;
  width: 100%;
  background: var(--navy-dark);
}

body {
  background-color: var(--navy-dark) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial;
  overflow-x: hidden;
}

body {
  background-color: var(--pure-black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Typography */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.reveal-text {
  overflow: hidden;
  display: block;
}

.reveal-text span {
  display: block;
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--body-text);
  line-height: 1.75;
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.6;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0 60px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
  padding: 5px 0;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--accent);
  color: var(--pure-black);
}

.btn-gold:hover {
  background: var(--white);
  color: var(--pure-black);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--navy-dark);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-dark:hover {
  background: var(--accent);
  color: var(--pure-black);
  border-color: var(--accent);
}

.btn-magnetic {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn-magnetic:hover {
  box-shadow: 0 20px 60px rgba(var(--accent-rgb), 0.3);
}

/* Section Patterns */
.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(202, 160, 92, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-follower.expand {
  width: 80px;
  height: 80px;
  background: rgba(202, 160, 92, 0.1);
  border-color: transparent;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
  margin-top: 50px;
}

.bento-item {
  background: var(--gray-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}

.bento-item:hover {
  transform: translateY(-5px);
}

.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transition: opacity 0.4s;
}

.bento-item:hover img {
  opacity: 0.25;
}

.bento-1 { grid-column: span 8; grid-row: span 2; min-height: 500px; }
.bento-2 { grid-column: span 4; grid-row: span 1; }
.bento-3 { grid-column: span 4; grid-row: span 2; min-height: 400px; margin-top: -20px; }
.bento-4 { grid-column: span 8; grid-row: span 1; margin-top: 20px; }

/* Legibility Overlays */
.img-overlay-dark {
  position: relative;
}

.img-overlay-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

.img-overlay-dark * {
  position: relative;
  z-index: 2;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(202,160,92,0.5));
  z-index: 10001;
  transform: scaleX(0);
  transform-origin: left;
}

/* Single Image Slider */
.main-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--pure-black);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 5;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.slider-content {
  position: relative;
  z-index: 10;
  text-align: left;
  padding: 0 80px;
  max-width: 1000px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.slider-content .eyebrow {
  margin-bottom: 20px;
}

.slider-nav {
  position: absolute;
  bottom: 60px;
  left: 80px;
  display: flex;
  gap: 20px;
  z-index: 20;
}

.slider-dot {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.slider-dot.active {
  background: var(--accent);
  width: 100px;
}

/* Service List */
.service-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.4s ease;
}

.service-list-item:hover {
  border-bottom-color: var(--accent);
  padding-left: 15px;
}

.service-list-item:hover .service-name {
  color: var(--accent);
}

.service-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-number {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-right: 30px;
}

.service-arrow {
  color: var(--accent);
  font-size: 20px;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s var(--ease-out);
}

.service-list-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Stats Counter */
.stat-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  display: block;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--body-text);
  margin-top: 10px;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.project-card-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Footer */
footer {
  background: var(--gray-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer .section-inner > div:first-child {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(202,160,92,0.3));
  z-index: 10001;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --section-pad: 100px 40px; }
  .header { padding: 0 40px; }
}

@media (max-width: 1024px) {
  :root { --section-pad: 80px 24px; --header-h: 80px; }
  .header { padding: 0 24px; }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: left 0.5s var(--ease-in-out);
    z-index: 1000;
  }
  .nav-links.active { left: 0; }
  .mobile-toggle { display: flex; }
  .header .btn { display: none; }
  .slider-content { padding: 0 40px; }
  .slider-nav { left: 40px; bottom: 40px; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 1; min-height: 280px; }
  footer .section-inner > div:first-child { grid-template-columns: 1fr 1fr; gap: 40px; }
  .display-xl { font-size: 40px; }
  .display-lg { font-size: 32px; }
  .stat-number { font-size: 52px; }
  .service-name { font-size: 22px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 20px; }
  .header { padding: 0 20px; }
  .slider-content { padding: 0 24px; }
  .slider-content h1 { font-size: clamp(32px, 8vw, 48px); }
  .slider-nav { left: 24px; bottom: 30px; }
  .main-slider { height: 90vh; }
  footer .section-inner > div:first-child { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .display-xl { font-size: 32px; }
  .display-lg { font-size: 26px; }
  .display-md { font-size: 20px; }
  .body-lg { font-size: 15px; }
  
  /* Fix squeezed images and wide boxes */
  .section-inner {
    padding: 0;
    width: 100%;
    overflow: hidden;
  }
  
  .bento-grid {
    gap: 15px;
    margin-top: 30px;
  }
  
  .bento-item {
    margin-top: 0 !important;
    min-height: 300px !important;
  }

  /* Fix flex rows on mobile */
  [style*="display: flex"] {
    flex-direction: column !important;
    gap: 30px !important;
  }
  
  .intro-grid {
    display: flex;
    flex-direction: column;
  }
  
  .img-sub {
    width: 60% !important;
    right: -10px !important;
  }
}

/* Page Hero (shared across inner pages) */
.page-hero {
  height: 60vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--pure-black);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy-dark) 0%, transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 60px 80px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

/* =============================================
   IMAGE REVEAL ANIMATION
   ============================================= */
.img-reveal-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-reveal-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy-dark);
  z-index: 10;
  transform-origin: bottom;
}

/* =============================================
   INTRO SECTION
   ============================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.intro-images {
  position: relative;
  padding-bottom: 60px;
}

.img-main {
  width: 85%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  height: 520px;
}

.img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  height: 280px;
  object-fit: cover;
  border: 10px solid var(--navy-dark);
  border-radius: var(--radius-lg);
  z-index: 2;
}

.experience-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--accent-gold);
  color: var(--pure-black);
  padding: 25px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  z-index: 3;
  font-family: var(--font-ui);
}

.exp-num {
  display: block;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-display);
}

.exp-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-top: 5px;
}

/* =============================================
   SERVICE ROWS (services.html)
   ============================================= */
.service-row {
  display: flex;
  align-items: center;
  min-height: 70vh;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.sr-content {
  flex: 1;
  padding: 80px 60px;
  position: relative;
}

.sr-image {
  flex: 1;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.sr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
  display: block;
}

.service-row:hover .sr-image img {
  transform: scale(1.06);
}

.service-num {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 15px;
}

.sub-services {
  list-style: none;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sub-services li {
  font-size: 13px;
  color: var(--body-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-services li::before {
  content: '◆';
  color: var(--accent-gold);
  font-size: 7px;
  flex-shrink: 0;
}

.link-arrow {
  display: inline-block;
  margin-top: 30px;
  font-size: 13px;
  color: var(--accent-gold);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(202,160,92,0.3);
  padding-bottom: 3px;
}

.link-arrow:hover {
  color: var(--white);
  border-bottom-color: var(--white);
  padding-left: 5px;
}

/* =============================================
   GRID 2 COL (services overview)
   ============================================= */
.grid-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255,255,255,0.06);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
}

.step-num {
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  margin-bottom: 20px;
  background: var(--navy-dark);
}

/* =============================================
   PHILOSOPHY / TEAM / ABOUT CARDS
   ============================================= */
.narrative {
  max-width: 860px;
  margin: 0 auto;
}

.pullquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--accent-gold);
  border-left: 3px solid var(--accent-gold);
  padding: 20px 30px;
  margin: 40px 0;
  background: rgba(202,160,92,0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.philosophy-card {
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(202,160,92,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.philosophy-card:hover {
  border-color: rgba(202,160,92,0.3);
  transform: translateY(-6px);
}

.philosophy-card:hover::before {
  opacity: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.team-card {
  text-align: center;
  position: relative;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  background: var(--gray-dark);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
  display: block;
}

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

.team-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--white);
}

.team-card .role {
  color: var(--accent-gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
}

/* =============================================
   CREDENTIALS STRIP
   ============================================= */
.credentials-strip {
  background: var(--gray-dark);
  padding: 50px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.credentials-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.credential-item {
  background: rgba(255,255,255,0.03);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(202,160,92,0.15);
  font-size: 13px;
  color: var(--body-text);
  font-family: var(--font-ui);
  letter-spacing: 1px;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

.contact-info {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.info-item {
  margin-bottom: 35px;
}

.info-item p {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--white);
  margin-top: 5px;
}

.contact-form {
  background: var(--gray-dark);
  padding: 55px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-gold);
  background: rgba(202,160,92,0.04);
}

textarea.form-input {
  height: 140px;
  resize: none;
}

select.form-input {
  appearance: none;
  cursor: pointer;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.accordion-header {
  padding: 28px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--accent-gold);
}

.accordion-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}

.accordion-icon {
  color: var(--accent-gold);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding-bottom: 28px;
}

/* =============================================
   PROJECTS PAGE
   ============================================= */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 10px 26px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-ui);
  font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-gold);
  color: var(--pure-black);
  border-color: var(--accent-gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card.large {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.project-card:not(.large) {
  aspect-ratio: 4/3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,26,43,0.95) 0%, transparent 55%);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease-out);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
}

.project-loc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
}

/* =============================================
   SCROLL ANIMATION BASE CLASSES
   ============================================= */
.scroll-reveal,
.reveal-text {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.scroll-reveal.is-visible,
.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.from-left {
  transform: translateX(-60px);
}

.scroll-reveal.from-right {
  transform: translateX(60px);
}

.scroll-reveal.from-left.is-visible,
.scroll-reveal.from-right.is-visible {
  transform: translateX(0);
}

.bento-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-item:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* =============================================
   PAGE HERO — STRONGER OVERLAY FOR LEGIBILITY
   ============================================= */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,11,1) 0%,
    rgba(10,10,11,0.7) 40%,
    rgba(10,10,11,0.4) 70%,
    rgba(10,10,11,0.2) 100%
  );
  z-index: 2;
}

.page-hero-bg img {
  opacity: 0.65;
  filter: brightness(0.8) contrast(1.1);
}

.page-hero-content {
  z-index: 10;
}

/* Slider overlay stronger */
.slider-overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.15) 100%
  );
}

/* =============================================
   COMPREHENSIVE MOBILE FIXES
   ============================================= */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 50px; }
  .img-sub { display: none; }
  .img-main { width: 100%; height: 400px; }
  .experience-badge { left: 20px; top: -20px; }

  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
  }
  .sr-content { padding: 50px 40px; width: 100%; }
  .sr-image { width: 100%; height: 50vw; min-height: 280px; }

  .grid-2col { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; aspect-ratio: 4/3; }
  
  .bento-1 { grid-row: span 1; }
  .bento-3 { margin-top: 0; }
  .bento-4 { margin-top: 0; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  
  .section { padding: 60px 20px; }
  .section-inner { width: 100%; }
  
  .page-hero-content { padding: 0 24px 60px; }

  .service-row { min-height: auto; }
  .sr-content { padding: 40px 20px; }
  .sr-image { height: 55vw; }

  .intro-images { padding-bottom: 20px; }
  .img-main { height: 280px; }
  .experience-badge { display: none; }

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

  .process-steps { grid-template-columns: 1fr; gap: 20px; }

  .contact-form { padding: 30px 20px; }

  .bento-grid { grid-template-columns: 1fr; gap: 15px; }
  .bento-1, .bento-2, .bento-3, .bento-4 {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 280px;
    margin-top: 0;
  }

  .projects-grid { gap: 16px; }
  .project-card.large { aspect-ratio: 4/3; }

  .slider-content { padding: 0 20px; }
  .slider-content .display-xl { font-size: 30px; }
  
  .sub-services { grid-template-columns: 1fr; }

  /* Asymmetric info section on mobile */
  .section .section-inner .asym-flex {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .asym-flex > div {
    flex: none !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* Fix any inner flex columns inside asym section */
  .asym-flex > div > div[style*="flex-direction: column"] {
    gap: 20px !important;
  }

  /* Rising building box height on mobile */
  .asym-flex [style*="height: 500px"] {
    height: 280px !important;
  }
}

/* =============================================
   NAV MOBILE OVERLAY FIXES
   ============================================= */
@media (max-width: 1024px) {
  .nav-links {
    padding: 0 40px;
  }

  .nav-links .nav-link {
    font-size: 18px;
    letter-spacing: 2px;
    opacity: 1;
  }

  /* Ensure mobile-toggle is above everything */
  .mobile-toggle {
    z-index: 1100;
    position: relative;
  }

  /* When nav is open, toggle lines become white X clearly */
  .mobile-toggle.open span {
    background: var(--accent-gold);
  }
}

/* =============================================
   FOOTER GRID — RESPONSIVE COLLAPSE
   (overrides inline styles via parent class)
   ============================================= */
.footer-grid-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .footer-grid-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =============================================
   SCROLL-REVEAL DELAY VARIANTS
   ============================================= */
.scroll-reveal[data-delay="100"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="200"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="300"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="400"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="500"] { transition-delay: 0.5s; }

.bento-item[data-delay="0"]   { transition-delay: 0s; }
.bento-item[data-delay="100"] { transition-delay: 0.1s; }
.bento-item[data-delay="200"] { transition-delay: 0.2s; }
.bento-item[data-delay="300"] { transition-delay: 0.3s; }

/* =============================================
   BENTO TEXT LEGIBILITY
   ============================================= */
.bento-item h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1.3;
}

.bento-item .body-sm {
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
}

/* Bento items with images get a stronger overlay */
.bento-item:has(img) {
  background: var(--gray-dark);
}

.bento-item:has(img) > div {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

/* Fix bento items that have child divs (content wrapper) */
.bento-item > div[style*="z-index: 5"] {
  position: relative;
  z-index: 5;
}

/* =============================================
   IMAGE ALT TEXT / BROKEN IMAGE FALLBACK
   ============================================= */
img {
  font-size: 0;
  color: transparent;
}

img::before {
  content: '';
  display: block;
  background: var(--gray-dark);
  width: 100%;
  height: 100%;
}

/* =============================================
   ACCENT VAR ALIAS (fix any orphaned --accent refs)
   ============================================= */
:root {
  --accent: var(--accent-gold);
  --accent-rgb: var(--accent-gold-rgb);
  --gold: var(--accent-gold);
}