/* =============================================
   HOME PAGE STYLES
   ============================================= */

/* ══ HERO ══════════════════════════════════ */
.hero { border-bottom: 1px solid var(--line); }

.hero-media {
  position: relative;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  background: #111;
}

/* Fade layers with Ken Burns */
.fade-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease, transform 8s ease;
  transform: scale(1);
  will-change: opacity, transform;
}

.fade-layer.is-active {
  opacity: 1;
  transform: scale(1.05);
}

/* Readability overlay */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,15,18,.72), rgba(15,15,18,.14));
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 54px;
  display: flex;
  align-items: center;
  min-height: 620px;
}

.hero-box {
  max-width: 780px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}

.hero-box .kicker { color: rgba(255,255,255,.80); }
.hero-box .h1 { color: #fff; }
.hero-box .p { color: rgba(255,255,255,.90); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Inverse hero button */
.btn-invert { background: #fff; color: var(--black); }
.btn-invert:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

/* ══ BRANDS STRIP ══════════════════════════ */
.brands {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brands-heading {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.brand-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(209,15,27,.28);
  box-shadow: 0 16px 48px rgba(15,15,18,.12);
}

.brand-card img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: .92;
  transition: opacity .25s ease;
}

.brand-card:hover img { opacity: 1; }

/* ══ PROJECT GALLERY ═══════════════════════ */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.tile {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  min-height: 250px;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(209,15,27,.28);
  box-shadow: var(--shadow-md);
}

.tile.big { min-height: 520px; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.tile:hover img { transform: scale(1.03); }

.tile .label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ══ PRODUCT CATEGORIES ════════════════════ */
.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
  background: rgba(0,0,0,.02);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.cat-ico svg { display: block; }

.cat:hover .cat-ico {
  color: var(--red);
  border-color: rgba(209,15,27,.28);
  background: rgba(209,15,27,.06);
}

.cat:hover {
  transform: translateY(-3px);
  border-color: rgba(209,15,27,.28);
  box-shadow: var(--shadow-md);
}

.cat .name {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 16px;
}

.cat .desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 4px;
}

.cat .go {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.cat:hover .go {
  color: var(--red);
  border-color: rgba(209,15,27,.28);
  background: rgba(209,15,27,.06);
}

/* ══ CTA CARD ══════════════════════════════ */
.cta-card {
  background: rgba(255,255,255,.78);
}

/* ══ RESPONSIVE ════════════════════════════ */
@media (max-width: 980px) {
  .hero-media, .hero-inner { min-height: 540px; }
  .gallery { grid-template-columns: 1fr; }
  .tile.big { min-height: 360px; }
  .categories { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .hero-inner { padding: 52px 0 44px; min-height: 480px; }
  .hero-media { min-height: 480px; }
  .hero-box { padding: 20px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card { height: 72px; }
  .brand-card img { max-height: 34px; }
  .tile { min-height: 220px; }
  .tile.big { min-height: 320px; }
}


/* =============================================
   PROJECT FILTERS
   ============================================= */
.project-filters {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Tighten gap between carousel and filmstrip dots */
.projects-dots { margin-top: 6px; }

.filter-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  border-color: rgba(209,15,27,.35);
  color: var(--red);
  background: rgba(209,15,27,.06);
}

.filter-btn.active {
  border-color: rgba(209,15,27,.45);
  color: var(--red);
  background: rgba(209,15,27,.08);
}

.filter-btn:focus-visible {
  outline: 2px solid rgba(209,15,27,.45);
  outline-offset: 2px;
}

.projects-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .filter-btn { height: 26px; padding: 0 9px; font-size: 9px; }
}