/* ===== Aether3D — Luxury 3D Visuals Website ===== */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --bg-card: #161618;
  --bg-card-hover: #1c1c1f;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --accent-hover: #dbb42c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  width: 100%;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0a0a0b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

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

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

.nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 8px 18px !important;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border-radius: 999px;
  font-weight: 500;
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.25);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(10,10,11,0.4) 0%, rgba(10,10,11,0.7) 50%, rgba(10,10,11,0.95) 100%),
    linear-gradient(to right, rgba(10,10,11,0.8) 0%, transparent 60%);
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 24px 120px;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.service-card--featured {
  border-color: rgba(201, 162, 39, 0.25);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-tag {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.975rem;
}

.service-list {
  margin-bottom: 28px;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.services-bundle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(201, 162, 39, 0.02));
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
}

.bundle-content h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.bundle-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bundle-price {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.bundle-price span {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Portfolio ===== */
.portfolio {
  background: var(--bg-elevated);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-soft);
  border-color: rgba(201, 162, 39, 0.3);
  color: var(--accent);
}

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

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-type {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.portfolio-overlay h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

.portfolio-overlay p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.portfolio-note {
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Clients ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s;
}

.client-card:hover {
  border-color: var(--border-strong);
}

.client-num {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.client-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}

.client-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.clients-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.clients-secondary-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.secondary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.secondary-tags span {
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.clients-secondary-note {
  font-size: 0.9375rem;
  color: var(--text-dim);
  max-width: 640px;
}

/* ===== Why ===== */
.why {
  background: var(--bg-elevated);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why-content .section-title {
  margin-bottom: 20px;
}

.why-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why-list strong {
  font-size: 1rem;
  color: var(--text);
}

.why-list span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.why-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.why-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s;
}

.price-card:hover {
  border-color: var(--border-strong);
}

.price-card--popular {
  border-color: rgba(201, 162, 39, 0.4);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, var(--bg-card) 40%);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-tier {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  min-height: 40px;
}

.price-card ul {
  flex: 1;
  margin-bottom: 28px;
}

.price-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.pricing-note {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== Process ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  background: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.0625rem;
}

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

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

.form-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-dim);
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-links a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-disclaimer {
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-bundle {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .hero-content {
    padding: 60px 24px 100px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 72px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .bundle-price {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .bundle-price .btn {
    width: 100%;
  }
}

/* ===== Hero bg image fallback ===== */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ===== Portfolio play button ===== */
.portfolio-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(201, 162, 39, 0.9);
  color: #0a0a0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.25s, background 0.25s;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}

.portfolio-play--3d {
  width: auto;
  height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.portfolio-play--3d svg {
  flex-shrink: 0;
}

.portfolio-item {
  cursor: pointer;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.8);
}

.modal-header {
  padding: 20px 24px 12px;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-body {
  flex: 1;
  min-height: 0;
  padding: 0 24px;
}

.modal-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
  }

  .modal-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 1;
    pointer-events: none;
  }

  .modal-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

.modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal {
    padding: 12px;
  }
  .modal-header {
    padding: 16px 16px 8px;
  }
  .modal-body {
    padding: 0 16px;
  }
  .modal-footer {
    padding: 12px 16px 16px;
  }
  .modal-media {
    aspect-ratio: 4 / 3;
  }
}

/* Lang switch */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.lang-btn.active {
  background: var(--accent);
  color: #0a0a0b;
}
.lang-btn:hover:not(.active) {
  color: var(--text);
}

/* Explore teaser on main */
.explore-teaser {
  padding: 40px 0;
}
.explore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(201,162,39,0.02));
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.explore-banner-text {
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 8px;
  line-height: 1.65;
}

/* Explore page */
.page-explore .header {
  background: rgba(10,10,11,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-active {
  color: var(--accent) !important;
}
.explore-hero {
  padding: 140px 0 60px;
}
.explore-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}
.explore-hero-title span {
  color: var(--text-muted);
}
.explore-hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.pillar-icon {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.pillar-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}
.inspire-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.inspire-item h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}
.inspire-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.example-visual {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.example-card h4 {
  padding: 16px 18px 6px;
  font-size: 1.0625rem;
}
.example-card p {
  padding: 0 18px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.explore-cta-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px;
}
.explore-cta-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.explore-cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}
.explore-cta-box .btn {
    margin: 0 6px 10px;
  }

@media (max-width: 900px) {
  .pillars-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }
  .inspire-list {
    grid-template-columns: 1fr;
  }
}
