/* =====================================================================
   Homepage reviews (front-page.php, section .rv2) — rating summary, platform filter, review rail.
   The rail itself (arrows, track, progress) uses the .kz-rail styles from kili.css.
   ===================================================================== */
.rv2 { padding: 110px 0 100px; background: linear-gradient(180deg, #fff 0%, #faf6ef 100%); font-family: var(--ui, 'Jost', sans-serif); }

/* header: heading + rating card */
.rv2__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 60px; align-items: end; margin-bottom: 44px; }
.rv2__intro p { max-width: 560px; margin: 16px 0 0; color: #5b5045; font-size: 17px; line-height: 1.7; }
.rv2__summary { padding: 26px 28px; border: 1px solid #ece2d3; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -40px rgba(43, 33, 24, .4); }
.rv2__score { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #f0e7da; }
.rv2__score b { font: 600 64px/.9 var(--head); color: var(--espresso, #2b2118); }
.rv2__score > span { display: grid; gap: 4px; }
.rv2__stars { color: #e6a23c; font-size: 20px; letter-spacing: 3px; }
.rv2__score small { font-size: 14px; line-height: 1.45; color: #6b5f52; }
.rv2__platforms { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.rv2__platforms li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 10px; }
.rv2__platforms li:hover { background: #faf6ef; }
.rv2__platforms .src-logo { flex: none; }
.rv2__pname { flex: 1; display: grid; font-weight: 600; font-size: 15px; color: var(--espresso, #2b2118); }
.rv2__pname small { font-weight: 400; font-size: 13px; color: #8a7d6e; }
.rv2__pscore { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fdf3e2; }
.rv2__pscore b { font-size: 15px; color: var(--espresso, #2b2118); }
.rv2__pscore i { font-style: normal; color: #e6a23c; }
.rv2__platforms a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #8a7d6e; }
.rv2__platforms a:hover { background: var(--espresso, #2b2118); color: #fff; }
.rv2__platforms a .ic { width: 15px; height: 15px; }

/* filter tabs (inside the rail bar) */
.rv2__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rv2__tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #e7dccb; border-radius: 999px; background: #fff; font: 500 14.5px var(--ui, sans-serif); color: var(--espresso, #2b2118); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rv2__tab span { padding: 2px 8px; border-radius: 999px; background: var(--orange-soft, #fdeed8); color: var(--orange-ink, #a8620a); font-size: 12px; font-weight: 600; }
.rv2__tab .src-logo { transform: scale(.8); margin: -4px -2px -4px -6px; }
.rv2__tab:hover { border-color: var(--orange, #f9a94a); }
.rv2__tab.is-active { background: var(--espresso, #2b2118); border-color: var(--espresso, #2b2118); color: #fff; }

/* review cards */
.rv2__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); align-items: stretch; }
.rv-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 26px 26px 22px; border: 1px solid #ece2d3; border-radius: 20px; background: #fff; scroll-snap-align: start; transition: box-shadow .3s, transform .3s; }
.rv-card[hidden] { display: none; }
.rv-card:hover { box-shadow: 0 26px 50px -30px rgba(43, 33, 24, .45); transform: translateY(-3px); }
.rv-card::before { content: "“"; position: absolute; top: 6px; right: 22px; font: 600 96px/1 var(--head); color: #f4ebde; pointer-events: none; }
.rv-card__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rv-card__stars { color: #e6a23c; letter-spacing: 2px; font-size: 16px; }
.rv-card__src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #faf6ef; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b5f52; }
.rv-card__src .src-logo { transform: scale(.75); margin: -4px; }
.rv-card__title { margin: 0 0 8px; font: 600 21px/1.25 var(--head); color: var(--espresso, #2b2118); }
.rv-card__text { position: relative; margin: 0; }
.rv-card__text p { margin: 0; font: italic 400 18.5px/1.6 var(--head); color: #3d342b; }
.rv-card__text.is-long p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card__text.is-open p { display: block; -webkit-line-clamp: unset; }
.rv-card__more { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; font: 600 13px var(--ui, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink, #a8620a); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rv-card__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid #f0e7da; }
.rv-card__av { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--espresso, #2b2118); color: var(--orange, #f9a94a); font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.rv-card__av .ic { width: 22px; height: 22px; }
.rv-card__who > span:not(.rv-card__av) { flex: 1; display: grid; min-width: 0; }
.rv-card__who strong { font-size: 15.5px; color: var(--espresso, #2b2118); }
.rv-card__who small { font-size: 13px; color: #8a7d6e; }
.rv-card__link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e7dccb; border-radius: 50%; color: #6b5f52; }
.rv-card__link:hover { background: var(--espresso, #2b2118); border-color: var(--espresso, #2b2118); color: #fff; }
.rv-card__link .ic { width: 15px; height: 15px; }

/* footer */
.rv2__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding: 20px 26px; border-radius: 16px; background: #fff; border: 1px solid #ece2d3; }
.rv2__foot p { margin: 0; color: #5b5045; font-size: 16px; }
.rv2__foot p b { color: var(--espresso, #2b2118); }
.rv2__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rv2__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--espresso, #2b2118); text-decoration: none; }
.rv2__links a:hover { color: var(--orange-ink, #a8620a); }
.rv2__links .src-logo { transform: scale(.8); margin: -4px; }
.rv2__links .ic { width: 13px; height: 13px; color: #8a7d6e; }

@media (max-width: 1100px) {
  .rv2__head { grid-template-columns: 1fr; gap: 30px; }
  .rv2__track { grid-auto-columns: calc((100% - 18px) / 2); }
}
@media (max-width: 720px) {
  .rv2 { padding: 70px 0; }
  .rv2 .kz-rail__bar { flex-direction: column; align-items: stretch; }
  .rv2 .kz-rail__nav { justify-content: flex-end; }
  .rv2__track { grid-auto-columns: 88%; }
  .rv2__score b { font-size: 54px; }
  .rv2__foot { flex-direction: column; align-items: flex-start; }
}
.rv-card__text, .rv-card__more { margin-bottom: 20px; }
.rv-card__text + .rv-card__more { margin-top: -12px; }

/* ---- compact version: no rating card, 4 small cards per row ---- */
.rv2 { padding: 90px 0 80px; }
.rv2__head { grid-template-columns: 1fr; margin-bottom: 30px; }
.rv2__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; align-items: stretch; }
.rv-card { padding: 20px 20px 16px; border-radius: 16px; }
.rv-card::before { top: 2px; right: 16px; font-size: 64px; }
.rv-card__top { margin-bottom: 10px; }
.rv-card__stars { font-size: 13px; letter-spacing: 1px; }
.rv-card__src { padding: 3px 8px 3px 3px; font-size: 10.5px; }
.rv-card__title { margin-bottom: 6px; font-size: 17px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__text p { font-size: 16px; line-height: 1.55; }
.rv-card__text.is-long p { -webkit-line-clamp: 4; }
.rv-card__text, .rv-card__more { margin-bottom: 14px; }
.rv-card__more { font-size: 11.5px; }
.rv-card__who { gap: 10px; padding-top: 12px; }
.rv-card__av { width: 36px; height: 36px; font-size: 13px; }
.rv-card__who strong { font-size: 14.5px; }
.rv-card__who small { font-size: 12.5px; }
.rv-card__link { width: 30px; height: 30px; }
.rv2 .kz-arrow { color: var(--espresso, #2b2118); }
.rv2 .kz-arrow:focus-visible { outline: 2px solid var(--orange, #f9a94a); outline-offset: 2px; }
@media (max-width: 1280px) { .rv2__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 900px) { .rv2__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .rv2__track { grid-auto-columns: 86%; } }

/* =====================================================================
   Homepage blog (front-page.php, section .stx): featured article + list + topics
   ===================================================================== */
.stx { padding: 100px 0 90px; background: #faf6ef; font-family: var(--ui, 'Jost', sans-serif); }
.stx__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.stx__copy { max-width: 560px; margin: 14px 0 0; color: #5b5045; font-size: 17px; line-height: 1.7; }
.stx__head .btn { flex: none; }
.stx__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.stx__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; font-size: 13px; color: #8a7d6e; }
.stx__meta > span + span { padding-left: 12px; border-left: 1px solid #e2d7c6; }
.stx__meta--light { margin: 8px 0 0; }
.stx__cat { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink, #a8620a); text-decoration: none; }
a.stx__cat:hover { text-decoration: underline; }

/* featured */
.stx-main { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid #ece2d3; box-shadow: 0 30px 60px -44px rgba(43, 33, 24, .5); transition: box-shadow .35s; }
.stx-main:hover { box-shadow: 0 40px 70px -40px rgba(43, 33, 24, .55); }
.stx-main__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9dfd0; }
.stx-main__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease, ease); }
.stx-main:hover .stx-main__img img { transform: scale(1.05); }
.stx__flag { position: absolute; top: 18px; left: 18px; padding: 7px 13px; border-radius: 999px; background: var(--orange, #f9a94a); color: var(--espresso, #2b2118); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stx-main__body { display: flex; flex-direction: column; flex: 1; padding: 28px 32px 30px; }
.stx-main__title { margin: 0 0 12px; font: 600 clamp(26px, 2.2vw, 34px)/1.15 var(--head); }
.stx-main__title a, .stx-item__title a { color: var(--espresso, #2b2118); text-decoration: none; }
.stx-main__title a:hover, .stx-item__title a:hover { color: var(--orange-ink, #a8620a); }
.stx-main__text { margin: 0 0 20px; color: #5b5045; font-size: 16px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stx__more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 22px; border-radius: 8px; background: var(--espresso, #2b2118); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.stx__more:hover { background: var(--orange, #f9a94a); color: var(--espresso, #2b2118); }
.stx__more .ic { width: 15px; height: 15px; }

/* list */
.stx-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.stx-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #ece2d3; transition: transform .3s, box-shadow .3s; }
.stx-item:hover { transform: translateX(4px); box-shadow: 0 20px 40px -30px rgba(43, 33, 24, .45); }
.stx-item__img { display: block; height: 100%; min-height: 120px; border-radius: 12px; overflow: hidden; background: #e9dfd0; }
.stx-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.stx-item:hover .stx-item__img img { transform: scale(1.06); }
.stx-item__body { padding-right: 8px; }
.stx-item__body .stx__meta { margin-bottom: 6px; }
.stx-item__title { margin: 0; font: 600 20px/1.25 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* topics */
.stx-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.stx-topics span { margin-right: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso, #2b2118); }
.stx-topics a { padding: 9px 16px; border: 1px solid #e2d7c6; border-radius: 999px; background: #fff; color: #4a3f34; font-size: 14px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.stx-topics a:hover { background: var(--espresso, #2b2118); border-color: var(--espresso, #2b2118); color: #fff; }

@media (max-width: 1100px) {
  .stx__grid { grid-template-columns: 1fr; }
  .stx-list { grid-template-rows: none; }
}
@media (max-width: 720px) {
  .stx { padding: 70px 0; }
  .stx__head { flex-direction: column; align-items: flex-start; }
  .stx-main__body { padding: 22px 20px 24px; }
  .stx-item { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 10px; }
  .stx-item__img { min-height: 96px; }
  .stx-item__title { font-size: 18px; }
}

/* =====================================================================
   Homepage FAQ (front-page.php, section .fq): sticky side panel + question cards
   ===================================================================== */
.fq { padding: 100px 0; background: #fff; font-family: var(--ui, 'Jost', sans-serif); }
.fq .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 60px; align-items: start; }
.fq__side { position: sticky; top: 110px; }
.fq__copy { margin: 16px 0 24px; color: #5b5045; font-size: 17px; line-height: 1.7; }
.fq__search { position: relative; display: block; margin-bottom: 24px; }
.fq__search .ic { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #8a7d6e; }
.fq__search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border: 1px solid #e2d7c6; border-radius: 999px; background: #faf6ef; font: 400 15.5px var(--ui, sans-serif); color: var(--espresso, #2b2118); }
.fq__search input:focus { outline: 2px solid var(--orange, #f9a94a); outline-offset: 1px; background: #fff; }

.fq-ask { position: relative; overflow: hidden; padding: 28px 28px 26px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #2b2118 0%, #3d2f22 60%, #5b4126 100%); box-shadow: 0 30px 60px -36px rgba(43, 33, 24, .7); }
.fq-ask::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 169, 74, .35), transparent 70%); }
.fq-ask__faces { position: relative; display: inline-flex; margin-bottom: 16px; }
.fq-ask__faces img { width: 48px; height: 48px; border: 3px solid #3d2f22; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.fq-ask__faces img + img { margin-left: -12px; }
.fq-ask__online { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border: 2px solid #3d2f22; border-radius: 50%; background: #3ccf6e; }
.fq-ask__title { margin: 0 0 6px; font: 600 26px/1.15 var(--head); }
.fq-ask__text { margin: 0 0 20px; color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.6; }
.fq-ask__btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fq-ask__link { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none; opacity: .9; }
.fq-ask__link:hover { opacity: 1; color: var(--orange, #f9a94a); }
.fq-ask__link .ic { width: 17px; height: 17px; color: var(--orange, #f9a94a); }

.fq__list { display: grid; gap: 12px; }
.fq-item { border: 1px solid #ece2d3; border-radius: 18px; background: #fff; transition: border-color .25s, box-shadow .25s, background .25s; }
.fq-item[hidden] { display: none; }
.fq-item:hover { border-color: #e0cdb0; }
.fq-item[open] { border-color: transparent; background: #faf6ef; box-shadow: 0 24px 50px -36px rgba(43, 33, 24, .45); }
.fq-item summary { display: flex; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; list-style: none; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid var(--orange, #f9a94a); outline-offset: 2px; border-radius: 18px; }
.fq-item__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f6efe4; color: var(--orange-ink, #a8620a); font: 600 15px var(--ui, sans-serif); transition: background .25s, color .25s; }
.fq-item[open] .fq-item__n { background: var(--espresso, #2b2118); color: var(--orange, #f9a94a); }
.fq-item__q { flex: 1; font: 600 21px/1.3 var(--head); color: var(--espresso, #2b2118); }
.fq-item__ic { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid #e2d7c6; border-radius: 50%; background: #fff; transition: transform .3s, background .3s, border-color .3s; }
.fq-item__ic::before, .fq-item__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--espresso, #2b2118); transform: translate(-50%, -50%); }
.fq-item__ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.fq-item[open] .fq-item__ic { background: var(--orange, #f9a94a); border-color: var(--orange, #f9a94a); }
.fq-item[open] .fq-item__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq-item__a { padding: 0 24px 24px 82px; color: #5b5045; font-size: 16px; line-height: 1.75; animation: fq-in .35s ease; }
.fq-item__a p { margin: 0 0 12px; }
.fq-item__a ul { margin: 0 0 12px; padding-left: 20px; }
.fq-item__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink, #a8620a); text-decoration: none; }
.fq-item__more .ic { width: 15px; height: 15px; transition: transform .3s; }
.fq-item__more:hover .ic { transform: translateX(4px); }
@keyframes fq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fq__none { margin: 10px 0 0; padding: 22px; border: 1px dashed #e2d7c6; border-radius: 16px; color: #5b5045; text-align: center; }
.fq__none a { color: var(--orange-ink, #a8620a); font-weight: 600; }

@media (max-width: 1000px) {
  .fq__grid { grid-template-columns: 1fr; gap: 36px; }
  .fq__side { position: static; }
}
@media (max-width: 640px) {
  .fq { padding: 70px 0; }
  .fq-item summary { gap: 12px; padding: 18px 16px; }
  .fq-item__n { width: 34px; height: 34px; font-size: 13.5px; }
  .fq-item__q { font-size: 18.5px; }
  .fq-item__a { padding: 0 16px 20px; }
}

/* =====================================================================
   Homepage team (front-page.php, inside the About section: .tm)
   ===================================================================== */
.tm { margin-top: 110px; font-family: var(--ui, 'Jost', sans-serif); }
.tm__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: end; margin-bottom: 44px; }
.tm__title { margin: 10px 0 0; }
.tm__side p { margin: 0 0 18px; color: #5b5045; font-size: 17px; line-height: 1.7; }
.tm__links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.tm__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--espresso, #2b2118); text-decoration: none; border-bottom: 2px solid var(--orange, #f9a94a); padding-bottom: 4px; }
.tm__link .ic { width: 15px; height: 15px; transition: transform .3s; }
.tm__link:hover .ic { transform: translateX(4px); }
.tm__link--wa { border-bottom-color: transparent; color: #4a3f34; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.tm__link--wa .ic { color: #25a35a; width: 18px; height: 18px; }

.tm__grid { display: grid; grid-template-columns: repeat(var(--tm-cols, 5), minmax(0, 1fr)); gap: 18px; align-items: start; padding-bottom: 40px; }
.tm__grid--1 { --tm-cols: 2; } .tm__grid--2 { --tm-cols: 3; } .tm__grid--3 { --tm-cols: 4; } .tm__grid--4 { --tm-cols: 5; } .tm__grid--5 { --tm-cols: 6; } .tm__grid--6 { --tm-cols: 4; }
.tm-card, .tm-cta { position: relative; margin: 0; aspect-ratio: 3 / 4.2; border-radius: 22px; overflow: hidden; transition-delay: var(--d, 0ms); }
.tm__grid > :nth-child(even) { transform: translateY(40px); }
.tm__grid > .reveal.is-in:nth-child(even) { transform: translateY(40px); }
.tm-card { background: #d9cbb6; box-shadow: 0 30px 50px -36px rgba(43, 33, 24, .7); }
.tm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform 1s var(--ease, ease); }
.tm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 22, 16, 0) 50%, rgba(29, 22, 16, .9) 100%); }
.tm-card:hover img { transform: scale(1.07); }
.tm-card figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.tm-card__role { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; background: var(--orange, #f9a94a); color: var(--espresso, #2b2118); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tm-card__name { display: block; font: 500 24px/1.1 var(--head); }
.tm-card__bio { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); transition: max-height .5s var(--ease, ease), opacity .4s, margin .4s; }
.tm-card:hover .tm-card__bio { max-height: 110px; opacity: 1; margin-top: 8px; }

.tm-cta { display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--espresso, #2b2118); box-shadow: 0 30px 50px -36px rgba(43, 33, 24, .8); }
.tm-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: transform 1s var(--ease, ease), opacity .4s; }
.tm-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 33, 24, .2), rgba(43, 33, 24, .92)); }
.tm-cta:hover .tm-cta__bg { transform: scale(1.06); opacity: .45; }
.tm-cta__body { position: relative; z-index: 1; display: grid; gap: 8px; padding: 22px 20px; }
.tm-cta__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--orange, #f9a94a); color: var(--espresso, #2b2118); }
.tm-cta__ic .ic { width: 22px; height: 22px; }
.tm-cta strong { font: 600 24px/1.15 var(--head); }
.tm-cta small { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tm-cta__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange, #f9a94a); }
.tm-cta__btn .ic { width: 15px; height: 15px; transition: transform .3s; }
.tm-cta:hover .tm-cta__btn .ic { transform: translateX(4px); }

@media (max-width: 1200px) {
  .tm__grid { --tm-cols: 3 !important; }
  .tm__grid > :nth-child(even), .tm__grid > .reveal.is-in:nth-child(even) { transform: none; }
  .tm__grid { padding-bottom: 0; }
}
@media (max-width: 900px) {
  .tm { margin-top: 80px; }
  .tm__head { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .tm__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--gutter, 16px) * -1); padding-right: var(--gutter, 16px); }
  .tm__grid::-webkit-scrollbar { display: none; }
  .tm-card, .tm-cta { flex: 0 0 72%; scroll-snap-align: start; }
  .tm-card__bio { max-height: 110px; opacity: 1; margin-top: 8px; }
}

/* team: even row (no zigzag), polished cards */
.tm__grid { align-items: stretch; padding-bottom: 0; gap: 16px; }
.tm__grid > :nth-child(even), .tm__grid > .reveal.is-in:nth-child(even) { transform: none; }
.tm-card, .tm-cta { aspect-ratio: 3 / 4; border-radius: 20px; transition: transform .45s var(--ease, ease), box-shadow .45s; }
.tm-card { box-shadow: 0 18px 36px -24px rgba(43, 33, 24, .55); outline: 1px solid rgba(43, 33, 24, .06); outline-offset: -1px; }
.tm-card:hover, .tm-cta:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(43, 33, 24, .65); }
.tm-card::after { background: linear-gradient(180deg, rgba(29, 22, 16, 0) 55%, rgba(29, 22, 16, .75) 100%); }
.tm-card::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange, #f9a94a); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease, ease); }
.tm-card:hover::before { transform: scaleX(1); }
.tm-card img { object-position: 50% 35%; }
.tm-card figcaption { left: 16px; right: 16px; bottom: 18px; }
.tm-cta__body { padding: 22px 18px; }
.tm-cta strong { font-size: 22px; }
@media (max-width: 1200px) { .tm-card, .tm-cta { aspect-ratio: 3 / 3.8; } }

/* team: compact title tag + name for the narrow cards */
.tm-card__role { padding: 4px 9px; border-radius: 7px; font-size: 9.5px; line-height: 1.35; letter-spacing: .1em; max-width: 100%; }
.tm-card__name { font-size: 22px; }
.tm-card::after { background: linear-gradient(180deg, rgba(29, 22, 16, 0) 50%, rgba(29, 22, 16, .82) 100%); }

/* team: bio on hover, with a darker fade so it reads well */
.tm-card__bio { font-size: 13px; line-height: 1.45; }
.tm-card:hover .tm-card__bio, .tm-card:focus-within .tm-card__bio { max-height: 170px; }
.tm-card::after { transition: background .45s; }
.tm-card:hover::after { background: linear-gradient(180deg, rgba(29, 22, 16, .05) 20%, rgba(29, 22, 16, .92) 100%); }
.wc-person:hover::after { background: linear-gradient(180deg, rgba(29, 22, 16, .05) 25%, rgba(29, 22, 16, .92) 100%); }
