﻿@import url('https://fonts.googleapis.com/css2?family=Marcellus:wght@400;700&display=swap');

:root {
  --bg: #0b1020;
  --bg2: #10182c;
  --text: #f5f7fa;
  --muted: #b0b9c9;
  --accent: #b08a1b;
  --accent2: #c79f2b;
  --accent3: #e2c35f;
  --header-scrolled: rgba(16, 24, 44, 0.92);
  --hero-gradient: linear-gradient(135deg, rgba(11, 16, 32, 0.55), rgba(11, 16, 32, 0));
  --shadow: rgba(0, 0, 0, 0.3);
  --header-height: 96px;
}

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

body {
  font-family: 'Marcellus', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

.section {
  padding: 80px 0;
}

.section.dark {
  background: var(--bg2);
}

.page-hero {
  padding: calc(110px + var(--header-height)) 0 60px;
  background: var(--bg2);
  margin-top: calc(-1 * var(--header-height));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.link {
  color: var(--accent2);
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

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

.project-card {
  background: var(--bg2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px var(--shadow);
}

.project-card-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
}

.card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.project-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(17, 17, 17, 0.75) 100%);
}

.card-body {
  padding: 20px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.badge-ongoing {
  background: rgba(177, 78, 20, 0.2);
  color: var(--accent2);
  border: 1px solid rgba(177, 78, 20, 0.4);
}

.badge-completed {
  background: rgba(69, 117, 33, 0.3);
  color: #b7e08f;
  border: 1px solid rgba(95, 148, 50, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--text);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent2);
  border-color: transparent;
}

.btn-danger {
  background: #aa2e2e;
}

.btn-danger:hover {
  background: #c53a3a;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  --header-height: 64px;
}

.header-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: var(--header-height);
  padding: 0;
  gap: 12px;
  position: relative;
  padding-right: 140px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-img {
  height: 78px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.logo-scrolled {
  display: none;
}

.site-header.scrolled .logo-top {
  display: none;
}

.site-header.scrolled .logo-scrolled {
  display: block;
  height: 46px;
}

.site-header.scrolled .logo-img {
  height: 46px;
}

.main-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: 36px;
}

.main-nav a {
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav a {
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a:hover {
  color: #ffffff;
}

.site-header:not(.scrolled) .main-nav a {
  color: #ffffff;
}

.site-header:not(.scrolled) .main-nav a:hover {
  color: var(--accent3);
}

.site-header.scrolled .main-nav a {
  color: #ffffff;
}

.site-header.scrolled .main-nav a:hover {
  color: var(--accent3);
}


.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
}

.hero-media {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  margin-top: 0;
  overflow: hidden;
}

.site-header + main > .hero-media {
  margin-top: calc(-1 * var(--header-height));
}

.site-header + main > .hero-media .hero-media-image,
.site-header + main > .hero-media .hero-media-video {
  top: 0;
}

.hero-media {
  margin-top: 0;
}

#home.hero-media {
  height: calc(100vh + var(--header-height));
  min-height: calc(100vh + var(--header-height));
}

.hero-media-image,
.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media-image {
  background-size: cover;
  background-position: center;
}

.hero-media-video {
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(17, 17, 17, 0.1));
}

.hero-media-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 0 8%;
  max-width: 620px;
  margin-left: auto;
}

.hero-media-content h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  color: var(#ffffff);
}

.hero-media-content .btn {
  margin-top: 16px;
}

#about .btn {
  margin-top: 12px;
}

.scroll-slider {
  padding: 60px 0 120px;
  overscroll-behavior: contain;
}

.scroll-slider .slider {
  width: min(1600px, calc(100% - 160px));
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 70vh;
  min-height: 320px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.scroll-slider .slides {
  position: relative;
  height: 100%;
}

.scroll-slider .slide {
  opacity: 0;
  transform: translateY(22%) scale(0.92);
  filter: blur(10px);
  transition: transform 0.75s ease, opacity 0.75s ease, filter 0.75s ease;
  z-index: 1;
  will-change: transform, opacity, filter;
}

.scroll-slider .slide.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 3;
}

.scroll-slider .slide.prev {
  transform: translateY(-42%) scale(0.88);
  opacity: 0.2;
  filter: blur(8px);
  z-index: 2;
}

.scroll-slider .slide.next {
  transform: translateY(28%) scale(0.96);
  opacity: 0.5;
  filter: blur(3px);
  z-index: 2;
}

.scroll-slider .slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 32px;
}

.scroll-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.scroll-slider .slider-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.scroll-slider .slider-prev { left: 18px; }
.scroll-slider .slider-next { right: 18px; }

@media (max-width: 900px) {
  .scroll-slider .slider {
    width: min(92vw, 100%);
    border-radius: 20px;
  }
}


.slider {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slides {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-image,
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-image {
  background-size: cover;
  background-position: center;
}

.slide-video {
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(17, 17, 17, 0.2));
}

.slide-content {
  position: relative;
}

.slide-title {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.slide-action {
  position: absolute;
  left: 28px;
  bottom: 28px;
}

.slide-content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 12px 0;
}

.slide-content .btn {
  margin-top: 14px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border: none;
  cursor: pointer;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }


.stat-card {
  background: var(--bg2);
  padding: 30px;
  border-radius: 20px;
  display: grid;
  gap: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.stat-card strong {
  font-size: 28px;
  display: block;
}

.info-card {
  background: var(--bg2);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px var(--shadow);
}

.contact-card {
  background: var(--bg2);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}


#contact .grid-2 {
  align-items: flex-start;
}
.contact-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: fit-content;
  justify-self: start;
}

body .contact-brand + h2,
body .contact-brand + .contact-list {
  margin-top: 12px;
}

.contact-logo {
  width: 220px;
  max-width: 100%;
  display: block;
}

.contact-logo-shift {
  margin-top: -10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#contact h2 {
  margin-bottom: 10px;
}

#contact .contact-list {
  margin-top: 8px;
}



.contact-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent3);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-card form,
.form-card {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.filter {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg2);
}

.filter.active {
  background: var(--accent);
}

.project-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 80px) 0 80px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.project-hero .container {
  position: relative;
  z-index: 2;
}

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

.gallery-item img {
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

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

.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 16px;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 38px;
  cursor: pointer;
}

.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.site-footer {
  background: #0c0c0c;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto 1fr;
}

.footer-compact {
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  text-align: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-logo {
  height: 88px;
  width: auto;
}

.footer-contact {
  justify-self: end;
}

.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer .contact-item {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.flash {
  padding: 14px 0;
  background: rgba(177, 78, 20, 0.2);
  color: var(--text);
}

.flash-error {
  background: rgba(170, 46, 46, 0.4);
}

.flash-success {
  background: rgba(58, 148, 58, 0.4);
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Admin */
body.admin {
  background: var(--bg);
}

.admin-header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-left: 240px;
}

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

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.admin-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.admin-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.admin-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  z-index: 20;
}

.admin-brand {
  padding: 20px 20px 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent3);
  letter-spacing: 0.04em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0 22px;
}

.admin-nav a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-right: 40px;
}

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

.admin-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent3);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.admin-main {
  padding: 40px 0;
  margin-left: 240px;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  background: var(--bg2);
  padding: 40px;
  border-radius: 20px;
  width: min(420px, 92%);
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg2);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.sort-item {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: 0 14px 30px var(--shadow);
}

.sort-item.dragging {
  opacity: 0.6;
}

.sort-handle {
  cursor: grab;
  font-size: 18px;
  color: var(--muted);
  user-select: none;
}

.sort-info {
  display: grid;
  gap: 6px;
}

.sort-info small {
  color: var(--muted);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.image-card {
  background: var(--bg2);
  padding: 16px;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}

.image-card img {
  border-radius: 12px;
  height: 160px;
  object-fit: cover;
}

.image-card video {
  border-radius: 12px;
  height: 160px;
  width: 100%;
  object-fit: cover;
}

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

.video-card video {
  width: 100%;
  border-radius: 14px;
  background: #000;
}

.inline-form {
  display: inline;
}

.meta-form {
  display: grid;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
    padding-top: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    align-self: flex-end;
    position: absolute;
    top: 8px;
    right: 0;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 6px;
    margin-left: 0;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    background: var(--accent);
    border-radius: 12px;
    padding: 14px;
  }\n.slide-content {
    padding: 120px 10% 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .admin-sidebar {
    display: none;
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
  }

  body.admin.nav-open .admin-sidebar {
    display: block;
  }

  body.admin.nav-open .admin-nav {
    padding: 10px 0 16px;
  }

  .admin-header {
    margin-left: 0;
  }

  .admin-main {
    margin-left: 0;
  }
}


.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(177, 78, 20, 0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent2);
  border-color: transparent;
  color: #ffffff;
}

.tab-panels {
  min-height: 240px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.projects-list .hero-media-content {
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  max-width: 720px;
}

.projects-list .tabs {
  justify-content: flex-start;
  margin-top: 6px;
}

.references-section .references-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reference-card {
  position: relative;
  background: var(--bg2);
  border-radius: 18px;
  padding: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px var(--shadow);
  overflow: hidden;
}

.reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.reference-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: rgba(17, 17, 17, 0.8);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reference-card:hover .reference-title {
  opacity: 1;
}

.reference-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.press-section .press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.press-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg2);
  box-shadow: 0 18px 36px var(--shadow);
}

.press-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.press-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(17, 17, 17, 0.85) 100%);
  color: var(--text);
  font-weight: 600;
}

.press-card:hover .press-title {
  color: var(--accent3);
}

.press-section .container {
  width: min(1400px, 92%);
}

@media (max-width: 900px) {
  .press-section .press-grid {
    grid-template-columns: 1fr;
  }
}
