/* Final Home and About refinements — loaded after the site stylesheet. */

.home-photo-panel {
  display: block;
  padding: 0;
  background: #17382b;
}

.home-photo-panel::before { display: none; }

.home-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.home-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 26, 0.02) 34%, rgba(10, 35, 26, 0.82) 100%);
}

.home-photo-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(26px, 4vw, 42px);
}

.home-photo-caption strong {
  display: block;
  max-width: 420px;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.18;
}

.home-hero-copy h1 { font-size: clamp(3rem, 5.8vw, 5.1rem); }

.about-hero-v2 {
  padding: 86px 0 94px;
  background:
    radial-gradient(circle at 4% 12%, rgba(161, 226, 195, 0.3), transparent 24%),
    linear-gradient(135deg, #f4faf5 0%, #ffffff 64%, #e7f4e9 100%);
}

.about-hero-v2-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: clamp(38px, 5vw, 66px);
}

.about-hero-copy-v2 h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.7vw, 5.3rem);
}

.about-hero-lead {
  max-width: 790px;
  line-height: 1.72;
}

.about-hero-photo-card {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border: 8px solid #17382b;
  border-radius: 34px 34px 112px 34px;
  background: #d9eadc;
  box-shadow: 0 28px 74px rgba(23, 56, 43, 0.2);
}

.about-hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(12, 42, 31, 0.76) 100%);
  pointer-events: none;
}

.about-hero-photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% center;
}

.about-hero-photo-card figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: #fff;
}

.about-hero-photo-card figcaption span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-hero-photo-card figcaption strong {
  font-size: 0.92rem;
  text-align: right;
}

.pillars-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(165, 219, 183, 0.34), transparent 22%),
    #eff7f0;
}

.pillars-interaction-note {
  max-width: 560px;
  margin: 14px 0 0;
  color: #557064;
}

.pillar-grid-seven {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.pillar-grid-seven .pillar-flip-card { grid-column: span 3; }
.pillar-grid-seven .pillar-flip-card:nth-child(n + 5) { grid-column: span 4; }

.pillar-flip-card {
  min-height: 330px;
  border-radius: 30px;
  outline: none;
  perspective: 1100px;
  cursor: pointer;
}

.pillar-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.pillar-flip-card:hover .pillar-flip-inner,
.pillar-flip-card:focus .pillar-flip-inner,
.pillar-flip-card:focus-within .pillar-flip-inner { transform: rotateY(180deg); }

.pillar-flip-card:focus-visible {
  outline: 4px solid rgba(132, 198, 80, 0.46);
  outline-offset: 5px;
}

.pillar-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 54px rgba(23, 56, 43, 0.14);
}

.pillar-face-front {
  color: #fff;
  background: #17382b;
}

.pillar-face-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 37, 27, 0.04) 24%, rgba(9, 37, 27, 0.92) 100%);
}

.pillar-face-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.7s ease;
}

.pillar-flip-card:hover .pillar-face-front img,
.pillar-flip-card:focus .pillar-face-front img { transform: scale(1.06); }

.pillar-face h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.pillar-face-back {
  justify-content: center;
  color: #17382b;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.55), transparent 24%),
    #b8dd6d;
  transform: rotateY(180deg);
}

.pillar-face-back span {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.pillar-face-back p {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: #294c3d;
  font-size: 0.98rem;
  line-height: 1.66;
}

@media (max-width: 1080px) {
  .pillar-grid-seven { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid-seven .pillar-flip-card,
  .pillar-grid-seven .pillar-flip-card:nth-child(n + 5) { grid-column: span 1; }
  .pillar-grid-seven .pillar-flip-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .about-hero-v2-grid { grid-template-columns: 1fr; }
  .about-hero-photo-card {
    width: min(720px, 100%);
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .home-media-shell { min-height: 390px; }
  .home-photo-caption { padding: 24px; }
  .about-hero-v2 { padding: 64px 0 72px; }
  .about-hero-v2-grid { gap: 34px; }
  .about-hero-copy-v2 h1 { font-size: clamp(2.6rem, 12.5vw, 3.8rem); }
  .about-hero-lead { font-size: 1rem; line-height: 1.65; }
  .about-hero-photo-card {
    aspect-ratio: 4 / 3;
    border-width: 6px;
    border-radius: 26px 26px 68px 26px;
  }
  .about-hero-photo-card figcaption { right: 18px; bottom: 18px; left: 18px; }
  .pillar-grid-seven { grid-template-columns: 1fr; gap: 16px; }
  .pillar-grid-seven .pillar-flip-card,
  .pillar-grid-seven .pillar-flip-card:nth-child(n + 5),
  .pillar-grid-seven .pillar-flip-card:last-child { grid-column: auto; }
  .pillar-flip-card { min-height: 285px; }
  .pillar-face { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-flip-inner,
  .pillar-face-front img { transition: none; }
}
