/* ============================================
   HOME PAGE — Non-Generic Redesign
   ============================================ */

/* ---------- HERO — CINEMATIC FULL-BLEED ---------- */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.22) saturate(0.6);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(15, 36, 25, 0.85) 0%,
      rgba(15, 36, 25, 0.4) 45%,
      rgba(15, 36, 25, 0.25) 60%,
      rgba(15, 36, 25, 0.75) 100%
    );
}

.hp-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: calc(100vh - var(--header-height));
}

/* --- Hero Text --- */
.hp-hero__kiny {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.85;
  position: relative;
  padding-left: 52px;
}

.hp-hero__kiny::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hp-hero__text h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hp-hero__text h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hp-hero__accent {
  display: block;
  color: var(--accent);
}

.hp-hero__sub {
  color: rgba(255,255,255,0.68) !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  max-width: 520px;
  margin-bottom: 32px !important;
}

.hp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Trust strip — compact badges under CTA */
.hp-hero__trust-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hp-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hp-trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

/* --- Hero Team Showcase --- */
.hp-hero__team {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hp-hero__team-composition {
  position: relative;
  width: 420px;
  height: 480px;
}

/* Each portrait */
.hp-hero-portrait {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s ease;
}

.hp-hero-portrait:hover img {
  transform: scale(1.05);
}

.hp-hero-portrait:hover {
  z-index: 10 !important;
  box-shadow: 0 24px 72px rgba(0,0,0,0.6), 0 0 0 2px var(--accent);
}

/* Accent ring */
.hp-hero-portrait__ring {
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), rgba(201, 168, 76, 0.1)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.hp-hero-portrait:hover .hp-hero-portrait__ring {
  opacity: 1;
}

/* Lead portrait — large, center-left */
.hp-hero-portrait--lead,
.hp-hero-portrait--secondary {
  width: 240px;
  height: 320px;
}

.hp-hero-portrait--lead {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

/* Second partner — matching size, staggered right */
.hp-hero-portrait--secondary {
  right: 0;
  z-index: 2;
}

.hp-hero-portrait--top {
  top: 0;
}

.hp-hero-portrait--bottom {
  bottom: 0;
}

/* Name labels */
.hp-hero-portrait__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(15,36,25,0.92) 0%, rgba(15,36,25,0.5) 65%, transparent 100%);
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s ease;
}

.hp-hero-portrait:hover .hp-hero-portrait__label {
  opacity: 1;
  transform: translateY(0);
}

.hp-hero-portrait__label strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.3;
}

.hp-hero-portrait__label span {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Floating experience badge */
.hp-hero__exp-badge {
  position: absolute;
  bottom: 32px;
  left: -12px;
  background: rgba(26, 60, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: badgeFloat 4s ease-in-out infinite;
}

.hp-hero__exp-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hp-hero__exp-number sup {
  font-size: 1rem;
  vertical-align: super;
}

.hp-hero__exp-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll cue */
.hp-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hp-hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hp-hero__scroll p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---------- SCENARIOS — CONVERSATIONAL GRID ---------- */
.hp-scenarios__header {
  max-width: 700px;
  margin-bottom: 56px;
}

.hp-scenarios__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hp-scenarios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.hp-scenario {
  padding: 48px 44px;
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
  background: var(--bg);
}

.hp-scenario:nth-child(2n) {
  border-right: none;
}

.hp-scenario:nth-child(n+3) {
  border-bottom: none;
}

.hp-scenario:hover {
  background: var(--bg-cream);
}

.hp-scenario:hover .hp-scenario__number {
  color: var(--accent);
}

.hp-scenario__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.hp-scenario h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 16px;
  font-style: italic;
  color: var(--primary-dark);
}

.hp-scenario p {
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.hp-scenario__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.hp-scenario__link:hover {
  gap: 14px;
  color: var(--primary);
}

/* ---------- THE FIRM — EDITORIAL SPLIT ---------- */
.hp-firm {
  background: var(--bg-cream);
}

.hp-firm__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.hp-firm__visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.hp-firm__visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hp-firm__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(15,36,25,0.9), transparent);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hp-firm__year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}

.hp-firm__label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hp-firm__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hp-firm__lead {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  margin-bottom: 16px;
  line-height: 1.8;
}

.hp-firm__pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.hp-pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.hp-pillar:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.hp-pillar__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hp-pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-pillar h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.hp-pillar p {
  font-size: 0.88rem;
}

.hp-firm__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---------- HOW WE WORK — PROCESS TIMELINE ---------- */
.hp-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

/* Connecting line */
.hp-process__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.hp-step {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.hp-step__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.hp-step:hover .hp-step__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(26, 60, 42, 0.3);
}

.hp-step__line {
  display: none; /* line is handled by the parent ::before */
}

.hp-step__body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hp-step__body p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- PARTNERS — EDITORIAL CARDS ---------- */
.hp-partners__header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.hp-partners__header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hp-partners__header > p {
  max-width: 460px;
}

.hp-partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hp-partner-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.4s ease;
}

.hp-partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.hp-partner-card__photo {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.hp-partner-card__photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hp-partner-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.hp-partner-card:hover .hp-partner-card__photo img {
  transform: scale(1.05);
}

.hp-partner-card__info {
  padding: 28px 28px 32px;
}

.hp-partner-card__info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.hp-partner-card__role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hp-partner-card__info > p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hp-partner-card__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-partner-card__contact a {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.hp-partner-card__contact a:hover {
  color: var(--accent-dark);
}

/* ---------- TRUST MARKERS — HORIZONTAL BAR ---------- */
.hp-trust {
  background: var(--primary-dark);
  padding: 48px 0;
  overflow: hidden;
}

.hp-trust__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hp-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hp-trust__item svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.hp-trust__item strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  font-weight: 600;
}

.hp-trust__item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.hp-trust__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* ---------- CTA — ENHANCED ---------- */
.hp-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

/* ============================================
   RESPONSIVE — HOME PAGE
   ============================================ */

/* --- Tablet landscape --- */
@media (max-width: 1100px) {
  .hp-hero__team-composition {
    width: 340px;
    height: 400px;
  }

  .hp-hero-portrait--lead,
  .hp-hero-portrait--secondary {
    width: 200px;
    height: 270px;
  }

  .hp-hero__exp-badge {
    left: -8px;
    bottom: 20px;
  }
}

@media (max-width: 1024px) {
  .hp-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 120px;
    padding-bottom: 80px;
    align-items: end;
  }

  .hp-hero__team {
    justify-content: flex-start;
  }

  .hp-hero__team-composition {
    width: 380px;
    height: 420px;
  }

  .hp-hero-portrait--lead,
  .hp-hero-portrait--secondary {
    width: 220px;
    height: 290px;
  }

  .hp-firm__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hp-firm__visual img {
    height: 380px;
  }

  .hp-process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .hp-process__steps::before {
    display: none;
  }

  .hp-partners__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hp-partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-scenarios__grid {
    grid-template-columns: 1fr;
  }

  .hp-scenario {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .hp-scenario:last-child {
    border-bottom: none !important;
  }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
  .hp-hero__inner {
    padding-top: 110px;
    padding-bottom: 60px;
    gap: 36px;
  }

  .hp-hero__text h1 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
  }

  /* Rearrange portraits into horizontal row for mobile */
  .hp-hero__team {
    justify-content: center;
    flex-direction: column;
  }

  .hp-hero__team-composition {
    width: 100%;
    height: auto;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
  }

  .hp-hero-portrait {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
  }

  .hp-hero-portrait--lead,
  .hp-hero-portrait--secondary {
    width: 130px;
    height: 170px;
  }

  .hp-hero-portrait--lead {
    order: 2;
    margin-bottom: 12px;
  }

  .hp-hero-portrait--top {
    order: 1;
  }

  .hp-hero-portrait--bottom {
    order: 3;
  }

  .hp-hero-portrait__label {
    padding: 12px 10px 8px;
  }

  .hp-hero-portrait__label strong {
    font-size: 0.72rem;
  }

  .hp-hero-portrait__label span {
    font-size: 0.6rem;
  }

  .hp-hero__exp-badge {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 16px;
    justify-content: center;
    animation: none;
  }

  .hp-hero__scroll {
    display: none;
  }

  .hp-scenarios__header h2 br {
    display: none;
  }

  .hp-scenario {
    padding: 36px 28px;
  }

  .hp-scenario__number {
    font-size: 2.2rem;
    margin-bottom: 14px;
  }

  .hp-firm__content h2 br {
    display: none;
  }

  .hp-process__steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hp-step {
    text-align: left;
    display: flex;
    gap: 20px;
    padding: 0;
  }

  .hp-step__dot {
    margin: 0;
    flex-shrink: 0;
  }

  .hp-step__body {
    text-align: left;
  }

  .hp-partners__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-partner-card__photo {
    height: 260px;
  }

  .hp-trust__inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .hp-trust__divider {
    display: none;
  }
}

/* --- Small phone --- */
@media (max-width: 480px) {
  .hp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-hero__actions .btn {
    justify-content: center;
  }

  .hp-hero__trust-strip {
    flex-direction: column;
    gap: 10px;
  }

  .hp-hero__team-composition {
    gap: 10px;
  }

  .hp-hero-portrait--lead,
  .hp-hero-portrait--secondary {
    width: 110px;
    height: 150px;
  }

  .hp-hero__exp-badge {
    padding: 14px 18px;
  }

  .hp-hero__exp-number {
    font-size: 1.8rem;
  }

  .hp-scenario {
    padding: 28px 20px;
  }

  .hp-firm__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
