:root {
  --af-gold: #fdb913;
  --af-black: #050505;
  --af-charcoal: #0b0b0b;
  --af-ink: #0f1115;
  --af-white: #ffffff;
  --af-muted: rgba(255, 255, 255, 0.7);
  --af-border: rgba(253, 185, 19, 0.3);
  --af-glow: 0 0 40px rgba(253, 185, 19, 0.2);
  --af-radius-lg: 24px;
  --af-radius-md: 16px;
  --af-radius-sm: 12px;
  --af-transition: 200ms ease;
  --af-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--af-font);
  background: var(--af-black);
  color: var(--af-white);
  min-height: 100vh;
  overflow-x: hidden;
}

body.theme-light {
  background: #f6f2e9;
  color: #121212;
}

body.theme-light .bg-af-black,
body.theme-light .bg-af-ink,
body.theme-light .bg-af-charcoal {
  background: #ffffff;
  color: #121212;
}

body.theme-light .section-alt {
  background: #f0ede6;
}

body.theme-light .surface,
body.theme-light .card,
body.theme-light .glass {
  background: #ffffff;
  color: #121212;
  border-color: rgba(12, 12, 12, 0.15);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--af-gold);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--af-charcoal);
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--af-gold);
  font-size: 0.7rem;
  font-weight: 600;
}

.section-heading {
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin: 16px 0;
}

.section-lead {
  color: var(--af-muted);
  max-width: 640px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #0c0c0c;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 32px;
  transition: transform var(--af-transition), border-color var(--af-transition), box-shadow var(--af-transition);
}

.card:hover {
  border-color: var(--af-gold);
  transform: translateY(-4px);
  box-shadow: var(--af-glow);
}

.card-compact {
  padding: 20px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.surface {
  background: #090909;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  padding: 32px;
}

.glass {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--af-border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--af-gold);
  color: var(--af-black);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--af-transition), background var(--af-transition), color var(--af-transition);
}

.btn-primary {
  background: var(--af-gold);
  color: var(--af-black);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ffd463;
}

.btn-outline {
  border-color: var(--af-gold);
  color: var(--af-white);
}

.btn-outline:hover {
  background: var(--af-gold);
  color: var(--af-black);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid rgba(253, 185, 19, 0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo-long {
  height: 64px;
  width: auto;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--af-transition);
  position: relative;
}

.nav-link.active,
.nav-link:hover {
  color: var(--af-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--af-gold);
  border-radius: 999px;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--af-border);
  color: var(--af-white);
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 220px;
  padding: 12px;
  background: var(--af-black);
  border: 1px solid var(--af-gold);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--af-transition);
  z-index: 2000;
}

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

.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--af-gold);
  transition: background var(--af-transition), color var(--af-transition);
}

.dropdown-link:hover {
  background: rgba(253, 185, 19, 0.15);
  color: var(--af-white);
}

.dropdown-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown-desc {
  font-size: 0.75rem;
  color: rgba(253, 185, 19, 0.7);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-dropdown {
  border: 1px solid var(--af-border);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-dropdown summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  background: #0b0b0b;
}

.mobile-dropdown summary::-webkit-details-marker {
  display: none;
}

.mobile-dropdown .dropdown-link {
  padding: 12px 16px;
}

.hero {
  padding-top: 140px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(253, 185, 19, 0.1), transparent 60%),
    linear-gradient(135deg, #050505, #101010 40%, #050505 75%);
  z-index: -2;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(253, 185, 19, 0.15) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  z-index: -1;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--af-white);
}

.contact-form .section-lead {
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--af-border);
  background: #0b0b0b;
  color: inherit;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--af-gold);
  box-shadow: 0 0 0 2px rgba(253, 185, 19, 0.2);
}

.contact-preview {
  margin-top: 20px;
}

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

.metrics {
  margin-top: 40px;
}

.metrics .card {
  text-align: center;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--af-gold);
  width: 0;
  z-index: 1200;
  box-shadow: 0 0 20px rgba(253, 185, 19, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--af-gold);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-transition {
  opacity: 0;
  transition: opacity 350ms ease;
}

.page-transition.loaded {
  opacity: 1;
}

.section-divider {
  height: 1px;
  background: rgba(253, 185, 19, 0.2);
  margin: 40px 0;
}

.command-palette {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--af-transition);
  z-index: 2000;
}

.command-palette.open {
  opacity: 1;
  pointer-events: auto;
}

.command-panel {
  width: min(640px, 90vw);
  background: #0d0d0d;
  border: 1px solid var(--af-border);
  border-radius: 24px;
  padding: 20px;
}

.command-panel input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(253, 185, 19, 0.2);
  background: #050505;
  color: var(--af-white);
  font-size: 1rem;
}

.command-results {
  margin-top: 16px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.command-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(253, 185, 19, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-item:hover {
  border-color: var(--af-gold);
}

.command-kbd {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  border: 1px solid var(--af-border);
  border-radius: 18px;
  padding: 18px;
  background: #0a0a0a;
}

.timeline-item button {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.timeline-content {
  margin-top: 12px;
  color: var(--af-muted);
  display: none;
}

.timeline-item.expanded .timeline-content {
  display: block;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-tag {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--af-border);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--af-transition), color var(--af-transition);
}

.filter-tag.active {
  background: var(--af-gold);
  color: var(--af-black);
}

.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--af-border);
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
}

.gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.gallery-card .card-body {
  padding: 16px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--af-transition);
  z-index: 2200;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(900px, 92vw);
  background: #0b0b0b;
  border-radius: 24px;
  border: 1px solid var(--af-border);
  padding: 20px;
}

.modal-panel img {
  width: 100%;
  border-radius: 16px;
  max-height: 420px;
  object-fit: cover;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.modal-actions button {
  background: transparent;
  border: 1px solid var(--af-border);
  color: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #0b0b0b;
  border: 1px solid var(--af-border);
  padding: 16px 20px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--af-transition);
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}

.footer {
  border-top: 1px solid rgba(253, 185, 19, 0.4);
  padding: 40px 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--af-border);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
  }

  .logo-long {
    height: 52px;
  }

  .modal-panel img {
    max-height: 280px;
  }
}
