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

/* --- Hero --- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 0;
  overflow: hidden;
}

.hero > .container {
  width: 100%;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg,
    var(--bg) 0%,
    rgba(0, 26, 29, 0.92) 32%,
    rgba(0, 26, 29, 0.55) 55%,
    rgba(0, 26, 29, 0.1) 75%,
    transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-heading .line-white {
  display: block;
  font-size: clamp(40px, 5.2vw, 64px);
  color: var(--white);
}
.hero-heading .line-accent {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--accent);
  font-weight: 600;
  margin-top: 10px;
}

.hero-copy {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 420px;
  margin: 22px 0 32px;
}

.hero-btns { display: flex; gap: 14px; margin-bottom: 56px; }

.hero-visual {
  height: 480px;
}

.hero-badges {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 0;
  margin-top: 75px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--border-soft);
}
.hero-badge:last-child { border-right: none; }
.hero-badge:first-child { padding-left: 0; }
.hero-badge svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.hero-badge .t { font-size: 14px; color: var(--white); font-weight: 600; }
.hero-badge .d { font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 40px) 0 32px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 260px; order: -1; }
  .hero-badges {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .hero-badge { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 0 0 16px; }
  .hero-badge:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 560px) {
  .hero {
    padding: calc(var(--header-h) + 24px) 0 24px;
  }
  .hero-visual { height: 200px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .hero-bg-photo { object-position: 65% center; }
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      var(--bg) 0%,
      rgba(0, 26, 29, 0.85) 40%,
      rgba(0, 26, 29, 0.45) 70%,
      rgba(0, 26, 29, 0.15) 100%);
  }
}

/* --- Services preview grid --- */
.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .services-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .services-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Featured work grid --- */
.work-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .work-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-grid-4 { grid-template-columns: 1fr; }
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(87,229,211,0.35); }
.work-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(10, 15, 20, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.work-info { padding: 18px 20px 22px; }
.work-info .cat { font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.work-info h3 { font-family: var(--font-display); font-size: 16px; color: var(--white); font-weight: 600; margin-bottom: 10px; }
.work-info .view { font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.work-info .view svg { width: 12px; height: 12px; }


/* --- Tech stack strip --- */
.tech-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}
.tech-strip-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.tech-strip .next-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.tech-item svg { width: 18px; height: 18px; }

#rotating-word {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#rotating-word.fade-out {
  opacity: 0;
  transform: translateY(10px);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top;
}