/* ═══════════════════════════════════════════════════
   AJ ARCHITECTS – Main Stylesheet
   Dark gallery aesthetic, image-first architecture
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Runtime Theming) ── */
:root,
[data-theme="dark"] {
  --color-bg: #080808;
  --color-bg-elevated: #111111;
  --color-bg-surface: #1a1a1a;
  --color-bg-overlay: rgba(0, 0, 0, 0.72);
  --color-bg-glass: rgba(8, 8, 8, 0.85);
  --color-text: #f5f5f5;
  --color-text-body: #cccccc;
  --color-text-muted: #888888;
  --color-text-dim: #555555;
  --color-accent: #c9a96e;
  --color-accent-subtle: rgba(201, 169, 110, 0.15);
  --color-border: #1f1f1f;
  --color-border-hover: #333333;
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --header-height: 72px;
  --container-max: 1440px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);
  --grid-gap: clamp(1rem, 2vw, 2rem);
  --transition-fast: 200ms ease;
  --transition-base: 350ms ease;
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

[data-theme="light"] {
  --color-bg: #f8f7f4;
  --color-bg-elevated: #ffffff;
  --color-bg-surface: #eeede9;
  --color-bg-overlay: rgba(255, 255, 255, 0.72);
  --color-bg-glass: rgba(248, 247, 244, 0.85);
  --color-text: #1a1a1a;
  --color-text-body: #444444;
  --color-text-muted: #777777;
  --color-text-dim: #999999;
  --color-accent: #a07d3f;
  --color-accent-subtle: rgba(160, 125, 63, 0.1);
  --color-border: #e0dfd8;
  --color-border-hover: #c8c7c0;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.is-loading {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.2;
}

.aj-display {
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1, .aj-h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); letter-spacing: -0.02em; }
h2, .aj-h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3, .aj-h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.aj-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.aj-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.aj-caption {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Layout ── */
.aj-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.aj-section {
  padding: clamp(4rem, 8vw, 10rem) 0;
}

.aj-grid {
  display: grid;
  gap: var(--grid-gap);
}

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

@media (max-width: 1024px) {
  .aj-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .aj-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .aj-grid--4,
  .aj-grid--3,
  .aj-grid--2 { grid-template-columns: 1fr; }
}

/* ── Header ── */
.aj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out-expo), background-color 0.4s ease;
}

.aj-header.is-hidden {
  transform: translateY(-100%);
}

.aj-header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.aj-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.aj-header__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.aj-header__link:hover,
.aj-header__link.is-active {
  color: var(--color-text);
}

.aj-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aj-header__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.aj-header__btn:hover {
  color: var(--color-text);
}

/* Mobile nav */
.aj-mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .aj-header__nav {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-in-out-quart);
    z-index: 200;
  }

  .aj-header__nav.is-open {
    transform: translateX(0);
  }

  .aj-header__nav .aj-header__link {
    font-size: 1.5rem;
  }

  .aj-mobile-toggle {
    display: flex;
    z-index: 201;
  }
}

/* ── Preloader ── */
.aj-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-preloader__inner {
  text-align: center;
}

.aj-preloader .aj-logo-draw {
  width: 200px;
  height: auto;
}

.aj-preloader__bar {
  width: 120px;
  height: 1px;
  background: var(--color-accent);
  margin: 24px auto 0;
  transform-origin: left;
  transform: scaleX(0);
}

/* ── Homepage Carousel ── */
.aj-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  background: var(--color-bg);
}

.aj-carousel-main {
  height: 100%;
  width: 100%;
}

.aj-carousel-main .swiper-slide {
  position: relative;
  overflow: hidden;
}

.aj-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aj-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aj-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.5) 80%,
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
}

.aj-carousel__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 var(--container-padding) 120px;
  z-index: 10;
}

.aj-carousel__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.aj-carousel__meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.aj-carousel__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.aj-title-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 1rem 0;
  transform-origin: left;
}

/* Carousel navigation */
.aj-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.aj-carousel-nav:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.aj-nav-prev { left: var(--container-padding); }
.aj-nav-next { right: var(--container-padding); }

/* Thumbnail strip */
.aj-carousel-thumbs-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px var(--container-padding);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  z-index: 15;
}

.aj-carousel-thumbs {
  max-width: 600px;
}

.aj-carousel-thumbs .swiper-slide {
  width: 80px;
  height: 60px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.aj-carousel-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

.aj-carousel-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Footer Stats Bar ── */
.aj-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.aj-stat {
  text-align: center;
}

.aj-stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.aj-stat__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── Project Cards (Portfolio Grid) ── */
.aj-project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.aj-project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.aj-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.aj-project-card:hover .aj-project-card__image img {
  transform: scale(1.05);
}

.aj-project-card__hover-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.aj-project-card__info {
  padding: 1rem 0;
}

.aj-project-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.aj-project-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
}

/* ── Filter Bar ── */
.aj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.aj-filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: transparent;
  transition: all var(--transition-fast);
}

.aj-filter-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.aj-filter-btn.active {
  color: var(--color-bg);
  background: var(--color-text);
  border-color: var(--color-text);
}

/* ── Lightbox ── */
.aj-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.aj-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.aj-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  transition: color var(--transition-fast);
}

.aj-lightbox__close:hover {
  color: #ffffff;
}

.aj-lightbox-swiper {
  width: 90vw;
  height: 85vh;
}

.aj-lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.aj-lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* ── Team Cards ── */
.aj-team-card {
  text-align: center;
}

.aj-team-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1rem;
}

.aj-team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s ease, transform 0.6s var(--ease-out-expo);
}

.aj-team-card:hover .aj-team-card__image img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.aj-team-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.aj-team-card__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ── Contact Form ── */
.aj-form {
  display: grid;
  gap: 1.5rem;
}

.aj-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .aj-form__row { grid-template-columns: 1fr; }
}

.aj-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aj-form__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aj-form__input,
.aj-form__select,
.aj-form__textarea {
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: border-color var(--transition-fast);
  outline: none;
}

.aj-form__input:focus,
.aj-form__select:focus,
.aj-form__textarea:focus {
  border-color: var(--color-accent);
}

.aj-form__textarea {
  resize: vertical;
  min-height: 150px;
}

.aj-form__error {
  font-size: 0.8125rem;
  color: #e74c3c;
}

.aj-form__success {
  padding: 1rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 2px;
  font-size: 0.9375rem;
}

/* ── Buttons ── */
.aj-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  background: transparent;
  overflow: hidden;
  transition: color 0.3s ease;
  cursor: pointer;
}

.aj-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.aj-btn:hover {
  color: var(--color-bg);
}

.aj-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.aj-btn span,
.aj-btn svg {
  position: relative;
  z-index: 1;
}

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

.aj-btn--accent::before {
  background: var(--color-accent);
}

/* ── Hover Effects ── */
.hover-line {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
}

/* ── Image Reveal ── */
[data-reveal-image] {
  overflow: hidden;
  will-change: clip-path;
}

[data-reveal-image] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ── Search Overlay ── */
.aj-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.aj-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.aj-search-overlay__input {
  width: 60%;
  max-width: 800px;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  outline: none;
  transition: border-color var(--transition-fast);
}

.aj-search-overlay__input:focus {
  border-bottom-color: var(--color-accent);
}

.aj-search-overlay__input::placeholder {
  color: var(--color-text-dim);
}

.aj-search-results {
  width: 60%;
  max-width: 800px;
  margin-top: 2rem;
}

/* ── Footer ── */
.aj-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  background: var(--color-bg);
}

.aj-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .aj-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.aj-footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.aj-footer__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.aj-footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.aj-footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.aj-footer__link:hover {
  color: var(--color-text);
}

.aj-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.aj-footer__social {
  display: flex;
  gap: 1rem;
}

.aj-footer__social a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.aj-footer__social a:hover {
  color: var(--color-accent);
}

/* ── Page Hero (non-homepage) ── */
.aj-page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: var(--header-height) var(--container-padding) 4rem;
}

.aj-page-hero--full {
  min-height: 70vh;
}

.aj-page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.aj-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aj-page-hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

/* ── Utility classes ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aj-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.aj-spacer--sm { height: 2rem; }
.aj-spacer--md { height: 4rem; }
.aj-spacer--lg { height: 8rem; }

/* ── Barba transition wrapper ── */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.4s ease;
}

/* ====================================================================
   ADDITIONAL COMPONENT STYLES
   Missing class definitions for template elements
   ==================================================================== */

/* ── Header Extended ── */
.aj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.aj-header__logo a {
  text-decoration: none;
  color: var(--color-text);
}

.aj-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .aj-header__nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
}

.aj-header__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.aj-header__menu li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  position: relative;
}

.aj-header__menu li a:hover,
.aj-header__menu li.current-menu-item a {
  color: var(--color-text);
}

.aj-header__menu li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.aj-header__menu li a:hover::after,
.aj-header__menu li.current-menu-item a::after {
  width: 100%;
}

.aj-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aj-header__action-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s;
}

.aj-header__action-btn:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.05);
}

.aj-header__mobile-toggle {
  display: flex;
}

@media (min-width: 1024px) {
  .aj-header__mobile-toggle {
    display: none;
  }
}

.aj-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.aj-hamburger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.aj-header__mobile-toggle.is-active .aj-hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.aj-header__mobile-toggle.is-active .aj-hamburger__line:nth-child(2) {
  opacity: 0;
}

.aj-header__mobile-toggle.is-active .aj-hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Nav Overlay */
.aj-header__nav.is-active {
  display: flex;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.aj-header__nav.is-active .aj-header__menu {
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.aj-header__nav.is-active .aj-header__menu li a {
  font-size: 1.5rem;
}

/* ── Carousel Extended ── */
.aj-hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.aj-carousel-main {
  height: 100%;
  width: 100%;
}

.aj-carousel-main .swiper-slide {
  position: relative;
  overflow: hidden;
}

.aj-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.aj-carousel-nav__prev,
.aj-carousel-nav__next {
  pointer-events: auto;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.aj-carousel-nav__prev:hover,
.aj-carousel-nav__next:hover {
  background: rgba(0,0,0,0.6);
  border-color: var(--color-accent);
}

/* Override Swiper default nav styling */
.aj-carousel-nav__prev.swiper-button-prev::after,
.aj-carousel-nav__next.swiper-button-next::after {
  display: none;
}

.aj-carousel-pagination {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.aj-carousel-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  z-index: 2;
}

.aj-carousel-slide__content {
  position: absolute;
  bottom: 6rem;
  left: 2rem;
  right: 2rem;
  z-index: 3;
  color: #fff;
}

@media (min-width: 768px) {
  .aj-carousel-slide__content {
    left: 4rem;
    right: 4rem;
    bottom: 8rem;
  }
}

.aj-carousel-slide__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.aj-carousel-slide__text {
  max-width: 600px;
}

.aj-carousel-slide__image {
  position: absolute;
  inset: 0;
}

.aj-carousel-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aj-carousel-slide__location,
.aj-carousel-slide__year {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.aj-carousel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.aj-carousel-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.aj-carousel-underline {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 1rem;
}

/* Thumbs Strip */
.aj-carousel-thumbs {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 70px;
  height: 300px;
}

@media (max-width: 768px) {
  .aj-carousel-thumbs {
    display: none;
  }
}

.aj-carousel-thumbs__slide {
  width: 70px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
}

.aj-carousel-thumbs__slide.swiper-slide-thumb-active {
  opacity: 1;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.aj-carousel-thumbs__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aj-hero-carousel__empty {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
}

/* ── Project Card Extended ── */
.aj-project-card__inner {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.aj-project-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.aj-project-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.aj-project-card:hover .aj-project-card__img {
  transform: scale(1.05);
}

.aj-project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.aj-project-card:hover .aj-project-card__overlay {
  opacity: 1;
}

.aj-project-card__overlay-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

.aj-project-card:hover .aj-project-card__overlay-content {
  transform: translateY(0);
  opacity: 1;
}

.aj-project-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

/* ── Project Detail ── */
.aj-project-hero {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

.aj-project-hero__image {
  width: 100%;
  margin: 0;
}

.aj-project-hero__image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

.aj-project-header {
  padding-top: 3rem;
}

.aj-project-header__category {
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.aj-project-header__location {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.aj-project-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .aj-project-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

.aj-project-meta__item {
  min-width: 120px;
}

.aj-project-meta__item .aj-overline {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.aj-project-narrative {
  border-top: 1px solid var(--color-border);
}

.aj-project-narrative__content {
  max-width: 650px;
}

.aj-project-body__content {
  max-width: 800px;
  margin: 0 auto;
}

.aj-project-body__content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
}

.aj-project-credits {
  border-top: 1px solid var(--color-border);
}

.aj-credits-grid {
  margin-top: 2rem;
}

.aj-credit-item .aj-overline {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.aj-related-projects {
  border-top: 1px solid var(--color-border);
}

.aj-related-grid {
  margin-top: 2rem;
}

/* ── Gallery Extended ── */
.aj-gallery {
  position: relative;
}

.aj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .aj-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.aj-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
}

.aj-gallery-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.aj-gallery-item:hover .aj-gallery-item__img {
  transform: scale(1.05);
}

.aj-gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aj-gallery-tabs {
  margin-bottom: 2rem;
}

.aj-gallery-tabs__nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.aj-gallery-tabs__btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.aj-gallery-tabs__btn:hover,
.aj-gallery-tabs__btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Lightbox */
.aj-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}

.aj-gallery-lightbox.is-active {
  display: flex;
}

.aj-lightbox-swiper {
  width: 90%;
  height: 90%;
}

.aj-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.aj-lightbox-pagination {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.aj-lightbox-next,
.aj-lightbox-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-prev { left: 1rem; }
.aj-lightbox-next { right: 1rem; }

/* ── Team Extended ── */
.aj-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .aj-team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.aj-team-card__inner {
  display: block;
}

.aj-team-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.aj-team-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}

.aj-team-card__content {
  padding-top: 1rem;
}

/* ── Form Extended ── */
.aj-form__group {
  margin-bottom: 1.5rem;
}

.aj-form__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.aj-form__input,
.aj-form__select,
.aj-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.aj-form__input:focus,
.aj-form__select:focus,
.aj-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.aj-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.aj-form__select {
  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 d='M3 5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.aj-form__error {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.aj-form__success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #27ae60;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
}

/* ── News Section ── */
.aj-news-section .aj-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.aj-news-card {
  overflow: hidden;
}

.aj-news-card__image {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.aj-news-card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.6s;
}

.aj-news-card:hover .aj-news-card__image img {
  transform: scale(1.05);
}

.aj-news-card__content .aj-caption {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.aj-news-card__content .aj-h3 a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s;
}

.aj-news-card__content .aj-h3 a:hover {
  color: var(--color-accent);
}

/* ── Stats Extended ── */
.aj-stats-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.aj-stats-bar--large {
  display: flex;
  justify-content: center;
  gap: 4rem;
  text-align: center;
}

.aj-stat--large .aj-stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.aj-stat--large .aj-stat__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

/* ── Footer Extended ── */
.aj-footer__grid {
  padding: 4rem 0;
}

.aj-footer__desc {
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.aj-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aj-footer__menu li {
  margin-bottom: 0.75rem;
}

.aj-footer__menu li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.aj-footer__menu li a:hover {
  color: var(--color-text);
}

.aj-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aj-footer__contact-list li {
  margin-bottom: 0.75rem;
}

.aj-footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.aj-footer__social a {
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.aj-footer__social a:hover {
  color: var(--color-accent);
}

.aj-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

/* ── Search Overlay Extended ── */
.aj-search-loading {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
}

.aj-search-error {
  text-align: center;
  color: #e74c3c;
  padding: 2rem;
}

.aj-search-no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
}

.aj-search-section {
  margin-bottom: 2rem;
}

.aj-search-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.aj-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aj-search-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.aj-search-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s;
}

.aj-search-link:hover {
  color: var(--color-accent);
}

.aj-search-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.aj-search-item-excerpt,
.aj-search-item-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Filter Bar Extended ── */
.aj-filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── Divider ── */
.aj-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

/* ── Overline Typography ── */
.aj-overline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ── Button Variants ── */
.aj-btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ── Link Styles ── */
.aj-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.aj-link:hover {
  color: var(--color-accent);
}

.aj-link--social {
  display: flex;
  align-items: center;
}

/* ── Page Hero (for archive/inner pages) ── */
.aj-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.aj-page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 600px;
}

/* ── Portfolio Grid ── */
.aj-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

/* ── No Results ── */
.aj-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE – Full-Screen Image Gallery
   Ken Burns animations, auto-advancing slides
   ═══════════════════════════════════════════════════ */

/* Fullscreen body for homepage */
body.home-fullscreen {
  overflow: hidden;
}

/* Transparent header on homepage */
.aj-header--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.aj-header--transparent .aj-header__menu li a {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.aj-header--transparent .aj-header__menu li a:hover,
.aj-header--transparent .aj-header__menu li.current-menu-item a {
  color: #fff;
}

.aj-header--transparent .aj-header__logo a,
.aj-header--transparent .aj-header__logo .aj-h3 {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.aj-header--transparent .aj-header__action-btn,
.aj-header--transparent .aj-hamburger__line {
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Main gallery wrapper */
.aj-home-gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.aj-home-gallery__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.aj-home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
}

.aj-home-slide--active {
  opacity: 1;
  z-index: 2;
}

/* Slide image */
.aj-home-slide__image {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
}

.aj-home-slide__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Dark overlay gradient — stronger at top for nav readability */
.aj-home-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 15%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.4) 75%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Slide text overlay */
.aj-home-slide__info {
  position: absolute;
  bottom: 100px;
  left: var(--container-padding);
  z-index: 5;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.aj-home-slide--active .aj-home-slide__info {
  opacity: 1;
  transform: translateY(0);
}

.aj-home-slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.aj-home-slide__location {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Slide counter */
.aj-home-gallery__counter {
  position: fixed;
  bottom: 40px;
  right: var(--container-padding);
  z-index: 20;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.aj-home-gallery__current {
  color: #fff;
  font-weight: 500;
}

/* Progress bar */
.aj-home-gallery__progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 20;
}

.aj-home-gallery__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: none;
}

.aj-home-gallery__progress-bar.is-animating {
  transition: width linear;
}

/* Empty state */
.aj-home-gallery__empty {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text-muted);
}

/* Copyright bar */
.aj-home-copyright {
  position: fixed;
  bottom: 14px;
  left: var(--container-padding);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.aj-home-copyright__dev {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s;
}

.aj-home-copyright__dev:hover {
  color: var(--color-accent);
}

/* ── Ken Burns Keyframe Animations ── */
.aj-home-slide--active .aj-home-slide__image {
  animation-duration: 8s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.aj-home-slide--active[data-animation="zoom-in"] .aj-home-slide__image {
  animation-name: kenburns-zoom-in;
}

.aj-home-slide--active[data-animation="zoom-out"] .aj-home-slide__image {
  animation-name: kenburns-zoom-out;
}

.aj-home-slide--active[data-animation="pan-left"] .aj-home-slide__image {
  animation-name: kenburns-pan-left;
}

.aj-home-slide--active[data-animation="pan-right"] .aj-home-slide__image {
  animation-name: kenburns-pan-right;
}

.aj-home-slide--active[data-animation="pan-up"] .aj-home-slide__image {
  animation-name: kenburns-pan-up;
}

.aj-home-slide--active[data-animation="pan-down"] .aj-home-slide__image {
  animation-name: kenburns-pan-down;
}

@keyframes kenburns-zoom-in {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

@keyframes kenburns-zoom-out {
  0% { transform: scale(1.15) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes kenburns-pan-left {
  0% { transform: scale(1.05) translate(3%, 0); }
  100% { transform: scale(1.08) translate(-3%, 0); }
}

@keyframes kenburns-pan-right {
  0% { transform: scale(1.05) translate(-3%, 0); }
  100% { transform: scale(1.08) translate(3%, 0); }
}

@keyframes kenburns-pan-up {
  0% { transform: scale(1.05) translate(0, 3%); }
  100% { transform: scale(1.08) translate(0, -3%); }
}

@keyframes kenburns-pan-down {
  0% { transform: scale(1.05) translate(0, -3%); }
  100% { transform: scale(1.08) translate(0, 3%); }
}

/* ── 4-Directional Arrow Navigation ── */
.aj-home-nav {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.aj-home-nav__btn {
  pointer-events: auto;
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.aj-home-nav__btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  opacity: 1;
  transform: scale(1.1);
}

.aj-home-nav__btn:active {
  transform: scale(0.92);
  opacity: 1;
}

.aj-home-nav__btn svg {
  width: 20px;
  height: 20px;
}

/* Arrow positions */
.aj-home-nav__btn--up {
  top: calc(var(--header-height) + 24px);
  left: 50%;
  transform: translateX(-50%);
}
.aj-home-nav__btn--up:hover { transform: translateX(-50%) scale(1.1); }
.aj-home-nav__btn--up:active { transform: translateX(-50%) scale(0.92); }

.aj-home-nav__btn--down {
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
}
.aj-home-nav__btn--down:hover { transform: translateX(-50%) scale(1.1); }
.aj-home-nav__btn--down:active { transform: translateX(-50%) scale(0.92); }

.aj-home-nav__btn--left {
  left: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
}
.aj-home-nav__btn--left:hover { transform: translateY(-50%) scale(1.1); }
.aj-home-nav__btn--left:active { transform: translateY(-50%) scale(0.92); }

.aj-home-nav__btn--right {
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
}
.aj-home-nav__btn--right:hover { transform: translateY(-50%) scale(1.1); }
.aj-home-nav__btn--right:active { transform: translateY(-50%) scale(0.92); }

/* ── Directional Slide Transitions ── */
/* Default: crossfade (for auto-advance) */
.aj-home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease-in-out, transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  transform: translate(0, 0);
}

.aj-home-slide--active {
  opacity: 1;
  z-index: 2;
  transform: translate(0, 0);
}

/* Outgoing slide: push away in direction */
.aj-home-slide--exit-left   { transform: translate(-100%, 0); opacity: 0; z-index: 3; }
.aj-home-slide--exit-right  { transform: translate(100%, 0);  opacity: 0; z-index: 3; }
.aj-home-slide--exit-up     { transform: translate(0, -100%); opacity: 0; z-index: 3; }
.aj-home-slide--exit-down   { transform: translate(0, 100%);  opacity: 0; z-index: 3; }

/* Incoming slide: enter from opposite direction */
.aj-home-slide--enter-from-left  { transform: translate(-100%, 0); opacity: 1; }
.aj-home-slide--enter-from-right { transform: translate(100%, 0);  opacity: 1; }
.aj-home-slide--enter-from-up    { transform: translate(0, -100%); opacity: 1; }
.aj-home-slide--enter-from-down  { transform: translate(0, 100%);  opacity: 1; }

/* Mobile adjustments for homepage */
@media (max-width: 768px) {
  .aj-home-slide__info {
    bottom: 80px;
    left: 1.5rem;
    right: 1.5rem;
  }

  .aj-home-gallery__counter {
    right: 1.5rem;
    bottom: 30px;
  }

  .aj-home-copyright {
    left: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    bottom: 10px;
    font-size: 0.625rem;
  }

  .aj-home-nav__btn {
    width: 40px;
    height: 40px;
  }

  .aj-home-nav__btn svg {
    width: 16px;
    height: 16px;
  }

  .aj-home-nav__btn--left { left: 1rem; }
  .aj-home-nav__btn--right { right: 1rem; }
  .aj-home-nav__btn--up { top: calc(var(--header-height) + 16px); }
  .aj-home-nav__btn--down { bottom: 48px; }
}

/* ═══════════════════════════════════════════════════
   PHASE 1 & 2 COMPLETION – Additional Page Styles
   About, Contact, Privacy, 404, Team Detail, Forms
   ═══════════════════════════════════════════════════ */

/* ── About Page ── */
.aj-about-content {
  padding-top: 2rem;
}

.aj-about-text {
  max-width: 650px;
}

.aj-about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.aj-about-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
}

.aj-about-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.aj-philosophy {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.aj-philosophy__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.aj-philosophy__content .aj-h2 {
  margin-bottom: 1.5rem;
}

.aj-philosophy__content .aj-body-lg {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.aj-culture-grid {
  margin-top: 2rem;
}

.aj-culture-item {
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
}

.aj-culture-item__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.aj-culture-item:hover .aj-culture-item__img {
  transform: scale(1.05);
}

.aj-stats-section {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
}

.aj-stats-bar--large {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.aj-stat--large {
  text-align: center;
}

.aj-stat--large .aj-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.aj-stat--large .aj-stat__label {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ── Team Hero (Single Team Member) ── */
.aj-team-hero {
  padding-top: calc(var(--header-height) + 2rem);
}

.aj-team-hero__image {
  overflow: hidden;
  border-radius: 4px;
}

.aj-team-hero__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
}

.aj-team-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.aj-team-hero__title {
  color: var(--color-accent);
  font-weight: 400;
}

.aj-team-hero__bio {
  color: var(--color-text-body);
  line-height: 1.8;
}

.aj-team-hero__bio p {
  margin-bottom: 1rem;
}

.aj-team-hero__education {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.aj-team-hero__social {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.aj-team-social {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 0.75rem;
}

.aj-team-social li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.aj-team-social li a:hover {
  color: var(--color-accent);
}

.aj-team-card {
  position: relative;
}

.aj-team-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.aj-team-card__role {
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ── Contact Page ── */
.aj-contact-main {
  padding-top: 0;
}

.aj-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.aj-contact-info__item h3 {
  margin-bottom: 0.75rem;
}

.aj-contact-info__item address {
  font-style: normal;
  color: var(--color-text-body);
  line-height: 1.7;
}

.aj-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aj-contact-social {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aj-contact-social a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.aj-map-container {
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.aj-map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Contact Form Field Styles ── */
/* Matches template class names: aj-form-input, aj-form-textarea, aj-form-select */
.aj-form-group {
  margin-bottom: 1.5rem;
}

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

.aj-required {
  color: var(--color-accent);
}

.aj-form-input,
.aj-form-select,
.aj-form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aj-form-input:focus,
.aj-form-select:focus,
.aj-form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

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

.aj-form-select {
  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 d='M3 5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Form validation states */
.aj-form-input--error,
.aj-form-input--error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.aj-form-error {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

.aj-form-feedback {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.aj-form-feedback--success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #27ae60;
}

.aj-form-feedback--error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

/* Button loading state */
.aj-btn--loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.aj-btn--loading::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: aj-spinner 0.6s linear infinite;
}

@keyframes aj-spinner {
  to { transform: rotate(360deg); }
}

/* ── Privacy Policy Page ── */
.aj-privacy-section .aj-grid--3 {
  grid-template-columns: 280px 1fr;
}

.aj-privacy-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.aj-privacy-toc .aj-h3 {
  margin-bottom: 1rem;
}

.aj-privacy-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aj-privacy-toc__nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
  display: block;
}

.aj-privacy-toc__nav a:hover,
.aj-privacy-toc__nav a.is-active {
  color: var(--color-accent);
}

.aj-privacy-content {
  max-width: 750px;
}

.aj-privacy-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.aj-privacy-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.aj-privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-text-body);
}

.aj-privacy-content ul,
.aj-privacy-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.aj-privacy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.aj-privacy-footer {
  border-top: 1px solid var(--color-border);
}

.aj-privacy-footer__box {
  background: var(--color-bg-elevated);
  padding: 3rem;
  border-radius: 8px;
  text-align: center;
}

.aj-privacy-footer__box .aj-h3 {
  margin-bottom: 1rem;
}

.aj-privacy-footer__box .aj-body-lg {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 404 Page ── */
.aj-section--404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-404-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.aj-404-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.aj-404-content .aj-h2 {
  margin-bottom: 1rem;
}

.aj-404-content .aj-body-lg {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.aj-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Lightbox Controls Extended ── */
.aj-lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 10;
}

.aj-lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  text-align: center;
}

.aj-lightbox-next:hover,
.aj-lightbox-prev:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Project Card Overlay ── */
.aj-project-card__inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.aj-project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.aj-project-card__inner:hover .aj-project-card__overlay {
  opacity: 1;
}

.aj-project-card__overlay-content {
  color: #fff;
}

.aj-project-card__overlay-content .aj-h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.aj-project-card__overlay-content .aj-caption {
  color: rgba(255,255,255,0.7);
}

.aj-project-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.aj-project-card__info {
  padding-top: 0.75rem;
}

.aj-project-card__category {
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.aj-project-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.aj-project-card__inner:hover .aj-project-card__img {
  transform: scale(1.05);
}

/* ── Related Project Card ── */
.aj-related-project-card {
  position: relative;
}

.aj-related-project-card__image {
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
}

.aj-related-project-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.aj-related-project-card:hover .aj-related-project-card__img {
  transform: scale(1.05);
}

.aj-related-project-card__content {
  padding-top: 0.75rem;
}

.aj-related-project-card__category {
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.25rem;
}

.aj-related-project-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ── Mini Project Card (Team Member page) ── */
.aj-project-mini-card {
  position: relative;
}

.aj-project-mini-card__image {
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
}

.aj-project-mini-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.aj-project-mini-card .aj-h3 {
  margin-top: 0.75rem;
}

/* ── Barba.js Page Transitions ── */
.aj-barba-wrapper {
  position: relative;
}

/* GSAP handles all Barba transition animations (opacity/transform) via fromTo() */
/* Do NOT set opacity on containers here — it conflicts with GSAP transitions */

/* Slide transition alternative */
.aj-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ── Link Styles Extended ── */
.aj-link--social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.aj-link--social:hover {
  color: var(--color-accent);
}

.aj-link--social .aj-icon {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE – Mobile & Tablet Adjustments
   ═══════════════════════════════════════════════════ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  .aj-grid--2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .aj-privacy-section .aj-grid--3 {
    grid-template-columns: 1fr;
  }

  .aj-privacy-toc {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
  }

  .aj-privacy-toc__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

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

/* ── Mobile (max-width: 768px) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .aj-section {
    padding: 3rem 0;
  }

  .aj-page-hero {
    min-height: 40vh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
  }

  .aj-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .aj-grid--3 {
    grid-template-columns: 1fr;
  }

  .aj-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .aj-gallery-grid {
    grid-template-columns: 1fr;
  }

  .aj-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .aj-filter__controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .aj-filter__btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .aj-stats-bar--large {
    gap: 2rem;
  }

  .aj-stat--large .aj-stat__number {
    font-size: 2rem;
  }

  .aj-map-container {
    height: 300px;
  }

  .aj-project-hero {
    max-height: 50vh;
  }

  .aj-project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .aj-team-hero {
    padding-top: calc(var(--header-height) + 1rem);
  }

  .aj-team-hero__img {
    aspect-ratio: 1/1;
  }

  .aj-404-code {
    font-size: 5rem;
  }

  .aj-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .aj-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Mobile nav overlay */
  .aj-header__nav.is-active {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .aj-header__nav.is-active .aj-header__menu {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .aj-header__nav.is-active .aj-header__menu li a {
    font-size: 1.5rem;
  }

  .aj-lightbox-swiper {
    width: 100%;
    height: 80%;
  }

  .aj-lightbox-next { right: 0.5rem; }
  .aj-lightbox-prev { left: 0.5rem; }

  .aj-lightbox-controls {
    bottom: 1rem;
    gap: 1rem;
  }

  /* Search overlay mobile */
  .aj-search-container {
    padding-top: calc(var(--header-height) + 1rem);
  }

  .aj-search-input {
    font-size: 1.25rem;
  }
}

/* ── Small Mobile (max-width: 480px) ── */
@media (max-width: 480px) {
  .aj-grid--4 {
    grid-template-columns: 1fr;
  }

  .aj-team-grid {
    grid-template-columns: 1fr;
  }

  .aj-contact-form-wrapper {
    padding: 0;
  }

  .aj-privacy-footer__box {
    padding: 2rem 1.5rem;
  }

  .aj-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .aj-stats-bar--large {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── Theme Toggle ── */
.aj-header__action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  border-radius: 50%;
}

.aj-header__action-btn:hover {
  color: var(--color-text);
  background: var(--color-accent-subtle);
}

.aj-theme-toggle {
  position: relative;
  overflow: hidden;
}

.aj-theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

/* Dark mode: show moon (current), hide sun */
[data-theme="dark"] .aj-theme-toggle__icon--dark {
  transform: translateY(0);
  opacity: 1;
}

[data-theme="dark"] .aj-theme-toggle__icon--light {
  transform: translateY(100%);
  opacity: 0;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .aj-theme-toggle__icon--dark {
  transform: translateY(-100%);
  opacity: 0;
}

[data-theme="light"] .aj-theme-toggle__icon--light {
  transform: translateY(0);
  opacity: 1;
}

.aj-search-toggle .aj-icon {
  width: 20px;
  height: 20px;
}

/* ── Search Overlay ── */
.aj-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.aj-search-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.aj-search-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.aj-search-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.aj-search-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.aj-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-text);
  caret-color: var(--color-accent);
}

.aj-search-input::placeholder {
  color: var(--color-text-dim);
}

.aj-search-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.aj-search-close:hover {
  color: var(--color-accent);
}

.aj-search-results {
  margin-top: 2rem;
  max-height: 40vh;
  overflow-y: auto;
}

.aj-search-results a {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

.aj-search-results a:hover {
  background: var(--color-accent-subtle);
}

.aj-search-results__title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.aj-search-results__type {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Gallery Lightbox Polish ── */
.aj-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.aj-gallery-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.aj-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.aj-lightbox-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  transition: color 0.2s ease, transform 0.2s ease;
}

.aj-lightbox-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.aj-lightbox-swiper {
  width: 100%;
  height: 80vh;
}

.aj-lightbox-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-lightbox-swiper .swiper-slide img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.aj-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.aj-lightbox-prev,
.aj-lightbox-next {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.aj-lightbox-prev:hover,
.aj-lightbox-next:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.aj-lightbox-pagination {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-family: var(--font-body);
}

/* ── Animation Utilities ── */
/* GSAP handles [data-reveal] initial state (opacity/transform) via gsap.from() */
/* Do NOT set opacity:0 here — it conflicts with GSAP's "from" animation */

[data-reveal-image] {
  overflow: hidden;
}

/* ── Preloader Polish ── */
.aj-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.aj-preloader__logo {
  color: var(--color-accent);
  animation: aj-preloader-pulse 1.5s ease-in-out infinite;
}

@keyframes aj-preloader-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.aj-logo-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: aj-preloader-draw 2s ease-out forwards;
}

@keyframes aj-preloader-draw {
  to { stroke-dashoffset: 0; }
}

body.loaded .aj-preloader {
  opacity: 0;
  pointer-events: none;
}

/* ── Page Transition Overlay ── */
.is-transitioning .aj-main {
  pointer-events: none;
}

/* ── Values List ── */
.aj-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aj-values-list__item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.aj-values-list__item:first-child {
  padding-top: 0;
}

.aj-values-list__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  min-width: 2rem;
}

.aj-values-list__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ── Services Section ── */
.aj-services {
  background: var(--color-bg-elevated);
}

.aj-section-header {
  margin-bottom: 3rem;
}

.aj-section-header .aj-overline {
  margin-bottom: 0.75rem;
}

.aj-service-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.aj-service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.aj-service-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.aj-service-card .aj-h3 {
  margin-bottom: 1rem;
}

.aj-service-card .aj-body {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Stats Section Polish ── */
.aj-stats-section {
  background: var(--color-bg-surface);
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.aj-stats-bar--large {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
}

.aj-stat--large {
  text-align: center;
}

.aj-stat--large .aj-stat__number {
  display: inline;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.aj-stat__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
}

.aj-stat--large .aj-stat__label {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

/* ── CTA Section ── */
.aj-cta-section {
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.aj-cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.aj-cta-content .aj-h2 {
  margin-bottom: 1rem;
}

.aj-cta-content .aj-body-lg {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

/* ── Contact Info Polish ── */
.aj-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.aj-contact-info__item .aj-h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.aj-contact-info__item address,
.aj-contact-info__item .aj-body {
  color: var(--color-text-muted);
  font-style: normal;
  line-height: 1.7;
}

.aj-contact-info__item .aj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-body);
  transition: color var(--transition-fast);
}

.aj-contact-info__item .aj-link:hover {
  color: var(--color-accent);
}

.aj-contact-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

.aj-contact-social .aj-link--social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-body);
  font-size: 0.9375rem;
}

.aj-contact-social .aj-link--social:hover {
  color: var(--color-accent);
}

/* ── Form Row (2-column) ── */
.aj-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.aj-form-group {
  margin-bottom: 1.5rem;
}

.aj-form-group--full {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
}

.aj-form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.aj-required {
  color: var(--color-accent);
}

.aj-form-input,
.aj-form-select,
.aj-form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.aj-form-input:focus,
.aj-form-select:focus,
.aj-form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

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

.aj-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* ── Button Polish ── */
.aj-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.aj-btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.aj-btn--accent:hover {
  background: #b8963d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.aj-btn .aj-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.aj-btn:hover .aj-icon {
  transform: translateX(4px);
}

/* ── Overline Text ── */
.aj-overline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Map Section ── */
.aj-contact-map {
  padding: 0;
}

.aj-map-container {
  width: 100%;
  height: 450px;
  background: var(--color-bg-surface);
}

.aj-map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── About Page Grid Fix ── */
.aj-about-content .aj-grid--2 {
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.aj-about-text .aj-h2 {
  margin-bottom: 1.5rem;
}

.aj-about-text .aj-body-lg {
  margin-bottom: 1rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

.aj-about-text .aj-body {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ── Philosophy Section ── */
.aj-philosophy {
  background: var(--color-bg-elevated);
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.aj-philosophy .aj-grid--2 {
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.aj-philosophy__content .aj-h2 {
  margin-bottom: 1.5rem;
}

.aj-philosophy__content .aj-body-lg {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.aj-philosophy__values .aj-h2 {
  margin-bottom: 1.5rem;
}

/* ── Contact Form Wrapper ── */
.aj-contact-form-wrapper {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: clamp(2rem, 3vw, 3rem);
}

/* ── Responsive: Form & Services ── */
@media (max-width: 768px) {
  .aj-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .aj-service-card {
    padding: 2rem 1.5rem;
  }

  .aj-stats-bar--large {
    flex-direction: column;
    gap: 2rem;
  }

  .aj-contact-form-wrapper {
    padding: 1.5rem;
  }

  .aj-contact-social {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .aj-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ── Print Styles ── */
@media print {
  .aj-header,
  .aj-preloader,
  .aj-home-nav,
  .aj-home-gallery__progress,
  .aj-home-gallery__counter,
  .aj-home-copyright,
  .aj-search-overlay,
  .aj-gallery-lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .aj-section {
    page-break-inside: avoid;
  }
}
