/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #09090b;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
body::-webkit-scrollbar {
  display: none;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* WebGL Background Container */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5vw;
  min-height: 100vh;
  position: relative;
}
/* Agentic Banner (homepage) */
.agentic-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.agentic-banner:hover {
  border-color: rgba(201, 168, 76, 0.35);
}
.agentic-banner-content h3 {
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 6px;
}
.agentic-banner-content p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #a1a1aa;
  line-height: 1.5;
}
.agentic-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9a84c;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  transition: gap 0.3s ease;
}
.agentic-banner:hover .agentic-banner-link {
  gap: 12px;
}
@media(max-width: 600px) {
  .agentic-banner { flex-direction: column; align-items: flex-start; padding: 28px; }
}

/* Agentic nav link — highlighted */
.nav-link-agentic {
  color: #c9a84c !important;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 6px 16px !important;
  font-weight: 400 !important;
  transition: all 0.3s ease;
}
.nav-link-agentic:hover {
  background: rgba(201, 168, 76, 0.1) !important;
  border-color: rgba(201, 168, 76, 0.4);
  color: #c9a84c !important;
}

/* Notification Bar */
.notification-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 32px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}
.notification-bar:hover {
  border-color: rgba(201, 168, 76, 0.5);
  color: #fff;
  background: rgba(201, 168, 76, 0.1);
}
.notification-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a84c;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
  animation: notificationPulse 2s ease-in-out infinite;
}
@keyframes notificationPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(201, 168, 76, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(201, 168, 76, 0.8); }
}
.notification-text {
  letter-spacing: 0.02em;
}
.notification-bar svg {
  opacity: 0.5;
  transition: all 0.3s ease;
}
.notification-bar:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.hero h1 {
  font-size: clamp(60px, 7vw, 130px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 28px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}
.subtext {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 200;
  color: #a1a1aa;
  max-width: 620px;
  margin: 0 auto 56px auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1.1s forwards;
}
.cta-wrapper {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1.6s forwards;
}
.cta-btn {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 16px 48px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.1);
}
.cta-btn::before {
  display: none;
}
.cta-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.8);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.25), inset 0 0 20px rgba(201, 168, 76, 0.1);
}
.cta-btn:hover::before {
  opacity: 1;
}
.cta-btn span {
  position: relative;
  z-index: 1;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: heroFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) 2.2s forwards,
             pulse 2s infinite ease-in-out 3.2s;
}
.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #a1a1aa;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #a1a1aa, transparent);
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 0.8; transform: translate(-50%, 5px); }
}

/* ==========================================================================
   GLOBAL UTILS & TYPOGRAPHY
   ========================================================================== */
h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}
h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: #ffffff;
}
p.body-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: #a1a1aa;
  line-height: 1.6;
}
.section-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 180px 5vw;
}
.text-center { text-align: center; }

/* Glass Panel Base */
.glass-panel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
              transform 1s cubic-bezier(0.25, 1, 0.5, 1),
              filter 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Soft Overlay for readability over WebGL */
.bg-overlay {
  display: none;
}

/* ==========================================================================
   HEADER — FLOATING BAR
   ========================================================================== */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background: rgba(15, 15, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s ease;
}
.brand-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
}
.footer-brand .brand-logo {
  height: 60px;
}
.brand:hover .brand-icon {
  background: rgba(255, 255, 255, 0.15);
}
.nav-divider {
  display: none;
}
.nav-links {
  display: none;
  gap: 32px;
}
.nav-links li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-links li a:hover {
  color: #fff;
}
.nav-links li a[style*="color: #c9a84c"] {
  color: #fff !important;
}
.header-actions {
  display: none;
  align-items: center;
}
.btn-primary-small {
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.9);
  border: none;
  color: #09090b;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}
.btn-primary-small:hover {
  background: #c9a84c;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.mobile-menu-btn {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 110px;
  left: 20px;
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 99;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  padding: 12px 16px;
  border-radius: 12px;
  border-bottom: none;
  transition: all 0.2s ease;
}
.mobile-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.mobile-menu .mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}
.mobile-menu .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
@media(min-width: 900px) {
  .nav-links { display: flex; gap: 32px; }
  .header-actions { display: flex; }
  .mobile-menu-btn { display: none; }
}
@media(max-width: 899px) {
  header { padding: 0 16px; }
}

/* ==========================================================================
   MANIFESTO SECTION
   ========================================================================== */
.manifesto {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.manifesto p {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 200;
  line-height: 1.6;
  color: #a1a1aa;
}
.manifesto p em {
  font-style: normal;
  color: #ffffff;
}

/* ==========================================================================
   DISCIPLINES (TWO COLUMNS)
   ========================================================================== */
.disciplines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 80px;
}
@media(min-width: 768px) {
  .disciplines-grid { grid-template-columns: 1fr 1fr; }
}
.discipline-card {
  padding: 48px 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.discipline-card::before {
  display: none;
}
.discipline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(201, 168, 76, 0.05);
}
.discipline-card:hover::before { opacity: 1; }
.discipline-card h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 16px;
}
.discipline-card p {
  color: #a1a1aa;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-weight: 300;
}
.discipline-card:hover .tag {
  border-color: rgba(201, 168, 76, 0.15);
  color: #ccc;
}

/* ==========================================================================
   WORKS SECTION
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 60px;
}
@media(min-width: 768px) {
  .works-grid { grid-template-columns: 1fr 1fr; }
}
.work-card {
  padding: 48px 36px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.work-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.work-meta .badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-weight: 300;
}
.work-meta .dot {
  color: #555;
  font-size: 0.6rem;
}
.work-card h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 12px;
}
.work-card p {
  color: #a1a1aa;
  font-weight: 300;
  line-height: 1.6;
  flex-grow: 1;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #c9a84c;
  font-size: 0.95rem;
  font-weight: 300;
  transition: all 0.3s ease;
}
.work-link:hover {
  gap: 12px;
}
.work-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.work-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   BUILDING SECTION (CURRENTLY BUILDING)
   ========================================================================== */
.building-card {
  max-width: 700px;
  margin: 60px auto 0;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.building-card::before {
  display: none;
}
.progress-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  margin-top: 28px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #c9a84c, rgba(232, 197, 109, 0.8));
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.progress-label span {
  font-size: 0.85rem;
  color: #a1a1aa;
  font-weight: 300;
}
.progress-label .percent {
  color: #c9a84c;
  font-weight: 400;
  font-size: 1.1rem;
}

/* ==========================================================================
   PROCESS SECTION (3 STEPS)
   ========================================================================== */
.how-it-works-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.how-it-works-flow::before {
  display: none;
}
@media(min-width: 900px) {
  .how-it-works-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .how-it-works-flow::before {
    display: block;
    content: '';
    position: absolute;
    top: 50px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
    z-index: 0;
  }
}
.step-card {
  position: relative;
  z-index: 1;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex; justify-content: center; align-items: center;
  font-size: 0.9rem;
  color: #c9a84c;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  position: relative;
  z-index: 10;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 5vw;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media(min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li a {
  color: #a1a1aa;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: #c9a84c;
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-bottom span {
  color: #555;
  font-size: 0.85rem;
  font-weight: 300;
}
.footer-bottom a {
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 300;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: #c9a84c;
}

/* ==========================================================================
   FLOATING NAV PILL
   ========================================================================== */
.floating-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 15, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.floating-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.floating-nav a {
  font-size: 0.85rem;
  font-weight: 300;
  color: #a1a1aa;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.floating-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.floating-nav a.active {
  color: #fff;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
@media(max-width: 600px) {
  .floating-nav a { font-size: 0.75rem; padding: 6px 12px; }
  .floating-nav { gap: 4px; padding: 6px 8px; }
}

/* ==========================================================================
   SUBPAGE HERO (WORKS / BUILDING PAGES)
   ========================================================================== */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5vw;
  min-height: 60vh;
  position: relative;
  z-index: 10;
}
.page-hero h1 {
  font-size: clamp(48px, 6vw, 100px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}
.page-hero .subtext {
  margin-bottom: 0;
  animation-delay: 0.8s;
}

body.subpage .bg-overlay {
  display: none;
}

/* ==========================================================================
   CASE STUDY CARDS (WORKS PAGE)
   ========================================================================== */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-bottom: 40px;
}
@media(min-width: 768px) {
  .case-study-card { grid-template-columns: 1fr 1fr; }
}
a.case-study-card {
  cursor: pointer;
}
.case-study-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.case-study-visual {
  position: relative;
  min-height: 280px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-study-visual::before {
  display: none;
}
.case-study-visual .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 200;
  color: #fff;
  position: relative;
  z-index: 1;
}
.case-study-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.case-study-content h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.case-study-content .description {
  color: #a1a1aa;
  font-weight: 300;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 24px;
  flex-grow: 1;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.feature-list .tag {
  font-size: 0.75rem;
}
.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9a84c;
  font-size: 0.95rem;
  font-weight: 300;
  transition: all 0.3s ease;
  align-self: flex-start;
}
.case-study-link:hover {
  gap: 14px;
}
.case-study-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   BUILDING PAGE — PROJECT DETAIL
   ========================================================================== */
.project-detail {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5vw 120px;
}
.project-detail-card {
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.project-detail-card::before {
  display: none;
}
.project-detail-card h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.project-detail-card .description {
  color: #a1a1aa;
  font-weight: 300;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media(max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-item {
  padding: 20px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #555;
  margin-bottom: 8px;
}
.detail-item .value {
  font-size: 1.1rem;
  font-weight: 300;
  color: #fff;
}
.detail-item .value.accent {
  color: #c9a84c;
}

.case-study-section {
  margin-top: 40px;
}
.case-study-section .description {
  margin-bottom: 0;
}

/* Case Study Hero CTA */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1.2s forwards;
}
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.9);
  color: #09090b;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}
.btn-visit:hover {
  background: #c9a84c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}
.btn-visit svg {
  width: 18px;
  height: 18px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Case Study Content — full width clean layout */
.case-study-body {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5vw 120px;
}
.case-study-body .detail-grid {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.case-study-body .section-block {
  margin-bottom: 72px;
}
.case-study-body .section-block h3 {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #fff;
  font-weight: 300;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 2px solid #c9a84c;
}
.case-study-body .section-block p {
  color: #a1a1aa;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Bottom CTA Banner */
.cta-banner {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 48px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 24px;
  text-align: center;
}
.cta-banner h3 {
  font-size: 1.8rem;
  font-weight: 200;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  color: #a1a1aa;
  font-weight: 300;
  margin-bottom: 28px;
  font-size: 1rem;
}
.cta-banner .btn-visit {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 40px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10;
}
.back-link:hover {
  color: #c9a84c;
}
.back-link svg {
  width: 16px;
  height: 16px;
}

/* Subtle Grid Texture */
.grid-texture {
  display: none;
}
