/* ============================================================
   HOMEPAGE — Premium Studio Layout
   ============================================================ */

.home-main {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* ── Hero Section ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + var(--sp-12)) var(--sp-8) var(--sp-24);
  text-align: center;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 1000px;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-8);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto var(--sp-12);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.home-headline-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 24rem);
  font-weight: 500;
  color: var(--ink-4);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: -0.05em;
}

/* ── Featured Work ── */
.home-featured {
  padding: var(--sp-24) 0;
  border-top: 1px solid var(--border);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--sp-8) var(--sp-12);
  max-width: var(--container);
  margin: 0 auto;
}

.featured-header .section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  font-style: italic;
}

.view-all-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.view-all-link:hover {
  color: var(--accent);
}

/* Loop Track */
#loop-stage {
  width: 100vw;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.loop-track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  padding-left: var(--sp-8);
  /* The JS loop.js handles the infinite scroll translation */
}

.project-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 600px);
  cursor: pointer;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-2);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo),
              filter 0.5s var(--ease-smooth);
  filter: brightness(0.85);
}

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

.card-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0) 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

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

.card-label-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--sp-1);
}

.card-label-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── Process & Why Us Sections ── */
.home-process,
.home-why-us {
  padding: var(--sp-32) var(--sp-8);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.process-container,
.why-us-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--sp-16);
}

.section-header .t-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
}

.section-header .section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: var(--sp-6);
  align-items: baseline;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border);
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--ink-4);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
}

.process-step p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink-2);
  font-weight: 300;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.why-card {
  padding: var(--sp-10);
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.why-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CTA Section ── */
.home-cta {
  padding: var(--sp-32) var(--sp-8);
  background: var(--bg-2);
  text-align: center;
  border-top: 1px solid var(--border);
}

.home-cta-eyebrow {
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.home-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--sp-12);
}

.home-cta-headline em {
  font-style: italic;
  color: var(--accent);
}

.home-cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
}

/* ── Buttons (scoped to home) ── */
.home-main .btn,
.home-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.85em 2em;
  transition: all var(--dur-base) var(--ease-smooth);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.home-main .btn-primary,
.home-cta .btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.home-main .btn-primary:hover,
.home-cta .btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.home-main .btn-ghost,
.home-cta .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.home-main .btn-ghost:hover,
.home-cta .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--dur-base) var(--ease-smooth);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .process-step {
    grid-template-columns: 60px 1fr;
  }
  .process-step p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }
  .home-cta-actions {
    flex-direction: column;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
  }
}