/* ═══════════════════════════════════════
   HOME PAGE - Lina Sulyaeva portfolio
   ═══════════════════════════════════════ */

/* Hero - Compact, editorial, premium */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212,98,43,0.06), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(201,168,76,0.05), transparent 50%),
    var(--c-bg-dark);
  overflow: hidden;
  padding: clamp(120px, 18vh, 200px) clamp(24px, 5vw, 80px) clamp(80px, 12vh, 140px);
}

/* Corner marks - editorial print feel */
.home-hero::before {
  content: '';
  position: absolute;
  top: clamp(40px, 6vh, 72px);
  left: clamp(32px, 4vw, 72px);
  width: clamp(20px, 2.5vw, 36px);
  height: clamp(20px, 2.5vw, 36px);
  border-top: 1px solid rgba(209, 115, 33, 0.2);
  border-left: 1px solid rgba(209, 115, 33, 0.2);
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.4s forwards;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: clamp(32px, 5vh, 56px);
  right: clamp(32px, 4vw, 72px);
  width: clamp(20px, 2.5vw, 36px);
  height: clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid rgba(209, 115, 33, 0.2);
  border-right: 1px solid rgba(209, 115, 33, 0.2);
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 1s ease 1.6s forwards;
}

.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-accent-glow);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  opacity: 0;
  animation: heroSlideUp 1s var(--ease-out-expo) 0.3s forwards;
}

.home-hero__eyebrow::before,
.home-hero__eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--c-accent-glow);
  opacity: 0.5;
}

.home-hero__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  position: relative;
  opacity: 0;
  animation: heroSlideUp 1.1s var(--ease-out-expo) 0.5s forwards;
}

.home-hero__divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-glow), transparent);
  margin: 24px 0;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.8s forwards;
}

.home-hero__role {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--c-accent-glow);
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: heroSlideUp 1.1s var(--ease-out-expo) 0.7s forwards;
}

.home-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  line-height: 1.7;
  position: relative;
  opacity: 0;
  animation: heroSlideUp 1s var(--ease-out-expo) 0.9s forwards;
}

/* About section */
.home-about {
  padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px) clamp(40px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.home-about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.home-about__photo {
  position: relative;
  overflow: hidden;
}

.home-about__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 8s ease;
}

.home-about__photo:hover img {
  transform: scale(1.04);
}

.home-about__photo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--c-accent);
  z-index: -1;
  pointer-events: none;
}

.home-about__body {
  max-width: 520px;
}

.home-about__text {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.9;
  color: var(--c-text);
}

.home-about__text em {
  font-family: var(--font-body);
  color: var(--c-accent);
}

/* Cases section */
.home-cases {
  padding: clamp(40px, 5vw, 60px) clamp(24px, 5vw, 80px) clamp(80px, 10vw, 140px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.home-cases .section-title {
  margin-bottom: 48px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.case-card {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-dark);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #fff;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.case-card__image {
  position: absolute;
  inset: 0;
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.case-card:hover .case-card__image img {
  transform: scale(1.06);
}

.case-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,26,0.1) 0%, rgba(10,15,26,0.8) 70%, rgba(10,15,26,0.95) 100%);
  z-index: 1;
}

.case-card__content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 3vw, 40px);
}

.case-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent-glow);
  margin-bottom: 12px;
}

.case-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.case-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 360px;
}

.case-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  transition: all 0.4s var(--ease-out-expo);
}

.case-card:hover .case-card__arrow {
  border-color: var(--c-accent-glow);
  color: var(--c-accent-glow);
  transform: translate(3px, -3px);
}

/* Placeholder card */
.case-card--placeholder {
  background: var(--c-cream);
  border: 2px dashed var(--c-line);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}

.case-placeholder__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  opacity: 0.6;
}

/* ═══════════════════════════════════════
   HOME RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .home-about__inner {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .home-about__photo {
    max-width: 400px;
  }

  .home-about__photo::after {
    bottom: -8px;
    right: -8px;
  }
}

@media (max-width: 600px) {
  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .home-about__photo {
    max-width: 320px;
  }
}
