/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header--scrolled .logo-text,
.header--scrolled .logo-en,
.header--scrolled .nav-link,
.header--scrolled .header-cta {
  color: var(--main-text);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 0;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
  opacity: 0.9;
  transition: color 0.3s ease;
}

.header--scrolled .logo-text {
  color: var(--primary-red);
}
.header--scrolled .logo-en {
  color: var(--navy);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

.header--scrolled .nav-link {
  color: var(--main-text);
}
.header--scrolled .nav-link:hover,
.header--scrolled .nav-link.active {
  color: var(--primary-red);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

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

.header-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mega Dropdown */
.has-dropdown {
  position: relative;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 100;
}

.mega-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

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

.mega-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.mega-item:hover {
  background: var(--soft-bg);
  border-color: var(--border);
}

.mega-item-ar {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--main-text);
}

.mega-item-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 2px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.header--scrolled .mobile-toggle span {
  background: var(--main-text);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 100px 24px 40px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main-text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover {
  color: var(--primary-red);
}

.mobile-dropdown {
  border-bottom: 1px solid var(--border);
}

.mobile-dropdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main-text);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--muted-text);
  border-bottom: 1px solid var(--light-gray);
}

.mobile-dropdown-item span {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--silver);
}

.mobile-cta {
  margin-top: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .nav,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy);
  color: var(--white);
}

.footer-main {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer .logo-text {
  color: var(--white);
}
.footer .logo-en {
  color: rgba(255, 255, 255, 0.7);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--primary-red);
}

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

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-list a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-main {
    padding: 60px 0 40px;
  }
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.hero-slide.active,
.hero-slide.prev {
  opacity: 1;
  visibility: visible;
}

.hero-slide.prev {
  z-index: 1;
}

.hero-slide.active {
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 51, 84, 0.85) 0%,
    rgba(20, 51, 84, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 0 48px;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217, 4, 22, 0.15);
  border: 1px solid rgba(217, 4, 22, 0.3);
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease 0.2s,
    transform 0.6s ease 0.2s;
}

.hero-slide.active .hero-label {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease 0.4s,
    transform 0.6s ease 0.4s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 550px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease 0.6s,
    transform 0.6s ease 0.6s;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease 0.8s,
    transform 0.6s ease 0.8s;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.2);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.slider-prev {
  right: 48px;
}
.slider-next {
  right: 100px;
}

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary-red);
  width: 0%;
  z-index: 10;
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 500px;
  }
  .hero-content {
    padding: 0 24px;
  }
  .slider-prev,
  .slider-next {
    display: none;
  }
  .slider-controls {
    bottom: 24px;
  }
}

/* ==================== SERVICE CARD ==================== */
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.service-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-ar {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--main-text);
  margin-bottom: 4px;
}

.service-card-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.7;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-red);
}

.service-card-link:hover {
  gap: 12px;
}

/* Featured service card (larger) */
.service-card--featured {
  grid-column: span 2;
}

.service-card--featured .service-card-img {
  aspect-ratio: 21/9;
}

@media (max-width: 768px) {
  .service-card--featured {
    grid-column: span 1;
  }
  .service-card--featured .service-card-img {
    aspect-ratio: 16/10;
  }
}

/* ==================== PROJECT CARD ==================== */
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  cursor: pointer;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 51, 84, 0.9) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-card-overlay span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-body {
  padding: 20px 24px;
}

.project-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--soft-bg);
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 500;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--primary-red);
  opacity: 0.05;
  border-radius: 50%;
}

.cta-section .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 60px 0;
  }
}

/* ==================== PROCESS ==================== */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--border);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.process-item:hover .process-number {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-list::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==================== VALUE CARD ==================== */
.value-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.value-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--soft-bg);
  color: var(--primary-red);
  font-size: 1.5rem;
  font-weight: 800;
}

.value-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

/* ==================== FILTER BAR ==================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.filter-btn.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: var(--white);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.filter-search:focus {
  border-color: var(--primary-red);
  outline: none;
}

@media (max-width: 640px) {
  .filter-bar {
    gap: 8px;
  }
  .filter-search {
    max-width: 100%;
    width: 100%;
  }
}

/* ==================== CONTACT CARD ==================== */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-bg);
  color: var(--primary-red);
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.6;
}

.contact-card-value a {
  color: var(--primary-red);
}

/* ==================== UTILITY ==================== */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}

.hidden {
  display: none !important;
}

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

/* Page header */
.page-header {
  background: var(--navy);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--soft-bg), transparent);
}

.page-header .section-title {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }
}

/* ==================== EDITORIAL GALLERY ==================== */
.works-hero {
  background:
    linear-gradient(115deg, rgba(20, 51, 84, 0.96), rgba(20, 51, 84, 0.72)),
    linear-gradient(rgba(217, 4, 22, 0.12), rgba(217, 4, 22, 0.04));
  color: var(--white);
  padding: 112px 0 92px;
  position: relative;
  overflow: hidden;
}

.works-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  right: -120px;
  top: -140px;
}

.works-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(217, 4, 22, 0.28);
  border-radius: 50%;
  left: 7%;
  bottom: -100px;
  filter: blur(2px);
}

.works-hero .container {
  position: relative;
  z-index: 1;
}

.works-hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 850px;
  margin: 18px auto 16px;
  font-weight: 800;
}

.works-hero .section-subtitle {
  max-width: 650px;
  font-size: 1.08rem;
}

.works-section {
  padding-top: 72px;
}

.works-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 52px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.works-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.works-mode-tab {
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--muted-text);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.works-mode-tab:hover {
  color: var(--navy);
}

.works-mode-tab.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(20, 51, 84, 0.18);
}

.works-filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.works-filter-label {
  width: 100%;
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.works-select,
.works-search {
  min-width: 190px;
  background: var(--white);
  border-color: var(--border);
}

.works-search {
  min-width: 230px;
}

.works-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.works-result-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-top: 8px;
}

.works-count {
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.editorial-gallery {
  column-count: 3;
  column-gap: 26px;
  align-items: top;
}

.editorial-item {
  break-inside: avoid;
  margin: 0 0 26px;
  position: relative;
  overflow: hidden;
  background: #e9edf1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.editorial-item--feature {
  margin-bottom: 34px;
}

.editorial-item-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  outline-offset: -5px;
}

.editorial-item img {
  display: block;
  width: 100%;
  height: auto;
  color: var(--white);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

.editorial-item--feature img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-item--portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.editorial-item--wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.editorial-item--standard img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-item-shade {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(10, 17, 25, 0.78));
  opacity: 0.72;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.editorial-item-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 34px 20px 18px;
  color: var(--white);
  text-align: right;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.editorial-item-index {
  color: rgba(255, 255, 255, 0.66);
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.editorial-item-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.editorial-item-context {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  line-height: 1.6;
}

.editorial-item:hover img,
.editorial-item:focus-within img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.editorial-item:hover .editorial-item-shade,
.editorial-item:focus-within .editorial-item-shade {
  opacity: 0.94;
}

.editorial-item:hover .editorial-item-caption,
.editorial-item:focus-within .editorial-item-caption {
  transform: translateY(0);
}

.editorial-item.is-hidden,
.editorial-item[hidden] {
  display: none;
}

.editorial-item.is-filtered-in {
  animation: galleryReveal 0.42s ease both;
}

.editorial-empty {
  padding: 70px 24px;
  border: 1px dashed var(--border);
  text-align: center;
}

.premium-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.premium-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.premium-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 20, 0.94);
  backdrop-filter: blur(12px);
}

.premium-lightbox figure {
  position: relative;
  z-index: 2;
  width: min(100%, 1400px);
  height: min(88vh, 900px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.premium-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.28s ease;
  transform-origin: center;
}

.premium-lightbox figcaption {
  padding: 14px 8px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  text-align: center;
}

.premium-lightbox button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.premium-lightbox button:hover,
.premium-lightbox button:focus-visible {
  background: rgba(217, 4, 22, 0.9);
  outline: 2px solid rgba(255, 255, 255, 0.7);
}

.premium-lightbox-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.premium-lightbox-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.premium-lightbox-prev {
  left: 18px;
}

.premium-lightbox-next {
  right: 18px;
}

.premium-lightbox-tools {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.premium-lightbox-tools button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes galleryReveal {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .works-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .editorial-gallery {
    column-count: 2;
  }
}

@media (max-width: 680px) {
  .works-hero {
    padding: 86px 0 68px;
  }
  .works-hero-title {
    font-size: 2.65rem;
  }
  .works-controls {
    margin-bottom: 38px;
  }
  .works-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .works-mode-tab {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.84rem;
  }
  .works-filter-form {
    display: grid;
    grid-template-columns: 1fr;
  }
.works-filter-field[hidden] {
  display: none;
}

.works-select,
  .works-search,
  .works-apply {
    width: 100%;
  }
  .works-result-heading {
    align-items: start;
    flex-direction: column;
  }
  .editorial-gallery {
    column-count: 1;
    column-gap: 18px;
  }
  .editorial-item {
    margin-bottom: 18px;
  }
  .editorial-item--feature img,
  .editorial-item--portrait img,
  .editorial-item--wide img,
  .editorial-item--standard img {
    aspect-ratio: 4 / 3;
  }
  .premium-lightbox {
    padding: 10px;
  }
  .premium-lightbox figure {
    height: 82vh;
  }
  .premium-lightbox-nav {
    top: auto;
    bottom: 14px;
    width: 44px;
    height: 44px;
    transform: none;
    border-radius: 50%;
  }
  .premium-lightbox-prev {
    left: 12px;
  }
  .premium-lightbox-next {
    right: 12px;
  }
  .premium-lightbox-tools {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-item,
  .editorial-item img,
  .editorial-item-caption,
  .works-mode-tab,
  .premium-lightbox {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

