/* -----------------------------------------------------------------------------
   HOME PAGE – Arkiee Studio
   Optimised for performance, reduced repaints, and clean structure
----------------------------------------------------------------------------- */

/* ----------------------------------------------
   1. HERO SECTION
---------------------------------------------- */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 80px) 60px 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--clay);
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  max-width: 360px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-imgs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}

.hero-img {
  position: relative;
  overflow: hidden;
}

.hero-img-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
  will-change: transform; /* Performance boost */
}

.hero-img:hover .hero-img-bg {
  transform: scale(1.04);
}

/* fallback gradient backgrounds (optional) */
.hi-1 { background: linear-gradient(150deg, #c8bfb2, #9a8e80); }
.hi-2 { background: linear-gradient(150deg, #aab8bc, #6e8a92); }

.hero-img-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 60px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-scroll-bar {
  width: 0;
  height: 1px;
  background: var(--stone);
  animation: growBar 1s 1.4s forwards;
}

@keyframes growBar {
  to { width: 36px; }
}

/* ----------------------------------------------
   2. STATS BAR
---------------------------------------------- */
.stats-bar {
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 36px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.3);
  margin-top: 6px;
}

/* ----------------------------------------------
   3. ABOUT STRIP
---------------------------------------------- */
#home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.about-img-side {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.about-img-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b8c0c4, #7a8a90);
}

.about-content {
  background: var(--warm);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .section-body {
  margin-top: 20px;
  margin-bottom: 36px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--line);
  color: var(--stone);
  transition: all 0.25s;
}

.tag:hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* ----------------------------------------------
   4. SERVICES SECTION
---------------------------------------------- */
#home-services {
  padding: 100px 60px;
  background: var(--white);
}

.services-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.svc-card {
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.svc-card:hover {
  background: var(--warm);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

.svc-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s;
}

.svc-card:hover .svc-num {
  color: var(--clay);
  opacity: 0.3;
}

.svc-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.25;
}

.svc-desc {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
  margin-bottom: 24px;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.svc-list li {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  padding-left: 14px;
  position: relative;
}

.svc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--clay);
}

/* ----------------------------------------------
   5. PORTFOLIO PREVIEW (MASONRY)
---------------------------------------------- */
#home-portfolio {
  padding: 0 0 100px;
  background: var(--warm);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 80px 60px 40px;
}

.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  padding: 0 60px;
}

.proj {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

/* Unified grid spans (no repetition) */
.proj:nth-child(1) { grid-column: span 7; height: 460px; }
.proj:nth-child(2) { grid-column: span 5; height: 460px; }
.proj:nth-child(3),
.proj:nth-child(4),
.proj:nth-child(5) { height: 340px; }
.proj:nth-child(3) { grid-column: span 4; }
.proj:nth-child(4) { grid-column: span 4; }
.proj:nth-child(5) { grid-column: span 4; }

.proj-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.proj:hover .proj-bg {
  transform: scale(1.05);
}

.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 26, 0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}

.proj:hover .proj-overlay {
  opacity: 1;
}

.proj-info,
.proj-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
}

.proj-info {
  background: linear-gradient(to top, rgba(28, 28, 26, 0.55), transparent);
}

.proj-hover {
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.proj:hover .proj-hover {
  opacity: 1;
}

.proj-cat {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 5px;
}

.proj-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  border-bottom: 1px solid rgba(245, 242, 237, 0.3);
  padding-bottom: 2px;
}

/* Project colour variants (kept for flexibility) */
.pc1 { background: linear-gradient(140deg, #c4b8a6, #8a7e6e); }
.pc2 { background: linear-gradient(140deg, #a8b8c4, #6e8a9e); }
.pc3 { background: linear-gradient(140deg, #b8c4a8, #7a8e6e); }
.pc4 { background: linear-gradient(140deg, #c4a8b6, #9a6e88); }
.pc5 { background: linear-gradient(140deg, #c2be9e, #929070); }

/* ----------------------------------------------
   6. TESTIMONIALS
---------------------------------------------- */
#home-testimonials {
  padding: 100px 60px;
  background: var(--ink);
}

.test-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.test-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 36px;
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.test-card:hover {
  border-color: var(--clay);
  background: rgba(255, 255, 255, 0.06);
}

.test-quote {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--clay);
  opacity: 0.4;
  line-height: 0.8;
  margin-bottom: 12px;
}

.test-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: rgba(245, 242, 237, 0.75);
  margin-bottom: 20px;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clay), #c4a882);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--white);
}

.test-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(245, 242, 237, 0.8);
}

.test-role {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(245, 242, 237, 0.35);
  margin-top: 2px;
}

/* ----------------------------------------------
   7. BLOG PREVIEW
---------------------------------------------- */
#home-blog {
  padding: 100px 60px;
  background: var(--warm);
}

.blog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.blog-card {
  background: var(--warm);
  padding: 40px 36px;
  transition: background 0.3s;
}

.blog-card:hover {
  background: var(--white);
}

.blog-cat {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

.blog-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
  margin-bottom: 24px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.blog-date {
  font-size: 0.67rem;
  color: var(--stone);
}

.blog-read {
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 1px;
}

/* ----------------------------------------------
   8. GLOBAL ANIMATIONS
---------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------
   9. RESPONSIVE BREAKPOINTS
---------------------------------------------- */
@media (max-width: 1100px) {
  .portfolio-masonry {
    grid-template-columns: 1fr 1fr;
  }
  .proj:nth-child(n) {
    grid-column: span 1 !important;
    height: 300px;
  }
}

@media (max-width: 900px) {
  /* Hero */
  #hero {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding: calc(var(--nav-h) + 60px) 24px 60px;
  }
  .hero-right,
  .hero-imgs {
    height: 300px;
  }
  .hero-imgs {
    position: relative;
  }
  .hero-scroll {
    left: 24px;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  /* About */
  #home-about {
    grid-template-columns: 1fr;
  }
  .about-img-side {
    min-height: 280px;
  }
  .about-content {
    padding: 60px 24px;
  }

  /* Services */
  #home-services {
    padding: 80px 24px;
  }
  .services-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio */
  .portfolio-header {
    padding: 60px 24px 32px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .portfolio-masonry {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .proj:nth-child(n) {
    height: 260px;
  }

  /* Testimonials */
  #home-testimonials {
    padding: 80px 24px;
  }
  .test-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Blog */
  #home-blog {
    padding: 80px 24px;
  }
  .blog-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}