/* ============================================================
   آتلیه نور — Design System
   Palette: Clean Light (warm white + charcoal + terracotta + brushed gold)
   Type:    Alexandria (display) & Readex Pro (body) — Persian/Arabic optimized luxury fonts
   Radius:  All-sharp (0px)
   Direction: RTL
   Motion:  Scroll-driven reveals, smooth hover transitions
   ============================================================ */

@import url('fonts/fonts.css');

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

:root {
  /* Palette — Premium Dark */
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #141414;
  --bg-tertiary:   #1a1a1a;
  --bg-card:       #111111;
  --surface-hover: #1c1c1c;

  --text-primary:   #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary:  #7a7a7a;
  --text-muted:     #505050;

  --accent:         #b94a34;
  --accent-hover:   #a33f2b;
  --accent-subtle:  rgba(185, 74, 52, 0.15);

  --accent-gold:    #cfa87b;
  --accent-gold-hover: #b89366;
  --accent-gold-subtle: rgba(207, 168, 123, 0.15);

  --olive:          #4f6145;
  --olive-subtle:   rgba(79, 97, 69, 0.15);

  --border:         #2a2a2a;
  --border-hover:   #3a3a3a;

  /* Type scale */
  --font-display: 'Vazirmatn', sans-serif;
  --font-body:    'Vazirmatn', sans-serif;
  --font-serif:   'Vazirmatn', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 68px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.9;
}

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo span {
  font-weight: 400;
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal),
              transform var(--duration-normal) var(--ease-out);
  z-index: 99;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Hero Section (Full-Width Image + Text Overlay) ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
}

.hero:hover .hero-bg img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.5) 45%,
    rgba(10, 10, 10, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-3xl);
  padding-top: calc(var(--nav-height) + var(--space-xl));
}

.hero h1 {
  color: #ffffff;
  max-width: 18ch;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.9);
  line-height: 1.25;
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: #ffd8a8;
  text-shadow: 0 2px 15px rgba(255, 216, 168, 0.3);
}

.hero-sub {
  font-size: 1.25rem;
  max-width: 45ch;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 400;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-outline:hover {
  border-color: var(--text-tertiary);
  background: var(--surface-hover);
}

.btn-white {
  background: #ffffff;
  color: #0a0a0a;
}

.btn-white:hover {
  background: #e0e0e0;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding-right: 0;
  padding-left: 0;
}

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

.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-ghost:hover .arrow {
  transform: translateX(-6px);
}

/* ---- Marquee / Scrolling Text ---- */
.marquee-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  direction: ltr;
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 300;
  white-space: nowrap;
  padding: 0 var(--space-xl);
  color: var(--text-muted);
  direction: rtl;
}

.marquee-track span .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 var(--space-lg);
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---- Projects / Portfolio Grid ---- */
.projects-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .projects-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid .project-card:first-child {
    grid-column: 1 / -1;
  }
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card:first-child .project-card-img {
  aspect-ratio: 21/9;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  filter: brightness(0.95);
}

.project-card:hover .project-card-img img {
  transform: scale(1.04);
  filter: brightness(1);
}

.project-card-info {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-card-info .tag {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}

.project-card-info .year {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---- About / Split Section ---- */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-section {
    grid-template-columns: 1.1fr 1fr;
  }
}

.about-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-content h2 {
  max-width: 18ch;
}

.about-content p {
  font-size: 1.02rem;
}

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ---- Services / Bento Grid ---- */
#services {
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
}

.service-card {
  background: var(--bg-secondary);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 280px;
  transition: background var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-tertiary);
}

.service-card.featured {
  background: var(--accent-subtle);
  border-right: 3px solid var(--accent);
}

@media (min-width: 768px) {
  .service-card.wide {
    grid-column: span 2;
  }
}

.service-card-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.8;
}

/* ---- Testimonial ---- */
.testimonial-section {
  background: var(--bg-secondary);
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.testimonial-author strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---- Process / Horizontal Steps ---- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: process-counter;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.process-step {
  counter-increment: process-counter;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.process-step::before {
  content: counter(process-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-tertiary);
}

/* ---- Contact / CTA Section ---- */
.cta-section {
  background: var(--bg-secondary);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-content p {
  text-align: center;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  max-width: 35ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

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

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

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

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Stagger children */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 120ms);
}

/* Image reveal (clip) */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-out);
}

.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ---- Cursor Glow Effect (subtle) ---- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 74, 52, 0.045) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ---- Smooth Section Divider ---- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: var(--space-sm) 0;
}

/* ---- Selection Style ---- */
::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ---- Loading animation for page entry ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.25s; }
.animate-delay-3 { animation-delay: 0.4s; }
.animate-delay-4 { animation-delay: 0.55s; }
.animate-delay-5 { animation-delay: 0.7s; }

/* ============================================================
   آتلیه نور — Luxury Enhancements
   ============================================================ */

/* Hero Badge */
.hero-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffd8a8;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.4rem;
  align-self: flex-start;
  margin-bottom: var(--space-xs);
  border: 1px solid rgba(207, 168, 123, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

/* Hero Grid Lines */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-lines span {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  height: 100%;
}

.hero-grid-lines span:last-child {
  border-right: none;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.hero-scroll-indicator span {
  display: inline-block;
  animation: pulse 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-gold) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #ffffff;
  animation: scrollDown 2s infinite var(--ease-in-out);
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  80%, 100% { transform: translateY(200%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Project card styling enhancements */
.project-card-img {
  position: relative;
}

.project-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  z-index: 2;
}

.project-card:hover .project-hover-overlay {
  opacity: 1;
}

.view-project {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  border: 1px solid var(--accent-gold);
  padding: 0.6rem 1.6rem;
  background: rgba(26, 26, 26, 0.6);
  transform: translateY(15px);
  transition: transform var(--duration-normal) var(--ease-out),
              background var(--duration-fast),
              color var(--duration-fast);
}

.project-card:hover .view-project {
  transform: translateY(0);
}

.view-project:hover {
  background: var(--accent-gold);
  color: #1a1a1a;
}

.view-project .arrow {
  display: inline-block;
  margin-right: var(--space-xs);
  transition: transform var(--duration-normal) var(--ease-out);
}

.view-project:hover .arrow {
  transform: translateX(-4px);
}

/* ========== DESIGN STYLES SECTION ========== */
.styles-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.styles-interactive {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.styles-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.style-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.style-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.style-btn.active {
  color: var(--text-primary);
}

.style-btn.active::after {
  width: 100%;
}

.style-btn .num {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.style-btn .title {
  font-weight: 500;
}

.style-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .style-display {
    grid-template-columns: 1.2fr 1fr;
  }
}

.style-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.style-content.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

.style-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.style-content p {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.style-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.style-feature-item {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.style-feature-item strong {
  color: var(--text-primary);
  margin-left: 0.5rem;
  font-weight: 600;
}

.style-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.style-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--duration-normal) var(--ease-out),
              transform 6s var(--ease-out);
}

.style-visual.fade-out img {
  opacity: 0;
  transform: scale(1.03);
}

.style-color-dots {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  gap: 0.4rem;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.6rem;
  z-index: 3;
}

.style-color-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Adjustments for gold/terracotta buttons */
.btn-primary {
  background: var(--text-primary);
  color: #ffffff;
  border: 1px solid var(--text-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  z-index: -1;
  transition: width var(--duration-normal) var(--ease-out);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:hover {
  color: #1a1a1a;
  border-color: var(--accent-gold);
}

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

.btn-outline:hover {
  background: var(--text-primary);
  color: #ffffff;
}

.nav-logo {
  font-family: var(--font-display);
}

.nav-logo span {
  color: var(--accent-gold);
}

/* ============================================================
   VIDEO HERO — Scroll-Driven Cinematic Section
   ============================================================ */

/* --- Nav Hero Mode (transparent over video) --- */
.nav--hero-mode {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--hero-mode .nav-logo {
  color: #ffffff;
}

.nav--hero-mode .nav-logo span {
  color: var(--accent-gold);
}

.nav--hero-mode .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav--hero-mode .nav-links a:hover {
  color: #ffffff;
}

.nav--hero-mode .nav-links a::after {
  background: var(--accent-gold);
}

.nav--hero-mode .nav-cta {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.nav--hero-mode .nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav--hero-mode .nav-toggle span {
  background: #ffffff;
}

.nav--hero-mode.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* --- Video Hero Container --- */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0a0a;
  z-index: 1;
}

/* --- Video Media Layer --- */
.video-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-hero__media canvas {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  transform: scale(1.03);
  transform-origin: top center;
}

/* --- Gradient Overlay --- */
.video-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(0, 0, 0, 0.05) 55%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    linear-gradient(
      to left,
      rgba(0, 0, 0, 0.4) 0%,
      transparent 60%
    );
  pointer-events: none;
}

/* --- Content Overlay --- */
.video-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 clamp(2rem, 5vw, 6rem) clamp(12rem, 25vh, 20rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  direction: rtl;
  text-align: right;
}

/* Eyebrow */
.video-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-gold);
  opacity: 0;
  transform: translateY(20px);
}

body:not(.loading) .video-hero__eyebrow {
  animation: vhFadeUp 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Headline */
.video-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #ffffff;
  max-width: 14ch;
  opacity: 0;
  transform: translateY(30px);
}

body:not(.loading) .video-hero__headline {
  animation: vhFadeUp 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-hero__headline em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.7em;
  color: var(--accent-gold);
  display: inline-block;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.15em 0.5em 0.2em;
  border-radius: 0.25em;
  margin-top: 0.15em;
  border: 1px solid rgba(207, 168, 123, 0.15);
}

/* Subtitle */
.video-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 44ch;
  opacity: 0;
  transform: translateY(20px);
}

body:not(.loading) .video-hero__subtitle {
  animation: vhFadeUp 0.9s 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* CTA */
.video-hero__cta-wrap {
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
}

body:not(.loading) .video-hero__cta-wrap {
  animation: vhFadeUp 0.9s 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #ffffff;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.video-hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.video-hero__cta:hover {
  color: #0a0a0a;
  border-color: var(--accent-gold);
}

.video-hero__cta:hover::before {
  transform: scaleX(1);
}

.video-hero__cta svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-hero__cta:hover svg {
  transform: translateX(-6px);
}

/* --- Scroll Hint --- */
.video-hero__scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  right: clamp(2rem, 5vw, 6rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  direction: rtl;
  opacity: 0;
}

body:not(.loading) .video-hero__scroll-hint {
  animation: vhFadeUp 0.8s 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.video-hero__scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

.video-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.video-hero__scroll-dot {
  width: 1px;
  height: 16px;
  background: var(--accent-gold);
  position: absolute;
  top: 0;
  left: 0;
  animation: scrollDotMove 2.2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollDotMove {
  0%   { top: -16px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* --- Progress Bar --- */
.video-hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.video-hero__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #e8c99b);
  transition: width 0.08s linear;
  will-change: width;
}

/* --- Entrance Animation Keyframe --- */
@keyframes vhFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .video-hero__content {
    padding: 0 1.5rem 12rem;
    gap: 1rem;
  }

  .video-hero__headline {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    max-width: 100%;
  }

  .video-hero__subtitle {
    max-width: 100%;
  }

  .video-hero__scroll-hint {
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .video-hero__content {
    padding: 0 1.2rem 9rem;
  }

  .video-hero__headline {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .video-hero__cta {
    width: 100%;
    justify-content: center;
  }
}

/* --- Pin spacer override (GSAP adds this) --- */
.pin-spacer {
  background: #0a0a0a !important;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
body.loading {
  overflow: hidden;
  height: 100vh;
}

.hero-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.hero-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-loader__brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-loader__brand span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.hero-loader__bar-track {
  width: 200px;
  height: 2px;
  background: rgba(207, 168, 123, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.hero-loader__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

.hero-loader__note {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}
