/* Home page: Explore Our Work bento + final CTA (2026-10-02) */

/* ---------- Explore Our Work ---------- */
.home-work {
  padding-bottom: clamp(72px, 8vw, 112px);
}

.home-work__tabs {
  display: flex;
  justify-content: safe center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 6px;
  border: 1px solid rgba(16, 33, 13, 0.1);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

.home-work__tabs::-webkit-scrollbar {
  display: none;
}

.home-work__tab {
  flex: 0 0 auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.home-work__tab:hover {
  color: var(--green-deep);
}

.home-work__tab.is-active {
  background: linear-gradient(135deg, #d9a640, var(--gold));
  color: #1b1405;
  box-shadow: 0 8px 18px rgba(196, 141, 38, 0.3);
}

.home-work__tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.home-work__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 210px);
  grid-auto-flow: dense;
  gap: 14px;
}

.home-work__grid.is-switching .home-work__tile:not([hidden]) {
  animation: home-work-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.home-work__grid.is-switching .home-work__tile:nth-child(9n + 2) { animation-delay: 40ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 3) { animation-delay: 80ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 4) { animation-delay: 120ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 5) { animation-delay: 160ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 6) { animation-delay: 200ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 7) { animation-delay: 240ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n + 8) { animation-delay: 280ms; }
.home-work__grid.is-switching .home-work__tile:nth-child(9n) { animation-delay: 320ms; }

@keyframes home-work-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.home-work__tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #1b2a17;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.home-work__tile[hidden] {
  display: none;
}

.home-work__tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--radius-lg);
}

.home-work__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-work__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 16, 7, 0) 45%, rgba(8, 16, 7, 0.78) 100%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.home-work__tile figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
}

.home-work__tile figcaption strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.home-work__service {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(196, 141, 38, 0.92);
  color: #1b1405;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-work__tile:hover img {
  transform: scale(1.05);
}

.home-work__tile:hover::after,
.home-work__tile--feature::after {
  opacity: 1;
}

.home-work__tile:hover figcaption,
.home-work__tile--feature figcaption {
  opacity: 1;
  transform: none;
}

.home-work__tile--feature figcaption {
  left: 26px;
  bottom: 24px;
}

.home-work__tile--feature figcaption strong {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.home-work__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-work__footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-work__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(23, 53, 14, 0.2);
  border-radius: 999px;
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.home-work__more:hover {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}

@media (hover: none) {
  .home-work__tile::after,
  .home-work__tile figcaption {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 30vw, 220px);
  }
}

@media (max-width: 560px) {
  .home-work__tab {
    padding: 9px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .home-work__grid {
    gap: 10px;
  }

  .home-work__tile figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .home-work__tile figcaption strong {
    font-size: 0.85rem;
  }

  .home-work__service {
    display: none;
  }

  .home-work__tile--feature .home-work__service {
    display: inline-block;
  }

  .home-work__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Final CTA ---------- */
.home-page .home-cta {
  order: 1;
}

.home-cta {
  padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 8vw, 112px);
  background: var(--portfolio-work-bg, var(--bg));
}

.home-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(196, 141, 38, 0.18), transparent 42%),
    linear-gradient(145deg, #17350e 0%, #0f220b 60%, #0b1909 100%);
  box-shadow: var(--shadow-lg);
  color: var(--white-on-dark);
}

.home-cta__copy {
  padding: clamp(36px, 5vw, 64px);
}

.home-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e8b85a;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-cta__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.home-cta h2 {
  margin: 18px 0 16px;
  max-width: 16ch;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: left;
}

.home-cta h2 em {
  display: block;
  color: #e3a93a;
  font-style: italic;
}

.home-cta__lede {
  max-width: 44ch;
  margin: 0 0 28px;
  color: rgba(245, 241, 232, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-cta__steps {
  display: grid;
  gap: 2px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.home-cta__steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
}

.home-cta__steps li:last-child {
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}

.home-cta__num {
  grid-row: span 2;
  align-self: center;
  color: #e3a93a;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.home-cta__steps strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
}

.home-cta__steps small {
  color: rgba(245, 241, 232, 0.66);
  font-size: 0.92rem;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.home-cta__book {
  gap: 10px;
}

.home-cta__call {
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.98rem;
  text-decoration: none;
}

.home-cta__call strong {
  color: #fff;
  border-bottom: 1px solid rgba(227, 169, 58, 0.7);
}

.home-cta__call:hover strong {
  color: #e3a93a;
}

.home-cta__visual {
  position: relative;
  margin: 0;
  min-height: 100%;
}

.home-cta__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.home-cta__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0f220b 0%, rgba(15, 34, 11, 0) 28%);
}

.home-cta__card {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 2;
  width: min(290px, calc(100% - 36px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(10, 22, 8, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.home-cta__card-label {
  display: block;
  margin-bottom: 10px;
  color: #e8b85a;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-cta__card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-cta__card li {
  position: relative;
  padding-left: 22px;
  color: rgba(245, 241, 232, 0.8);
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-cta__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 12px;
  height: 7px;
  border-left: 2px solid #e3a93a;
  border-bottom: 2px solid #e3a93a;
  transform: rotate(-45deg);
}

.home-cta__card li strong {
  color: #fff;
}

.home-cta__proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  list-style: none;
}

.home-cta__proof li {
  display: grid;
  gap: 3px;
  padding: 22px clamp(18px, 3vw, 32px);
}

.home-cta__proof li + li {
  border-left: 1px solid rgba(245, 241, 232, 0.12);
}

.home-cta__proof strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-cta__proof span {
  color: rgba(245, 241, 232, 0.64);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .home-cta__panel {
    grid-template-columns: 1fr;
  }

  .home-cta__visual {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .home-cta__visual::before {
    background: linear-gradient(0deg, #17350e 0%, rgba(23, 53, 14, 0) 40%);
  }

  .home-cta__proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cta__proof li:nth-child(3) {
    border-left: 0;
  }

  .home-cta__proof li:nth-child(n + 3) {
    border-top: 1px solid rgba(245, 241, 232, 0.12);
  }
}

@media (max-width: 560px) {
  .home-cta__panel {
    border-radius: var(--radius-lg);
  }

  .home-cta__visual {
    aspect-ratio: 4 / 3;
  }

  .home-cta__card {
    display: none;
  }

  .home-cta__actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-work__grid.is-switching .home-work__tile:not([hidden]) {
    animation: none;
  }

  .home-work__tile img {
    transition: none;
  }
}
