/* Homepage-specific styles */

/* Hero Section */
.hero {
    padding-top: clamp(240px, 28vh, 320px);
    padding-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(24px, 3vw, 48px);
    margin-bottom: clamp(64px, 8vh, 96px);
}

.hero-h1 {
    grid-column: span 7;
}

.hero-supporting {
    grid-column: span 5;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.25rem;
}

.hero-supporting p {
    max-width: 40ch;
    color: var(--muted);
}

.hero-image {
    height: clamp(420px, 68vh, 720px);
    width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* What We Do Section */
.what-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(32px, 4vw, 64px);
}

.what-label {
    grid-column: span 4;
}

.what-statements {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 6vw, 72px);
}

.statement h3 {
    margin-bottom: 1rem;
}

.statement p {
    color: var(--muted);
    max-width: 48ch;
}

/* Selected Work Section */
.work-intro {
    margin-bottom: clamp(48px, 6vw, 72px);
}

.work-featured {
    margin-bottom: clamp(64px, 8vw, 96px);
}

.work-featured img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
    margin-bottom: 1.25rem;
}

/* Hover overlays for work cards */
.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.card-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.02));
}

.card-overlay-inner {
  max-width: 70%;
}

.card-title {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-meta {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.card-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: var(--text);
}

.card-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #00ffd5;
}

/* Force white text on dark overlay (both themes) */
.card-overlay .card-title {
  color: #ffffff;
}

.card-overlay .card-meta {
  color: rgba(255, 255, 255, 0.68);
}

.card-overlay .card-cta {
  color: #ffffff;
}

.card-overlay .card-cta-dot {
  background: #00ffd5;
}

.work-featured:hover .card-overlay,
.work-item:hover .card-overlay {
  opacity: 1;
  transform: none;
}

.work-featured:hover img,
.work-item:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 4vw, 64px);
}

.work-item img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.work-caption {
    font-size: 14px;
    color: var(--muted);
}

.view-more-link {
    display: inline-block;
    margin-top: clamp(48px, 6vw, 64px);
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: var(--text);
}

/* How We Work Section */
.process-header {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(32px, 4vw, 64px);
    margin-bottom: clamp(48px, 6vw, 64px);
}

.process-header .label {
    grid-column: span 4;
}

.process-intro {
    grid-column: span 8;
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--muted);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(48px, 6vw, 64px) clamp(32px, 4vw, 48px);
}

.process-phase h3 {
    font-size: clamp(20px, 1.5vw, 24px);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.process-phase p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Who This Is For Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(32px, 4vw, 64px);
}

.audience-label {
    grid-column: span 4;
}

.audience-list {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 32px);
}

.audience-item {
    font-size: clamp(17px, 1.2vw, 19px);
    color: var(--muted);
    line-height: 1.65;
    padding-left: 1.5rem;
    position: relative;
}

.audience-item::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 220px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-h1,
    .hero-supporting {
        grid-column: span 1;
    }

    .hero-supporting {
        align-items: flex-start;
        padding-bottom: 0;
    }

    .what-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .what-label,
    .what-statements,
    .audience-label,
    .audience-list {
        grid-column: span 1;
    }

    .what-label,
    .audience-label {
        margin-bottom: 1rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .process-header {
        grid-template-columns: 1fr;
    }

    .process-header .label,
    .process-intro {
        grid-column: span 1;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Lock the scale of the Process section (do not let icon additions shrink it) */
.process-section .process-phase h3 {
  font-size: 28px; /* restore bigger feel */
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.process-section .process-phase p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
}

.process-section .process-grid {
  gap: 44px; /* more breathing room */
}

@media (max-width: 900px) {
  .process-section .process-phase h3 {
    font-size: 24px;
  }
  .process-section .process-grid {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .card-title {
    font-size: 26px;
  }
  .card-overlay-inner {
    max-width: 90%;
  }
}
