/* Homepage galleries. Kept separate from the shared area and team listings. */
.home-area-section { padding-block: 48px; }
.home-area-carousel { --slide-width: calc((100% - 42px) / 4); --gallery-gap: 14px; min-width: 0; }
.home-area-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
.home-area-viewport::-webkit-scrollbar { display: none; }
.home-area-track {
  display: flex;
  gap: var(--gallery-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-area-slide { flex: 0 0 var(--slide-width); min-width: 0; }
.home-area-card {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #fff;
  background: #282521;
  text-decoration: none;
}
.home-area-media, .home-area-media::after { position: absolute; inset: 0; z-index: -1; }
.home-area-media::after { content: ''; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(12, 16, 18, .88)); }
.home-area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.16, 1, .3, 1); }
.home-area-card-body { display: grid; gap: 7px; padding-inline-end: 14px; }
.home-area-card-body strong { font-size: 1.08rem; line-height: 1.25; text-wrap: balance; }
.home-area-card-body > span { color: #eee7e1; font-size: .78rem; }
.home-area-card-arrow {
  position: absolute; inset-inline-end: 14px; bottom: 18px;
  display: grid; place-items: center; width: 20px; height: 20px;
  transition: background-color 200ms, transform 350ms cubic-bezier(.16, 1, .3, 1);
}
.home-area-card-arrow svg, .home-area-buttons svg { width: 22px; height: 22px; }
.home-area-card:hover .home-area-media img, .home-area-card:focus-visible .home-area-media img { transform: scale(1.055); }
.home-area-card:hover .home-area-card-arrow { transform: translateX(3px); }
.home-area-controls { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 14px; }
[dir="rtl"] .home-area-buttons svg { transform: rotate(180deg); }
.home-area-buttons { display: flex; gap: 10px; }
.home-area-buttons button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-border); border-radius: 50%;
  color: var(--c-text); background: var(--c-surface); cursor: pointer;
  transition: background-color 180ms, color 180ms, border-color 180ms;
}
.home-area-buttons button:hover:not(:disabled) { background: var(--c-warm); border-color: var(--c-primary); }
.home-area-buttons button:disabled { opacity: .35; cursor: default; }
.home-area-viewport:focus-visible, .home-area-buttons button:focus-visible, .home-area-card:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -4px; }
.home-page .home-about-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.home-about-layout > div:first-child { max-width: 720px; margin-inline: auto; text-align: center; }
.home-team-showcase { min-width: 0; }
.home-team-head { align-items: center; flex-wrap: wrap; gap: 16px; }
.home-team-count strong { display: inline-block; min-width: 2ch; color: var(--c-mint-fg); font-variant-numeric: tabular-nums; }
.home-team-showcase .home-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-team-grid .team-card { width: 100%; min-width: 0; aspect-ratio: auto; border: 0; display: flex; flex-direction: column; background: var(--c-bg-card); }
.home-team-grid .team-card img { position: static; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms cubic-bezier(.16, 1, .3, 1); }
.home-team-grid .team-card-initials { position: static; aspect-ratio: 4 / 5; }
.home-team-grid .team-card::after { content: none; }
.home-team-grid .team-card-info { position: relative; inset: auto; flex: 1; min-height: 130px; padding: 18px; border-radius: 0; background: var(--c-surface); box-shadow: none; backdrop-filter: none; }
.home-team-grid .team-card-info strong { color: var(--c-text); }
.home-team-grid .team-card-links { top: 12px; right: 12px; }
.home-team-grid .team-card:hover img, .home-team-grid .team-card:focus-within img { transform: scale(1.035); }
@keyframes team-portrait-arrive {
  from { clip-path: inset(0 0 14% 0 round 16px); transform: translateY(24px); opacity: .45; }
  to { clip-path: inset(0 round 16px); transform: translateY(0); opacity: 1; }
}
.home-team-showcase.is-motion-ready.is-visible .team-card { animation: team-portrait-arrive 650ms cubic-bezier(.16, 1, .3, 1) var(--portrait-delay, 0ms) both; }
.home-team-grid .team-card:nth-child(2) { --portrait-delay: 80ms; }
.home-team-grid .team-card:nth-child(3) { --portrait-delay: 160ms; }
.home-team-grid .team-card:nth-child(4) { --portrait-delay: 240ms; }
@media (max-width: 1000px) {
  .home-area-carousel { --slide-width: calc((100% - 28px) / 3); }
  .home-team-showcase .home-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-area-carousel { --slide-width: 74%; --gallery-gap: 12px; }
  .home-area-card { height: 210px; padding: 16px; }
  .home-area-card-body strong { font-size: 1.08rem; }
  .home-area-controls { gap: 16px; margin-top: 18px; }
  .home-team-showcase .home-team-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-team-grid .team-card { max-width: 420px; justify-self: center; }
  .home-team-grid .team-card-info { min-height: 114px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-team-showcase.is-motion-ready.is-visible .team-card { animation: none; }
  .home-area-media img, .home-team-grid .team-card img, .home-area-card-arrow { transition: none; transform: none !important; }
}
/* FAQ and contact share a balanced two-column section on the homepage. */
.home-page .home-faq-contact {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.home-faq-contact > div { min-width: 0; padding-top: 8px; }
.home-faq-contact .section-head { margin-bottom: 28px; }
.home-faq-contact .section-head h2,
.home-faq-contact .home-contact-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.home-faq-contact .section-sub { max-width: 48ch; font-size: 1.1rem; line-height: 1.65; }
.home-faq-question { border-bottom: 1px solid var(--c-border); }
.home-faq-question:first-child { border-top: 1px solid var(--c-border); }
.home-faq-question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  color: var(--c-text); font-size: 1rem; line-height: 1.45; font-weight: 600;
  transition: color 160ms;
}
.home-faq-question summary::-webkit-details-marker { display: none; }
.home-faq-question summary:hover, .home-faq-question[open] summary { color: var(--c-mint-fg); }
.home-faq-question summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 5px; border-radius: 4px; }
.home-faq-question summary svg { width: 22px; height: 22px; flex: 0 0 22px; }
.home-faq-plus { transform-origin: center; transition: transform 180ms; }
.home-faq-question[open] .home-faq-plus { transform: scaleY(0); }
.home-faq-answer { padding: 0 40px 22px 0; }
.home-faq-answer p { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--c-muted); }
.home-faq-question[open] .home-faq-answer { animation: home-faq-answer-in 180ms ease-out; }
@keyframes home-faq-answer-in { from { opacity: .3; } to { opacity: 1; } }
.home-faq-all { display: inline-flex; margin-top: 24px; }
.home-faq-contact .home-contact-panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  background: var(--c-surface-soft);
  border-color: var(--c-border);
  box-shadow: none;
}
.home-faq-contact .home-contact-panel > p { font-size: .95rem; line-height: 1.65; }
.home-faq-contact .home-contact-panel .lead-form { margin-top: 28px; gap: 18px; }
.home-faq-contact .lead-form label { gap: 8px; font-size: .85rem; color: var(--c-text); }
.home-faq-contact .lead-form input:not([type="hidden"]) {
  min-height: 52px; padding: 13px 15px; background: var(--c-surface); border-color: var(--c-border);
}
.home-faq-contact .lead-form .btn { min-height: 52px; margin-top: 4px; font-size: .95rem; }
.home-faq-contact .lead-form .lead-form-notice { font-size: .75rem; line-height: 1.6; color: var(--c-muted); }
@media (max-width: 900px) {
  .home-page .home-faq-contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
  .home-faq-question summary { gap: 16px; padding-block: 18px; font-size: .95rem; }
  .home-faq-answer { padding-inline-end: 0; }
  .home-faq-contact .home-contact-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-faq-question[open] .home-faq-answer { animation: none; }
  .home-faq-plus { transition: none; }
}

/* Home section subtitles ("A focused advisory process…") were too small. */
.home-page .section-head-center .section-sub:not(.reviews-summary) {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 62ch;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .home-page .section-head-center .section-sub:not(.reviews-summary) { font-size: 1.05rem; }
}
