/* ============================================================
   LUXURY PORTFOLIO — styles.css
   portfolio.gnexaaa.com | Amirhossein
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0B1929;
  --deep:       #05080D;
  --gold:       #C9A75A;
  --gold-light: #E3C97E;
  --gold-pale:  rgba(201,167,90,0.12);
  --white:      #FFFFFF;
  --muted:      #AEB8C7;
  --border:     rgba(201,167,90,0.22);
  --card-bg:    rgba(11,25,41,0.72);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Montserrat', 'Inter', sans-serif;

  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-slow:  0.7s var(--ease-luxury);
  --trans-med:   0.4s var(--ease-luxury);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent any child from causing horizontal scroll */
  max-width: 100%;
}
body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* RTL support */
[dir="rtl"] {
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', var(--font-sans);
}
[dir="rtl"] .nav__links { flex-direction: row-reverse; }
[dir="rtl"] .hero__cta-group { flex-direction: row-reverse; }
[dir="rtl"] .about__content { text-align: right; }
[dir="rtl"] .contact__meta { text-align: right; }

/* ────────────────────────────────────────────
   NAVIGATION
──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: transparent;
  transition: background var(--trans-med), backdrop-filter var(--trans-med), border-color var(--trans-med);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,8,13,0.88);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.nav__logo span {
  color: var(--white);
  font-weight: 300;
  font-style: italic;
}
.nav__links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--trans-med);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--trans-med);
}
.nav__links a:hover { color: var(--gold-light); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 2rem;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  transition: all var(--trans-med);
}
.lang-btn:hover,
.lang-btn.active {
  color: var(--gold);
  border-color: var(--border);
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--muted);
  transition: all var(--trans-med);
}

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,167,90,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(11,25,41,0.95) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 50%, rgba(10,20,40,0.8) 0%, transparent 70%),
    linear-gradient(160deg, #02040a 0%, #0B1929 45%, #071422 75%, #02040a 100%);
}

/* Subtle perspective grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,167,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,167,90,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 100%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, black 0%, transparent 70%);
  pointer-events: none;
}

/* Floating light orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,167,90,0.09) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation-delay: 0s; animation-duration: 14s;
  opacity: 1;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(11,60,120,0.18) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -5s; animation-duration: 18s;
  opacity: 1;
}
.hero__orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,167,90,0.06) 0%, transparent 70%);
  top: 30%; right: 15%;
  animation-delay: -9s; animation-duration: 22s;
  opacity: 1;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.08); }
  66%       { transform: translate(-20px, 25px) scale(0.95); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,8,13,0.3) 0%,
    rgba(5,8,13,0.05) 40%,
    rgba(5,8,13,0.65) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-luxury) 0.3s forwards;
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-luxury) 0.55s forwards;
}
.hero__name em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__tagline {
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-luxury) 0.8s forwards;
}
.hero__tagline .dot { color: var(--gold); margin: 0 0.6em; }
.hero__cta-group {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-luxury) 1.05s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  background: var(--gold);
  color: var(--deep);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--trans-med);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-luxury);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,167,90,0.3); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.4rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--trans-med);
}
.btn-ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-luxury) 1.6s forwards;
}
.hero__scroll-cue span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ────────────────────────────────────────────
   SECTION COMMON
──────────────────────────────────────────── */
section { padding: 7rem 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}
.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.gold-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 3rem;
}
[dir="rtl"] .gold-divider {
  background: linear-gradient(to left, var(--gold), transparent);
  margin-left: auto;
  margin-right: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-luxury), transform 0.85s var(--ease-luxury);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ────────────────────────────────────────────
   ABOUT
──────────────────────────────────────────── */
.about {
  background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden; /* clip decorative radial */
}
.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,167,90,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 6rem;
  align-items: start;
}
.about__meta {
  padding-top: 0.5rem;
}
.about__stat {
  margin-bottom: 2.5rem;
}
.about__stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.about__stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__divider-v {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: 1.5rem 0;
}
.about__content p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.about__content p strong {
  color: var(--white);
  font-weight: 500;
}
.about__langs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about__lang-tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ────────────────────────────────────────────
   WHAT I DO
──────────────────────────────────────────── */
.services {
  background: var(--deep);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(100% / 3 - 1px),
    rgba(201,167,90,0.04) calc(100% / 3 - 1px),
    rgba(201,167,90,0.04) calc(100% / 3)
  );
  pointer-events: none;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.service-card {
  background: var(--deep);
  padding: 3.5rem 2.8rem;
  position: relative;
  overflow: hidden;
  transition: background var(--trans-med);
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--trans-slow);
}
.service-card:hover { background: rgba(11,25,41,0.7); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 2rem;
  color: var(--gold);
}
.service-card__number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  color: rgba(201,167,90,0.07);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  line-height: 1;
  user-select: none;
}
.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.service-card__text {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}
.service-card__list {
  list-style: none;
  margin-top: 1.2rem;
}
.service-card__list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}
[dir="rtl"] .service-card__list li {
  padding-left: 0;
  padding-right: 1rem;
}
[dir="rtl"] .service-card__list li::before {
  left: auto;
  right: 0;
}

/* ────────────────────────────────────────────
   SELECTED WORK (Instagram Reels)
──────────────────────────────────────────── */
.work {
  background: linear-gradient(180deg, var(--deep) 0%, #060f1c 100%);
  position: relative;
}
.work__intro {
  max-width: 560px;
  margin-bottom: 4rem;
}
.work__intro p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

.work__featured {
  margin-bottom: 3.5rem;
}
.work__featured-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* The reel card wrapper */
.reel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color var(--trans-med), transform var(--trans-med), box-shadow var(--trans-med);
  display: flex;
  flex-direction: column;
}
.reel-card:hover {
  border-color: rgba(201,167,90,0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.reel-card.featured {
  border-color: rgba(201,167,90,0.35);
  position: relative;
}
.reel-card.featured::before {
  content: '★ FEATURED';
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 10;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--deep);
  background: var(--gold);
  padding: 0.25rem 0.65rem;
}

.reel-card__header {
  padding: 1.2rem 1.4rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.reel-card__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.reel-card__caption {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}
.reel-card__embed {
  flex: 1;
  position: relative;
  background: #000;
  min-height: 420px;
}
.reel-card__embed .instagram-media {
  background: #000 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: unset !important;
  width: 100% !important;
}
.reel-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(5,8,13,0.9);
  padding: 2rem;
  text-align: center;
}
.reel-card__fallback svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.6;
}
.reel-card__fallback a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--trans-med);
}
.reel-card__fallback a:hover { color: var(--gold-light); }

/* Featured reel spans full width on the work section */
.reel-card.featured-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 340px 1fr;
}
.reel-card.featured-hero .reel-card__header {
  border-bottom: none;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.reel-card.featured-hero .reel-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.reel-card.featured-hero .reel-card__caption {
  font-size: 0.88rem;
  line-height: 1.7;
}
.reel-card.featured-hero .reel-card__embed {
  min-height: 560px;
}

/* ────────────────────────────────────────────
   PROJECTS & LIVE PAGES
──────────────────────────────────────────── */
.projects {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.projects::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 4rem;
}
.project-card {
  background: rgba(5,8,13,0.6);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--trans-med), transform var(--trans-med), box-shadow var(--trans-med);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(201,167,90,0.5);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
.project-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--deep);
  display: block;
  transition: transform 0.8s var(--ease-luxury);
  overflow: hidden;
}
.project-card:hover .project-card__thumb img {
  transform: scale(1.04);
}
.project-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0b1929 0%, #05080d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.project-card__thumb-placeholder span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.05em;
}
.project-card__thumb-placeholder svg {
  width: 28px;
  height: 28px;
  color: rgba(201,167,90,0.3);
}
.project-card__body {
  padding: 1.5rem 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.project-card__type {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-card__badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--gold);
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}
.project-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.project-card__desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.4rem;
}
.project-card__btn {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--trans-med), border-color var(--trans-med);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.project-card__btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}
.project-card__btn svg {
  width: 12px;
  height: 12px;
  transition: transform var(--trans-med);
}
.project-card__btn:hover svg { transform: translate(3px, -3px); }

/* ────────────────────────────────────────────
   TOOLS & STACK
──────────────────────────────────────────── */
.tools {
  background: var(--deep);
  position: relative;
}
.tools__groups {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.tools__group-label {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.tools__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tool-pill {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(11,25,41,0.4);
  transition: all var(--trans-med);
  cursor: default;
  white-space: nowrap;
}
.tool-pill:hover {
  color: var(--gold-light);
  border-color: rgba(201,167,90,0.5);
  background: var(--gold-pale);
}
.tools__sep {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ────────────────────────────────────────────
   CONTACT
──────────────────────────────────────────── */
.contact {
  background: linear-gradient(180deg, #060f1c 0%, var(--deep) 100%);
  position: relative;
  overflow: hidden; /* clip the 900px decorative radial */
}
.contact::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201,167,90,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.contact__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact__headline em { font-style: italic; color: var(--gold-light); }
.contact__sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 400px;
}
.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__item-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__item-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact__item-value {
  font-size: 0.92rem;
  color: var(--white);
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact__item-value a {
  transition: color var(--trans-med);
}
.contact__item-value a:hover { color: var(--gold-light); }
.contact__ctas {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__left {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__left strong { color: var(--gold); font-weight: 400; }
.footer__handles {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.footer__handle {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--trans-med);
}
.footer__handle:hover { color: var(--gold); }
.footer__handle svg { width: 14px; height: 14px; }

/* ────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
/* ── Instagram embed: prevent iframe from overflowing on mobile ── */
.reel-card__embed iframe,
.reel-card__embed .instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .nav { padding: 1.25rem 2.5rem; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .reel-card.featured-hero {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .reel-card.featured-hero .reel-card__header {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem;
  }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__meta { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }
  .about__divider-v { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,8,13,0.97);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav__links.open a { font-size: 1.1rem; }
  .nav__hamburger { display: flex; z-index: 1001; }
  .lang-switcher { margin-left: 0; }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.2rem; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }

  /* Hero */
  .hero__name { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero__tagline {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    word-break: break-word;
  }
  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }

  /* Hero orbs — static on mobile so animation doesn't push content beyond viewport */
  .hero__orb--1 { width: 260px; height: 260px; top: -60px; left: -50px; animation: none; }
  .hero__orb--2 { width: 220px; height: 220px; bottom: -60px; right: 10px; animation: none; }
  .hero__orb--3 { display: none; }

  /* About */
  .about__meta { flex-direction: column; gap: 1.2rem; align-items: flex-start; }
  .about__stat-number { font-size: 2.2rem; }

  /* Work */
  .work__grid { grid-template-columns: 1fr; }
  .reel-card.featured-hero { grid-template-columns: 1fr; }
  .reel-card.featured-hero .reel-card__embed { min-height: 380px; }
  .reel-card__embed { min-height: 340px; overflow: hidden; }

  /* Projects */
  .projects__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__headline { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .contact__sub { max-width: 100%; }
  .contact__ctas { flex-direction: column; align-items: stretch; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer__handles { flex-wrap: wrap; gap: 1rem; }
  .footer__left { font-size: 0.8rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero__name { font-size: 2rem; }
  .hero__tagline { font-size: 0.6rem; letter-spacing: 0.08em; }
  .hero__orb--1 { width: 200px; height: 200px; left: -50px; }
  .hero__orb--2 { width: 180px; height: 180px; right: 0; }
  .projects__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .service-card { padding: 2.5rem 1.5rem; }
}
