/* ==========================================================================
   HOME PAGE — Clean Editorial Layout with Micro-Animations
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */

.h-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  align-items: center;
}

.h-hero-content-inner {
  max-width: 540px;
}

.h-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 32px;
  position: relative;
  padding-left: 40px;
}

.h-hero-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.h-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

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

.h-hero-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 420px;
}

.h-hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 56px;
}

.h-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.3s;
}

.h-hero-link svg {
  transition: transform 0.3s var(--ease);
}

.h-hero-link:hover {
  color: var(--accent-dark);
}

.h-hero-link:hover svg {
  transform: translate(3px, -3px);
}

/* Hero Stats */
.h-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.h-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.h-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.h-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.h-hero-visual {
  position: relative;
}

.h-hero-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 80vh;
}

.h-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s linear;
}

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

.h-hero-img-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 13px;
  color: #fafaf8;
  line-height: 1.6;
  z-index: 2;
}

.h-hero-img-label span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2px;
}

.h-hero-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(10,10,10,0.4) 0%, transparent 100%);
  pointer-events: none;
}

/* Scroll cue */
.h-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.h-scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.h-scroll-line {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.h-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2.5s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ── Hero Entry Animations ─────────────────────────────────────────────── */

.anim-in {
  opacity: 0;
  transform: translateY(32px);
  animation: animIn 0.9s var(--ease-out) forwards;
}

.anim-in[data-d="0"] { animation-delay: 0.4s; }
.anim-in[data-d="1"] { animation-delay: 0.55s; }
.anim-in[data-d="2"] { animation-delay: 0.7s; }
.anim-in[data-d="3"] { animation-delay: 0.85s; }
.anim-in[data-d="4"] { animation-delay: 1.0s; }
.anim-in[data-d="5"] { animation-delay: 1.2s; }

@keyframes animIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── About ─────────────────────────────────────────────────────────────── */

.h-about {
  padding: clamp(100px, 14vw, 200px) 0;
  border-top: 1px solid var(--border);
}

.h-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.h-about-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-top: 8px;
}

.h-about-lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.h-about-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.h-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  transition: gap 0.3s var(--ease);
}

.h-text-link:hover {
  gap: 14px;
}

/* ── Services ──────────────────────────────────────────────────────────── */

.h-services {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-alt);
  transition: background 0.5s var(--ease);
  overflow: hidden;
}

.h-services-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.h-services-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-top: 8px;
}

.h-services-track {
  display: flex;
  gap: 24px;
  padding: 0 var(--container-pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h-services-track::-webkit-scrollbar { display: none; }

.h-svc-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 280px;
  scroll-snap-align: start;
  position: relative;
  padding: 36px 32px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.h-svc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.h-svc-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: block;
}

.h-svc-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 24px;
}

.h-svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: all 0.6s var(--ease);
}

.h-svc-card:hover .h-svc-img img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.h-svc-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.h-svc-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  flex-grow: 1;
}

.h-svc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  margin-top: 24px;
  transition: all 0.3s var(--ease);
  align-self: flex-start;
}

.h-svc-card:hover .h-svc-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fafaf8;
}

/* ── Projects ──────────────────────────────────────────────────────────── */

.h-projects {
  padding: clamp(80px, 12vw, 160px) 0;
}

.h-projects-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.h-projects-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.h-projects-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
}

/* Project Cards */
.h-pj-card {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.h-pj-full .h-pj-img {
  aspect-ratio: 21/9;
}

.h-pj-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.h-pj-duo .h-pj-img {
  aspect-ratio: 4/3;
}

.h-pj-img {
  overflow: hidden;
}

.h-pj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.h-pj-card:hover .h-pj-img img {
  transform: scale(1.04);
}

.h-pj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0) 50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.h-pj-card:hover .h-pj-overlay {
  opacity: 1;
}

.h-pj-cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.h-pj-info h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 400;
  color: #fafaf8;
  margin-bottom: 4px;
}

.h-pj-loc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.h-pj-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafaf8;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  align-self: flex-end;
}

.h-pj-card:hover .h-pj-arrow {
  background: #fafaf8;
  color: var(--black);
  border-color: #fafaf8;
}

/* ── Vision ────────────────────────────────────────────────────────────── */

.h-vision {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-alt);
  transition: background 0.5s var(--ease);
}

.h-vision-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.h-vision-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 32px;
  display: block;
}

.h-vision-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
  margin-bottom: 40px;
}

.h-vision-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
}

/* ── Partners ──────────────────────────────────────────────────────────── */

.h-partners {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.h-partners-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
}

/* ── Journal ───────────────────────────────────────────────────────────── */

.h-journal {
  padding: clamp(80px, 12vw, 160px) 0;
}

.h-journal-header {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.h-journal-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
}

.h-journal-list {
  border-top: 1px solid var(--border);
}

.h-journal-item {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}

.h-journal-item:hover {
  padding-left: 16px;
}

.h-journal-date {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.h-journal-item h3 {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.3s;
}

.h-journal-item:hover h3 {
  color: var(--accent-dark);
}

.h-journal-arrow {
  color: var(--text-faint);
  transition: all 0.3s var(--ease);
}

.h-journal-item:hover .h-journal-arrow {
  color: var(--accent-dark);
  transform: translateX(4px);
}

/* ── CTA ───────────────────────────────────────────────────────────────── */

.h-cta {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--black);
}

.h-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.h-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: #fafaf8;
  margin-bottom: 16px;
}

.h-cta-inner > p {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
  line-height: 1.7;
}

.h-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.h-cta .btn-primary {
  background: #fafaf8;
  color: var(--black);
}

.h-cta .btn-primary::before {
  background: var(--accent);
}

.h-cta .btn-primary:hover {
  color: #fafaf8;
}

.h-cta-phone {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.h-cta-phone:hover {
  color: var(--accent);
}

/* ── Smooth Scroll Reveal Micro-animations ─────────────────────────────── */

/* Applied via JS — subtle parallax shift */
.h-parallax {
  will-change: transform;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .h-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
  }

  .h-hero-content-inner {
    max-width: 100%;
  }

  .h-hero-visual {
    order: -1;
  }

  .h-hero-img-wrap {
    aspect-ratio: 16/9;
    max-height: 50vh;
  }

  .h-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .h-scroll-cue { display: none; }

  .h-about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .h-pj-duo {
    grid-template-columns: 1fr;
  }

  .h-svc-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .h-hero-stats {
    gap: 20px;
  }

  .h-stat-num {
    font-size: 22px;
  }

  .h-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .h-journal-item {
    grid-template-columns: 1fr 28px;
    gap: 8px;
  }

  .h-journal-date {
    grid-column: 1 / -1;
  }

  .h-projects-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
