/* Home page: CMYK hero, about, projects grid, blog highlights, contact. */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: max(560px, min(100svh, 820px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
  perspective: 1200px;
  padding-bottom: clamp(60px, 12vw, 150px);
}

@media (max-width: 640px) {
  .hero {
    min-height: 620px;
  }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(650px circle at 50% 45%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  will-change: transform;
}

.hero--ready #hero-canvas {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 2vh;
  text-align: center;
  will-change: transform;
}

.hero-kicker {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.hero-divider {
  width: 120px;
  height: 3px;
  margin: 0 auto 22px;
  background: #fff;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-desc span {
  padding: 0 0.6em;
  opacity: 0.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  padding: 6px;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-links svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 3;
  width: 100%;
  height: clamp(60px, 12vw, 150px);
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 70px 0 30px;
  scroll-margin-top: 20px;
}

.section-header {
  margin-bottom: 30px;
  text-align: center;
}

.section-title {
  margin: 0 0 12px;
  color: #3b3b3b;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-underline {
  width: 48px;
  height: 2px;
  margin: 0 auto;
  background: #3b3b3b;
}

.section-more {
  margin-top: 30px;
  text-align: center;
}

/* ---------- About ---------- */

.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .about {
    flex-direction: row;
    gap: 32px;
    text-align: left;
  }
}

.about-photo {
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--card-bg);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-text p {
  margin: 0;
  font-size: 1.05rem;
}

#about {
  padding-bottom: 0;
}

#about .section-header {
  margin-bottom: 22px;
}

/* ---------- Projects grid ---------- */

.works-grid {
  position: relative;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.work-card-thumb {
  position: relative;
  aspect-ratio: 442 / 375;
  overflow: hidden;
  background: #2c2c2c;
}

.work-card-thumb img,
.work-card-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-preview {
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.is-previewing .work-card-preview {
  opacity: 1;
}

.work-card-info {
  padding: 18px 14px 22px;
}

.work-card-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

.work-card-tech {
  margin: 0;
  color: #3b3b3b;
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */

.contact {
  padding-bottom: 20px;
  text-align: center;
}

.contact p {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.contact .social-links {
  margin-top: 22px;
}

.contact .social-links a {
  color: var(--hero-bg);
}
