/* ==========================================================================
   HOME PAGE — styles (builds on styles.css tokens + glimpse.css reveal)
   ========================================================================== */

/* ---------- Hero ---------- */
.hm-hero {
  padding-top: 3.2rem;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: visible;
}

.hm-hero::after {
  display: none;
}

.hm-hero .hero-inner {
  margin-bottom: 2rem;
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: var(--paper-glass);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--walnut);
  margin-bottom: 1.1rem;
}

.hm-eyebrow b {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, #E39A3B, var(--amber));
  color: var(--walnut-deep);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-hero h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.7rem;
}

.page-hero .hm-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg, var(--amber-ink) 0%, var(--amber) 35%, var(--sage-ink) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-hero .hero-inner > p {
  max-width: 700px;
}

.hm-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.6rem;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.hm-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hm-btn:hover svg {
  transform: translateX(3px);
}

.hm-btn--primary {
  background: linear-gradient(180deg, #E39A3B, var(--amber));
  color: var(--walnut-deep);
  box-shadow: 0 12px 26px -10px rgba(213, 133, 31, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hm-btn--primary:hover {
  color: var(--walnut-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(213, 133, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hm-btn--ghost {
  background: var(--paper-glass);
  color: var(--walnut);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-sm);
}

.hm-btn--ghost:hover {
  color: var(--walnut-deep);
  border-color: var(--sage-border);
  transform: translateY(-2px);
}

.hm-btn--light {
  background: var(--cream);
  color: var(--walnut-deep);
}

.hm-btn--light:hover {
  color: var(--walnut-deep);
  transform: translateY(-2px);
}

.hm-btn--outline-light {
  border: 1px solid rgba(251, 247, 239, 0.4);
  color: var(--cream);
}

.hm-btn--outline-light:hover {
  color: var(--cream);
  background: rgba(251, 247, 239, 0.1);
  transform: translateY(-2px);
}

/* Hero photo: clean gallery frame (nothing overlaps the photo) */
.hm-photo-wrap {
  padding-bottom: 0;
}

.hm-photo-wrap .hero-photo-showcase {
  padding: 14px 14px 0;
  border-radius: 28px;
  background: var(--amber-border, rgba(213, 133, 31, 0.3));
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 6px rgba(255, 253, 248, 0.7),
    0 0 0 7px rgba(213, 133, 31, 0.35),
    0 0 34px -4px rgba(213, 133, 31, 0.35),
    0 30px 60px -28px rgba(59, 42, 30, 0.45);
}

/* Moving amber ring: a conic gradient spun with transform only (GPU-composited,
   no per-frame JavaScript). The ::after mat covers all but a 4px edge. */
.hm-photo-wrap .hero-photo-showcase::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  background: conic-gradient(
    transparent 0deg 40deg,
    rgba(213, 133, 31, 0.15) 70deg,
    #D5851F 110deg,
    transparent 140deg 220deg,
    rgba(213, 133, 31, 0.15) 250deg,
    #D5851F 290deg,
    transparent 320deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: hmRing 9s linear infinite;
  will-change: transform;
}

.hm-photo-wrap .hero-photo-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--paper), var(--cream));
}

@keyframes hmRing {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hm-photo-wrap .hm-caption {
  position: relative;
}

.hm-photo-wrap .hero-photo-showcase:hover {
  transform: none;
}

.hm-photo-wrap .hero-photo-media-wrapper {
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(90, 62, 43, 0.18);
}

.hm-photo-wrap .hero-photo-img {
  border-radius: 18px;
  animation: hmKenBurns 22s ease-in-out infinite alternate;
  transform-origin: 50% 35%;
}

.hm-photo-wrap .hero-photo-showcase:hover .hero-photo-img {
  transform: none;
}

.hm-photo-wrap .hero-photo-overlay-gradient {
  border-radius: 18px;
  background: none;
}

@keyframes hmKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Caption strip: part of the frame, below the photo */
.hm-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px 16px;
  line-height: 1.25;
  text-align: left;
}

.hm-caption img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.hm-caption b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--walnut);
}

.hm-caption small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-ink);
}

/* ---------- Stats band ---------- */
.hm-stats {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.5rem auto 3.5rem;
  max-width: 960px;
  background: var(--paper);
  border: 1px solid var(--walnut-border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hm-stat {
  padding: 22px 20px;
  text-align: center;
  position: relative;
}

.hm-stat + .hm-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--walnut-border);
}

.hm-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--walnut);
  font-variant-numeric: tabular-nums;
}

.hm-stat-num sup {
  font-size: 0.5em;
  color: var(--amber);
  vertical-align: super;
  margin-left: 1px;
}

.hm-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-ink);
}

/* ---------- Generic section heading ---------- */
.hm-section {
  margin-bottom: 4rem;
}

.hm-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.hm-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 0.5rem;
}

.hm-heading h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--walnut);
  margin-bottom: 0.6rem;
}

.hm-heading h3 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--amber-ink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-heading p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Overview ---------- */
.hm-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hm-overview-text {
  background: var(--paper-glass);
  border: 1px solid var(--walnut-border);
  border-radius: 24px;
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
}

.hm-overview-text .hm-kicker {
  display: block;
}

.hm-overview-text h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--walnut);
  margin-bottom: 1rem;
}

.hm-overview-text p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}

.hm-pillars {
  display: grid;
  gap: 12px;
}

.hm-pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-sm);
  color: var(--walnut-ink);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

a.hm-pillar:hover {
  transform: translateX(4px);
  border-color: var(--amber-border);
  box-shadow: var(--shadow-md);
  color: var(--walnut-ink);
}

.hm-pillar i {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
}

.hm-pillar:nth-child(2) i {
  background: var(--sage-tint);
  border-color: var(--sage-border);
}

.hm-pillar:nth-child(3) i {
  background: var(--walnut-tint);
  border-color: var(--walnut-border);
}

.hm-pillar i svg {
  width: 22px;
  height: 22px;
  stroke: var(--walnut);
}

.hm-pillar b {
  display: block;
  font-size: 1rem;
  color: var(--walnut);
}

.hm-pillar small {
  display: block;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Focus areas ---------- */
.hm-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.hm-focus-card {
  position: relative;
  border-radius: 24px;
  padding: 28px 26px 24px;
  background: var(--paper-glass);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.hm-focus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber-border);
}

.hm-focus-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amber), #E9AE5C);
}

.hm-focus-card--sage::before { background: linear-gradient(90deg, var(--sage), #B4CC9E); }
.hm-focus-card--walnut::before { background: linear-gradient(90deg, var(--walnut), #8B6A4E); }

.hm-focus-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(90, 62, 43, 0.07);
}

.hm-focus-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, #E39A3B, var(--amber));
  box-shadow: 0 12px 24px -12px rgba(213, 133, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hm-focus-card--sage .hm-focus-icon {
  background: linear-gradient(145deg, #9BBB80, var(--sage));
  box-shadow: 0 12px 24px -12px rgba(135, 169, 107, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hm-focus-card--walnut .hm-focus-icon {
  background: linear-gradient(145deg, #74533B, var(--walnut));
  box-shadow: 0 12px 24px -12px rgba(90, 62, 43, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hm-focus-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--walnut-deep);
}

.hm-focus-card--walnut .hm-focus-icon svg {
  stroke: var(--cream);
}

.hm-focus-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--walnut);
  margin-bottom: 0.55rem;
}

.hm-focus-card > p {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.hm-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.hm-tags li {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--walnut-border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--walnut-ink);
}

.hm-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amber-ink);
}

.hm-more summary::-webkit-details-marker {
  display: none;
}

.hm-more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-fast);
}

.hm-more[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.hm-more summary:hover {
  color: var(--walnut);
}

.hm-more p {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--walnut-border);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Highlights ---------- */
.hm-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hm-hl {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-md);
  color: var(--walnut-ink);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hm-hl:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--walnut-ink);
}

.hm-hl-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}

.hm-hl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-hl:hover .hm-hl-media img {
  transform: scale(1.06);
}

.hm-hl-media .gx-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 253, 248, 0.94);
}

.hm-hl-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hm-hl-body b {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--walnut);
  margin-bottom: 6px;
}

.hm-hl-body small {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.hm-hl-link {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--amber-ink);
}

.hm-hl-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.hm-hl:hover .hm-hl-link svg {
  transform: translateX(4px);
}

/* ---------- Partners (static row, each partner shown once) ---------- */
.hm-partners {
  position: relative;
  border-radius: 24px;
  background: var(--paper-glass);
  border: 1px solid var(--walnut-border);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.hm-marquee {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
}

.hm-marquee li {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hm-marquee li:hover {
  transform: translateY(-3px);
  border-color: var(--amber-border, rgba(213, 133, 31, 0.4));
  box-shadow: var(--shadow-md);
}
.hm-marquee li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 1px solid var(--walnut-border);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--walnut);
  white-space: nowrap;
}

.hm-marquee img {
  height: 40px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.hm-marquee img.hm-round {
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.hm-marquee img.hm-oval {
  width: 58px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- HoD section tweaks ---------- */
.hm-hod {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hm-hod:hover {
  background: transparent;
  box-shadow: none;
}

.hm-hod .flip-gallery-container {
  margin-top: 0;
}

/* ---------- Closing CTA band ---------- */
.hm-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 46px 40px;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 133, 31, 0.5), transparent 45%),
    radial-gradient(circle at 95% 100%, rgba(135, 169, 107, 0.55), transparent 50%),
    linear-gradient(135deg, #5A3E2B, #3B2A1E);
  box-shadow: var(--shadow-lg);
}

.hm-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(251, 247, 239, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hm-cta > * {
  position: relative;
  z-index: 1;
}

.hm-cta .hm-kicker {
  color: var(--amber-soft);
}

.hm-cta h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.hm-cta p {
  color: rgba(251, 247, 239, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hm-overview {
    grid-template-columns: 1fr;
  }
  .hm-focus {
    grid-template-columns: 1fr;
  }
  .hm-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
  }
  .hm-stat:nth-child(3)::before {
    display: none;
  }
  .hm-stat:nth-child(n+3) {
    border-top: 1px solid var(--walnut-border);
  }
}

@media (max-width: 768px) {
  .hm-hero {
    padding-top: 1.8rem;
  }
  .hm-hero .hero-inner {
    text-align: center;
  }
  .hm-hero h2 {
    font-size: 1.7rem;
  }
  .hm-btn {
    padding: 11px 18px;
    font-size: 0.88rem;
  }
  .hm-photo-wrap .hero-photo-showcase { padding: 8px 8px 0; border-radius: 20px; }
  .hm-photo-wrap .hero-photo-showcase::after { inset: 3px; border-radius: 17px; }
  .hm-photo-wrap .hero-photo-media-wrapper,
  .hm-photo-wrap .hero-photo-img { border-radius: 14px; }
  .hm-caption { padding: 10px 10px 12px; gap: 8px; }
  .hm-caption img { width: 28px; height: 28px; }
  .hm-caption b { font-size: 0.86rem; }
  .hm-caption small { font-size: 0.68rem; }
.hm-stats {
    margin: 1.2rem 0 2.5rem;
  }
  .hm-stat {
    padding: 16px 12px;
  }
  .hm-stat-num {
    font-size: 1.8rem;
  }
  .hm-section {
    margin-bottom: 2.75rem;
  }
  .hm-overview-text {
    padding: 22px 18px;
  }
  .hm-focus-card {
    padding: 22px 18px 18px;
  }
  .hm-cta {
    padding: 32px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .hm-highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-photo-wrap .hero-photo-showcase::before,
  .hm-photo-wrap .hero-photo-img {
    animation: none;
  }
}
