/* ============================================
   LLANOS ARQUITECTOS - Premium Elegant Website
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --dark: #0a0a0a;
  --dark-secondary: #141414;
  --dark-tertiary: #1a1a1a;
  --dark-card: #111111;
  --light: #f5f0eb;
  --light-secondary: #e8e0d8;
  --light-muted: #b8afa5;
  --accent-primary: #8b5e3c;
  --accent-hover: #a3724e;
  --accent-dark: #5c3d28;
  --accent-gold: #c9a96e;
  --accent-gold-light: #d4b97a;
  --text-dark: #1a1a1a;
  --text-light: #f5f0eb;
  --text-muted: rgba(245, 240, 235, 0.6);
  --border-light: rgba(245, 240, 235, 0.12);
  --border-light-hover: rgba(245, 240, 235, 0.25);
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: rgba(245, 240, 235, 0.08);

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 160px);
  --container-padding: clamp(20px, 5vw, 80px);
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 32px;
  --gap-xl: 64px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-medium: 0.6s var(--ease-out-expo);
  --transition-slow: 1s var(--ease-out-expo);
  --transition-slower: 1.4s var(--ease-out-expo);

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;

  /* Safe Area Insets for Modern Mobile */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  color: var(--text-light);
  margin-top: 20px;
}

.section-title--dark {
  color: var(--text-dark);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--container-padding);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-medium), backdrop-filter var(--transition-medium), box-shadow var(--transition-medium);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-accent {
  color: var(--accent-gold);
  font-weight: 500;
}

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

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

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

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

.nav-cta {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 28px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--text-light);
  color: var(--dark);
  border-color: var(--text-light);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 26px;
  height: 1.5px;
  background: var(--text-light);
  transition: all var(--transition-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
  padding: calc(var(--header-height) + var(--safe-area-top) + 20px) 24px calc(var(--safe-area-bottom) + 30px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vh, 2.8rem);
  font-weight: 300;
  color: var(--text-light);
  padding: 10px 24px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  color: var(--accent-gold);
  transform: scale(1.05);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero.loaded .hero-bg img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.3) 40%,
    rgba(10, 10, 10, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-padding) 80px;
  max-width: var(--max-width);
  width: 100%;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 200;
  line-height: 1.05;
  margin-bottom: 24px;
  overflow: hidden;
}

.hero-title span {
  display: block;
  transform: translateY(120%);
  animation: heroTitleReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-title .highlight {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 300;
}

@keyframes heroTitleReveal {
  to { transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.6s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1s forwards;
}

.hero-scroll span {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   STATEMENT SECTION (Estudio Buenos Aires - Fondo Negro)
   ============================================ */
.statement {
  background: #000000;
  padding: clamp(90px, 11vw, 150px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(245, 240, 235, 0.07);
  border-bottom: 1px solid rgba(245, 240, 235, 0.07);
}

.statement::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.statement-wrapper {
  max-width: 920px;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.statement-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
}

.statement-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.statement-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.statement-divider {
  width: 50px;
  height: 1px;
  background: #ffffff;
  margin: 0 0 30px 0;
  opacity: 0.6;
}

.statement-description {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.85;
  max-width: 760px;
  margin: 0;
}

.statement-action {
  display: flex;
  justify-content: center;
}

.btn-statement {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--accent-gold);
  border-radius: 100px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-statement .statement-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  color: var(--accent-gold);
  transition: all var(--transition-fast);
}

.btn-statement:hover {
  background: var(--accent-gold);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.25);
  transform: translateY(-2px);
}

.btn-statement:hover .statement-arrow {
  background: var(--dark);
  color: var(--accent-gold);
  transform: translateX(4px);
}
/* ============================================
   MANSION HERO BANNER
   ============================================ */
.mansion-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.mansion-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.mansion-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      transparent 15%,
      transparent 85%,
      rgba(0, 0, 0, 0.45) 100%
    );
  pointer-events: none;
}

.mansion-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--container-padding);
}

.mansion-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mansion-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.mansion-hero-title .highlight {
  color: var(--accent-gold-light);
  font-style: italic;
}

.mansion-hero-bottom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.mansion-hero-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold));
  animation: mansionLinePulse 2.5s ease-in-out infinite;
}

@keyframes mansionLinePulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   STUDIO SECTION
   ============================================ */
.studio {
  padding: var(--section-padding) 0;
  background: var(--light);
  color: var(--text-dark);
}

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

.studio-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.studio-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.studio-image:hover img {
  transform: scale(1.04);
}

.studio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92, 61, 40, 0.15), transparent 50%);
  pointer-events: none;
}

.studio-content {
  padding-left: 40px;
}

.studio-content .section-label {
  color: var(--accent-primary);
}

.studio-content .section-label::before {
  background: var(--accent-primary);
}

.studio-content .section-title {
  color: var(--text-dark);
}

.studio-text {
  font-size: 1.05rem;
  color: #5a5550;
  line-height: 1.85;
  margin-top: 30px;
}

.studio-text + .studio-text {
  margin-top: 20px;
}

.studio-founder {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
}

.founder-title {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-top: 4px;
}

/* ============================================
   MANSION HERO BANNER 2
   ============================================ */
.mansion-hero-2 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

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

.mansion-hero-2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  transition: transform 10s cubic-bezier(0.25, 1, 0.5, 1);
}

.mansion-hero-2:hover .mansion-hero-2-bg img {
  transform: scale(1.1);
}

.mansion-hero-2-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 12%,
      transparent 88%,
      rgba(0, 0, 0, 0.4) 100%
    );
  pointer-events: none;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
  padding: var(--section-padding) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  position: relative;
  z-index: 1;
}

.step-card {
  text-align: center;
  padding: 50px 30px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--dark-secondary), var(--dark-tertiary));
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.step-card:hover {
  border-color: var(--border-light-hover);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

.step-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 200;
  color: var(--accent-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
  transition: opacity var(--transition-fast);
}

.step-card:hover .step-number {
  opacity: 0.7;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-light);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  padding: var(--section-padding) 0;
  background: var(--dark);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  group: true;
}

.project-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

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

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.2) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

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

.project-category {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

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

.project-location {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  transform: translateY(20px);
  transition: transform var(--transition-medium) 0.05s;
}

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

.project-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(10px, -10px);
  transition: all var(--transition-medium);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.project-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding) 0;
  background: var(--dark-secondary);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.contact-info {
  padding-right: 40px;
}

.contact-info .section-title {
  margin-bottom: 30px;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
  border-color: var(--accent-gold);
  background: rgba(201, 169, 110, 0.1);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-form {
  background: var(--dark-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 50px;
}

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

.form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--dark);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(245, 240, 235, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--accent-gold);
  color: var(--dark);
  border: none;
  border-radius: 10px;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-submit:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.btn-submit:hover::before {
  transform: translateX(100%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 30px;
  background: var(--dark);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-light);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-gold);
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  transition: fill var(--transition-fast);
}

.social-link:hover svg {
  fill: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-gold-light);
}



/* ============================================
   RESPONSIVE DESIGN (Mobile & Modern Devices)
   ============================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .studio-content { padding-left: 0; }

  .studio-image img {
    height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
  }

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

  .project-card:first-child {
    grid-column: span 2;
  }

  /* Always visible overlay and metadata on touch devices */
  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(10, 10, 10, 0.92) 0%,
      rgba(10, 10, 10, 0.4) 55%,
      transparent 100%
    );
  }

  .project-name {
    transform: translateY(0);
  }

  .project-location {
    transform: translateY(0);
  }

  .project-arrow {
    opacity: 1;
    transform: translate(0, 0);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info { padding-right: 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: clamp(60px, 8vw, 90px);
  }

  /* Prevent side wobbling from horizontal animations */
  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }

  .reveal-left.revealed,
  .reveal-right.revealed {
    transform: translateY(0);
  }

  /* Header */
  .header {
    height: calc(var(--header-height) + var(--safe-area-top));
    padding-top: var(--safe-area-top);
  }

  .logo {
    font-size: 1.35rem;
  }

  /* Hero */
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    margin-bottom: 18px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  /* Hide scroll indicator on phones to avoid overlap with hero text */
  .hero-scroll {
    display: none;
  }

  /* Statement Section */
  .statement {
    padding: 60px 0;
  }

  .statement-badge {
    margin-bottom: 18px;
    font-size: 0.7rem;
  }

  .statement-title {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem);
    margin-bottom: 18px;
  }

  .statement-divider {
    margin-bottom: 20px;
  }

  .statement-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  /* Mansion Hero Banners Responsive Heights */
  .mansion-hero {
    height: 52vh;
    min-height: 320px;
    max-height: 480px;
  }

  .mansion-hero-2 {
    height: 56vh;
    min-height: 350px;
    max-height: 520px;
  }

  /* Studio */
  .studio-image img {
    height: 320px;
  }

  .studio-text {
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 20px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card:first-child {
    grid-column: span 1;
    aspect-ratio: 16 / 11;
  }

  .project-card {
    aspect-ratio: 16 / 11;
    border-radius: 12px;
  }

  .project-overlay {
    padding: 22px;
  }

  .project-name {
    font-size: 1.35rem;
  }

  .project-arrow {
    width: 36px;
    height: 36px;
    top: 16px;
    right: 16px;
  }

  .project-arrow svg {
    width: 14px;
    height: 14px;
  }

  /* Contact Form */
  .contact-form {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  /* Prevent auto zoom in iOS Safari */
  .form-input,
  .form-textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .form-textarea {
    min-height: 110px;
  }

  .btn-submit {
    padding: 16px 24px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-bottom: max(calc(var(--safe-area-bottom) + 16px), 24px);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 18px;
    --header-height: 64px;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem);
  }

  .statement-title {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .mansion-hero {
    height: 44vh;
    min-height: 270px;
  }

  .mansion-hero-2 {
    height: 48vh;
    min-height: 290px;
  }

  .studio-image img {
    height: 260px;
  }

  .contact-form {
    padding: 22px 16px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-icon svg {
    width: 16px;
    height: 16px;
  }

  .contact-item-value {
    font-size: 0.92rem;
    word-break: break-word;
  }
}

