/* 
========================================================================
   DISAO STUDIO — CORE DESIGN SYSTEM
========================================================================
*/

/* --- Variables --- */
:root {
  /* Color Palette (Grayscale & Natural Travertine Stone) */
  --bg-primary: #FAF8F5;          /* Warm Plaster White */
  --bg-secondary: #FFFFFF;        /* Pure White */
  --bg-dark: #0D0D0D;             /* Absolute Velvet Black */
  --bg-dark-secondary: #161616;   /* Rich Charcoal Black */
  
  --text-dark: #0F0F0F;           /* Charcoal Black for reading */
  --text-muted: #555555;          /* Medium Grey */
  --text-light: #FFFFFF;          /* Pure White for dark sections */
  --text-light-muted: #A5A5A5;    /* Lighter Grey for dark screens */
  
  --color-stone: #E5DFD9;         /* Travertine Stone Grey-Beige */
  --color-stone-dark: #C4BBB2;    /* Shadowed Stone */
  --color-border: rgba(15, 15, 15, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.1);
  
  /* Fonts */
  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Animation Easings */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1); /* Custom ultra-smooth ease-out */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --transition-slow: 1.2s var(--ease-editorial);
  --transition-medium: 0.7s var(--ease-editorial);
  --transition-fast: 0.3s var(--ease-editorial);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden; /* Lock scroll when menu is active */
}

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

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #C4C4C4;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8E8E8E;
}

/* --- Global Utilities & Typography --- */
.container-large {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
}

.section-spacing {
  padding-top: clamp(5rem, 10vw, 15rem);
  padding-bottom: clamp(5rem, 10vw, 15rem);
}

/* Typography styles */
h1, h2, h3, h4, .serif-display {
  font-family: var(--font-serif);
  font-weight: 700; /* Bold display headings */
  letter-spacing: -0.025em; /* Tight letter-spacing for premium feel */
}

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

.text-reveal-inner {
  display: inline-block;
  transform: none;
  transition: none;
}

.text-reveal.revealed .text-reveal-inner {
  transform: none;
}

.subtitle-caps {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.5rem;
}

.subtitle-caps-light {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  display: block;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.section-title-light {
  color: var(--text-light);
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.body-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-dark);
  max-width: 50ch;
  margin-bottom: 2rem;
  letter-spacing: -0.015em;
}

.body-lead-light {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-light);
  max-width: 50ch;
  margin-bottom: 2rem;
  letter-spacing: -0.015em;
}

.body-standard {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 65ch;
  letter-spacing: -0.005em;
}

.body-standard-light {
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-light-muted);
  max-width: 65ch;
  letter-spacing: -0.005em;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}
.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Premium Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-content {
  text-align: center;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderFadeUp 1.2s var(--ease-editorial) forwards 0.2s;
}

.preloader-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  opacity: 0;
  animation: preloaderFadeIn 1s var(--ease-editorial) forwards 0.8s;
}

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

@keyframes preloaderFadeIn {
  to {
    opacity: 1;
  }
}

.preloader.dismissed {
  transform: translateY(-100%);
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  transition: width 0.3s var(--ease-editorial), height 0.3s var(--ease-editorial), background-color 0.3s;
  transform: translate(-50%, -50%);
}

.cursor-text {
  position: absolute;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

/* Interactive hover classes triggered by JS */
.custom-cursor.hovering-link .cursor-dot {
  width: 40px;
  height: 40px;
  background-color: var(--bg-secondary);
  opacity: 0.15;
}

.custom-cursor.hovering-media .cursor-dot {
  width: 80px;
  height: 80px;
  background-color: var(--bg-secondary);
  mix-blend-mode: normal;
}
.custom-cursor.hovering-media .cursor-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor-text.cursor-plus-icon {
  font-size: 2.2rem !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  margin-top: -3px;
  letter-spacing: 0 !important;
}

@media (max-width: 768px) {
  .custom-cursor {
    display: none; /* Hide on mobile devices */
  }
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2.5rem 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease-editorial), background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 1.25rem 0;
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-align: left;
  margin-top: 4px;
}

/* Hamburger toggle */
.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 1001;
  color: var(--text-light);
}

.menu-line {
  width: 28px;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.5s var(--ease-in-out), width 0.5s var(--ease-in-out);
}

.line-1 {
  transform: translateY(-4px);
}

.line-2 {
  width: 18px;
  transform: translateY(4px);
}

.menu-toggle:hover .line-2 {
  width: 28px;
}

/* Hamburger active transformation */
.menu-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(0.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .line-2 {
  width: 28px;
  transform: translateY(-0.5px) rotate(-45deg);
}

/* --- Full Screen Menu Template Layout --- */
.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-light);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-in-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fullscreen-nav.active {
  opacity: 1;
  pointer-events: auto;
}

/* Ambient backgrounds changing on hover */
.nav-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.nav-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: grayscale(1) brightness(0.2);
  transition: opacity 0.8s var(--ease-in-out);
}

.nav-bg-img.active {
  opacity: 0.08; /* Quiet subtle ambient render image */
}

/* Menu items */
.nav-content-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 10rem;
  padding-bottom: 4rem;
}

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

.nav-item {
  display: flex;
  align-items: baseline;
  overflow: hidden;
}

.nav-num {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text-light-muted);
  margin-right: 1.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-editorial), opacity 0.8s;
}

.nav-item a {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-editorial), opacity 0.8s, color 0.4s;
}

.nav-item a.active {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* Animations when nav opens */
.fullscreen-nav.active .nav-num,
.fullscreen-nav.active .nav-item a {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-nav.active .nav-item:nth-child(1) .nav-num,
.fullscreen-nav.active .nav-item:nth-child(1) a { transition-delay: 0.15s; }
.fullscreen-nav.active .nav-item:nth-child(2) .nav-num,
.fullscreen-nav.active .nav-item:nth-child(2) a { transition-delay: 0.25s; }
.fullscreen-nav.active .nav-item:nth-child(3) .nav-num,
.fullscreen-nav.active .nav-item:nth-child(3) a { transition-delay: 0.35s; }
.fullscreen-nav.active .nav-item:nth-child(4) .nav-num,
.fullscreen-nav.active .nav-item:nth-child(4) a { transition-delay: 0.45s; }
.fullscreen-nav.active .nav-item:nth-child(5) .nav-num,
.fullscreen-nav.active .nav-item:nth-child(5) a { transition-delay: 0.55s; }

/* Interactive hovering links effect */
.nav-links:hover a {
  opacity: 0.25;
}
.nav-links a:hover {
  opacity: 1 !important;
  transform: translateX(10px);
}

/* Nav footer info */
.nav-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border-light);
  padding-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-editorial) 0.6s, transform 0.8s var(--ease-editorial) 0.6s;
}

.fullscreen-nav.active .nav-footer {
  opacity: 1;
  transform: translateY(0);
}

.nav-info-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 0.75rem;
}

.nav-info p, .nav-info a {
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 300;
  color: var(--text-light-muted);
}
.nav-info a:hover {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .nav-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }
  .nav-content-wrapper {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }
}

/* --- Hero Section (Home) --- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: scale(1.05); /* Initial scale for zoom animation */
  transition: transform var(--transition-slow);
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

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

.hero-overlay-content {
  position: absolute;
  bottom: 10%;
  left: 5%;
  z-index: 3;
  color: var(--text-light);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 28ch;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-title-light {
  font-weight: 300;
  opacity: 0.92;
}

.hero-title-bold {
  font-weight: 700;
}

.hero-discover-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 0.95rem 2.2rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.4s var(--ease-editorial);
}

.hero-discover-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
}

.hero-discover-btn svg {
  transition: transform 0.3s ease;
}

.hero-discover-btn:hover svg {
  transform: translateY(3px);
}

.hero-scroll-indicator {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 10;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.7rem 1.25rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  animation: heroScrollFloat 2.5s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: heroArrowBounce 1.8s ease-in-out infinite;
}

.hero-scroll-line {
  width: 30px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(-100%);
  animation: scrollLineAnim 2s infinite var(--ease-editorial);
}

@keyframes heroScrollFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes heroArrowBounce {
  0%, 100% {
    transform: translateY(-2px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

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

/* --- Manifesto Section --- */
.manifesto {
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.manifesto-container {
  max-width: 1100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manifesto-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #8E8E93; /* Apple-style muted gray for base text */
}

.manifesto-text p {
  margin-bottom: 2.2rem;
}

.manifesto-text p:last-child {
  margin-bottom: 0;
}

.manifesto-text .highlight {
  font-weight: 700; /* Bold highlights */
  font-style: normal; /* Replaced italic slanted text */
  color: var(--text-dark); /* Contrast dark black */
}

.manifesto-text .block-quote {
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  line-height: 1.25;
}

/* --- Featured Projects (Index & Works) --- */
.works-section {
  background-color: var(--bg-secondary);
}

.projects-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-item {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1.5fr 0.5fr;
  align-items: center;
  position: relative;
  transition: padding var(--transition-medium);
}

.project-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.project-index {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-title-wrapper {
  display: flex;
  flex-direction: column;
}

.project-item-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 300;
  transition: transform var(--transition-medium);
}

.project-tags {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.project-location {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
}

.project-action {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-medium);
}

.project-action svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(-45deg);
  transition: transform var(--transition-medium);
}

/* Project list hover state */
.project-item:hover {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.project-item:hover .project-item-title {
  transform: translateX(15px);
}

.project-item:hover .project-action {
  background-color: var(--text-dark);
  color: var(--bg-secondary);
  border-color: var(--text-dark);
  transform: scale(1.1);
}

.project-item:hover .project-action svg {
  transform: rotate(0deg);
}

/* Floating thumbnail on hover */
.project-hover-image {
  position: fixed;
  width: 320px;
  height: 220px;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.5s var(--ease-editorial), transform 0.5s var(--ease-editorial);
  overflow: hidden;
}

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

.project-item:hover ~ .project-hover-image,
.project-hover-image.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .project-item {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  .project-index {
    grid-column: 1;
  }
  .project-location {
    grid-column: 2;
    justify-self: end;
    font-size: 0.9rem;
  }
  .project-title-wrapper {
    grid-column: 1 / span 2;
  }
  .project-action {
    display: none; /* Hide action arrow button on mobile */
  }
  .project-item:hover {
    padding: 3rem 0;
  }
  .project-item:hover .project-item-title {
    transform: none;
  }
}

/* --- Narrative Flow (poetic visual blocks replacing list) --- */
.narrative-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(8rem, 12vw, 20rem);
}

.narrative-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
}

.narrative-block.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.narrative-block.full-width {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}

.narrative-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.narrative-media.full-width {
  aspect-ratio: auto;
  overflow: visible;
  height: auto;
}

.narrative-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-editorial);
}

.narrative-media.full-width img {
  height: auto;
  object-fit: contain;
}

.narrative-media:hover img {
  transform: scale(1.03);
}

.narrative-content-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .narrative-block, .narrative-block.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .narrative-block .narrative-content {
    order: 2 !important;
  }
  .narrative-block .narrative-media {
    order: 1 !important;
  }
}

/* --- Services Section --- */
.services-section {
  background-color: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.service-row {
  border-top: 1px solid var(--color-border);
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.service-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-meta {
  display: flex;
  flex-direction: column;
}

.service-num {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
}

.service-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.service-description {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.service-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--text-dark);
}
.service-btn:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
}

/* --- Selected Films Section --- */
.films-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.films-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 8vw, 10rem);
  width: 100%;
}

.film-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-editorial);
}

.film-container:hover .film-video {
  transform: scale(1.03);
}

.film-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.5rem;
}

.film-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  font-weight: 300;
}

.film-duration {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light-muted);
  letter-spacing: 0.05em;
}

/* --- Technology Section --- */
.tech-section {
  background-color: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 10rem);
  align-items: center;
}

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

.tech-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

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

/* --- Journal Section --- */
.journal-section {
  background-color: var(--bg-primary);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  width: 100%;
}

.journal-item {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.journal-item-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journal-item-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.15;
  font-weight: 300;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.journal-item-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--text-dark);
  align-self: flex-start;
}
.journal-item-link:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .journal-item {
    min-height: auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- Studio Section --- */
.studio-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.studio-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .studio-image-container {
    order: -1;
  }
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 10rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 1rem;
}

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

.form-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.03em;
}

.form-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.35s ease;
  border-radius: 0;
}

/* Float label on focus or when value is present */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
select.form-input:focus ~ .form-label,
select.form-input:valid ~ .form-label {
  top: -1.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* Premium bottom border expanding effect */
.focus-border-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-dark);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-input:focus ~ .focus-border-line {
  width: 100%;
}

/* Style select dropdown arrow */
.select-wrapper {
  position: relative;
}

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

.select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}

select.form-input:focus ~ .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--text-dark);
}

/* Form Validation Error State */
.form-group.has-error .form-input {
  border-bottom-color: #ff0000 !important;
}
.form-group.has-error .form-label {
  color: #ff0000 !important;
}
.form-group.has-error .focus-border-line {
  background-color: #ff0000 !important;
  width: 100% !important;
}

.form-submit-btn {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--text-dark);
  padding: 1.1rem 2.8rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-submit-btn:hover {
  background-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.form-submit-btn:active {
  transform: translateY(-1px);
}

/* Multi-select clickable service badges styles */
.services-badges-group {
  display: flex;
  flex-direction: column;
}

.form-label-static {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  display: block;
}

.services-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.service-badge {
  position: relative;
  cursor: pointer;
}

.service-badge input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-badge span {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 0;
  user-select: none;
}

.service-badge input:checked + span {
  border-color: var(--text-dark);
  background-color: var(--text-dark);
  color: #ffffff;
}

.service-badge span:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.service-badge input:checked + span:hover {
  color: #ffffff;
}

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

/* --- Global Footer Styles --- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  border-top: 1px solid var(--color-border-light);
  padding: clamp(4rem, 8vw, 10rem) 5% 3rem 5%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 25ch;
  font-weight: 300;
}

.footer-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.footer-brand-logo:hover {
  opacity: 1;
}

.footer-col-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  font-size: 0.9rem;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--text-light);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.working-hours {
  margin-top: 1rem;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 300;
}

.credits {
  opacity: 0.6;
}

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

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ========================================================================
   CASE STUDY & EDITORIAL ARTICLES DETAIL PAGES
========================================================================
*/

.detail-hero {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.detail-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.detail-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  z-index: 2;
}

.detail-hero-bg.no-overlay::after {
  background: none;
  display: none;
}

.detail-hero-content {
  position: absolute;
  bottom: 12%;
  left: 5%;
  z-index: 3;
  color: var(--text-light);
  max-width: 80%;
}

.detail-title {
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-bottom: 4rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dark);
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(4rem, 8vw, 10rem);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

.asymmetric-image-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.asymmetric-image-grid .img-col-2 {
  margin-top: 6rem;
}

.full-width-media {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
}

.full-width-media img,
.full-width-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 750px;
  margin: 0 auto;
}

.article-content p {
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.article-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.2;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.article-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.5;
  color: var(--text-dark);
  border-left: 2px solid var(--text-dark);
  padding-left: 2rem;
  margin: 3.5rem 0;
}

.related-posts {
  border-top: 1px solid var(--color-border);
  padding-top: 5rem;
}

@media (max-width: 768px) {
  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .asymmetric-image-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .asymmetric-image-grid .img-col-2 {
    margin-top: 0;
  }
  .full-width-media {
    aspect-ratio: 16 / 9;
  }
}

/* --- Narrative Image Slider (Akşam Işığının Sihri) --- */
.narrative-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #050505;
}

@media (max-width: 992px) {
  .narrative-slider-container {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 576px) {
  .narrative-slider-container {
    aspect-ratio: 4 / 3;
  }
}

.narrative-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.narrative-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease-editorial), visibility 1.2s var(--ease-editorial);
  z-index: 1;
}

.narrative-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.narrative-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(2.5rem, 4vw, 4rem);
  height: clamp(2.5rem, 4vw, 4rem);
  background-color: rgba(11, 11, 11, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.slider-arrow:hover {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
}

.slider-arrow.prev {
  left: 1.5rem;
}

.slider-arrow.next {
  right: 1.5rem;
}

/* Progress bar container at the bottom */
.slider-progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 15;
}

.slider-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #C5B097; /* Premium Traverten Altın tonu */
  transition: width 50ms linear;
}

/* --- Tech Video Lazy Loader Animations --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

#techVideoWrapper:hover #techPlayBtn div {
  transform: scale(1.1);
  background-color: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

#techVideoWrapper:hover #techPlayBtn svg {
  fill: #000000;
}

/* --- Vision Grid & Section --- */
.vision-section-dark {
  background-color: #121212; /* Refined dark charcoal/smoke background */
  border-bottom: 1px solid var(--color-border-light);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .vision-grid {
    grid-template-columns: 0.8fr 1.5fr; /* Text is compact, image is significantly larger */
    gap: 8%;
  }
}

/* --- Material Parallax Effect --- */
#materialParallaxImg {
  position: absolute;
  left: 0;
  top: 0;
  width: 150% !important; /* Make it 50% wider for maximum parallax movement */
  max-width: none !important;
  height: 100% !important; /* Maintain exactly 100% container height, no vertical overflow */
  object-fit: cover;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.1, 0.9, 0.2, 1); /* Butter-smooth transition */
}

/* --- Video Loading Spinner & Overlay --- */
.video-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  opacity: 1;
  visibility: visible;
}

.video-loader-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  border-top-color: #EB344D;
  animation: spinVideoLoader 0.9s linear infinite;
}

@keyframes spinVideoLoader {
  to { transform: rotate(360deg); }
}

/* --- Unreal Engine 3D Interactive UI Overlay Simulator --- */
.unreal-ui-overlay {
  --red: #EB344D;
  --mint: #10B981;
  --radius-md: 12px;
  --radius-sm: 6px;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);

  position: absolute;
  inset: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
  font-family: var(--font-sans);
  color: var(--text-primary);
  z-index: 10;
}

.unreal-top-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.unreal-project-name {
  background: rgba(10, 12, 22, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
}

.unreal-status-pill {
  background: rgba(10, 12, 22, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.unreal-status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: unreal-pulse 1.8s infinite;
}

@keyframes unreal-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.unreal-bottom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 15;
}

.unreal-filter-drawer {
  background: rgba(10, 12, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.5fr 1.1fr;
  gap: 20px;
  padding: 0 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.unreal-filter-drawer.open {
  max-height: 240px;
  opacity: 1;
  padding: 24px;
}

.unreal-drawer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.unreal-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unreal-drawer-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.unreal-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unreal-pills-row button {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 38px;
  text-align: center;
  cursor: pointer;
}

.unreal-pills-row button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.unreal-pills-row button.active {
  background: rgba(235, 52, 77, 0.15);
  color: var(--red);
  border-color: rgba(235, 52, 77, 0.3);
  box-shadow: 0 0 10px rgba(235, 52, 77, 0.05);
}

.slider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-value-preview {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.range-slider-container {
  position: relative;
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}

.range-slider-container .range-input {
  position: absolute;
  width: 100%;
  height: 3px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  z-index: 5;
}

.range-slider-container .range-input::-webkit-slider-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.range-slider-container .range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--red);
  border-color: var(--red);
}

.range-slider-container .range-input::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.range-slider-container .range-input::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--red);
  border-color: var(--red);
}

.slider-track-bg {
  position: absolute;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  z-index: 1;
}

.slider-track-fill {
  position: absolute;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  z-index: 2;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: -4px;
}

.slider-ticks span {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-muted);
}

.col-actions {
  justify-content: center;
  gap: 10px;
}

.unreal-action-btn {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-radius: 30px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  cursor: pointer;
}

.unreal-action-btn.primary {
  background: #fff;
  color: #07080c;
  border: 1px solid #fff;
}

.unreal-action-btn.primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(235, 52, 77, 0.3);
}

.unreal-action-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.unreal-action-btn.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.unreal-drawer-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 44px;
  height: 16px;
  background: rgba(10, 12, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  pointer-events: auto;
  z-index: 18;
  transition: all 0.2s ease;
}

.unreal-drawer-toggle:hover {
  color: var(--red);
  background: rgba(10, 12, 22, 0.95);
  height: 18px;
}

.unreal-drawer-toggle svg {
  transition: transform 0.25s ease;
}

.unreal-drawer-toggle:hover svg {
  transform: translateY(1px);
}

.unreal-filter-drawer.open + .unreal-drawer-toggle {
  display: flex;
}

.unreal-nav-tabs {
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  user-select: none;
}

.unreal-tabs-left {
  display: flex;
  align-items: center;
  height: 100%;
}

.unreal-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  background: transparent;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.unreal-tab-btn svg {
  stroke-width: 0;
  fill: currentColor;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.unreal-tab-btn:hover {
  color: var(--text-secondary);
}

.unreal-tab-btn:hover svg {
  opacity: 0.9;
}

.unreal-tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(255, 255, 255, 0.02);
}

.unreal-tab-btn.active svg {
  opacity: 1;
  fill: var(--red);
}

.unreal-fullscreen-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  cursor: pointer;
}

.unreal-fullscreen-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .unreal-top-bar {
    top: 10px;
    left: 10px;
    gap: 8px;
  }
  .unreal-project-name {
    padding: 6px 12px;
    font-size: 9px;
  }
  .unreal-status-pill {
    padding: 6px 10px;
    font-size: 8px;
  }
  .unreal-filter-drawer.open {
    max-height: 250px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .unreal-filter-drawer.open::-webkit-scrollbar {
    display: none;
  }
  .unreal-nav-tabs {
    padding: 0 12px;
    height: 48px;
  }
  .unreal-tabs-left {
    overflow-x: auto;
    scrollbar-width: none;
    width: calc(100% - 40px);
  }
  .unreal-tabs-left::-webkit-scrollbar {
    display: none;
  }
  .unreal-tab-btn {
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 9px;
    gap: 6px;
  }
  .unreal-tab-btn svg {
    width: 12px;
    height: 12px;
  }
  .unreal-fullscreen-btn {
    width: 32px;
    height: 32px;
  }
  .col-actions {
    flex-direction: row;
    width: 100%;
    gap: 8px;
  }
  .unreal-action-btn {
    flex: 1;
    padding: 10px;
    font-size: 9px;
  }
}

/* --- Virtual Tours Banner Section Proportions --- */
@media (min-width: 769px) {
  .virtual-tours-banner-section .tech-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* --- Editorial Framing Block Media Size Override --- */
@media (min-width: 993px) {
  .editorial-framing-block {
    grid-template-columns: 0.6fr 1.4fr !important;
  }
}

/* --- Language Selector --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1002;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-light-muted);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lang-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 6px;
  border-radius: 3px;
}

.lang-link:hover {
  color: var(--text-light);
}

.lang-link.active {
  color: var(--text-light);
  pointer-events: none;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

/* Hide language selector when full screen menu is active to avoid clutter */
.nav-open .lang-selector {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

