/* Hogar Constructions — Founders section (home page) */

.founders { position: relative; overflow: hidden; }
.founders::before { /* faint crimson glow behind the founder */
  content: ''; position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; inset-inline-start: -22vw; top: 18%;
  background: radial-gradient(closest-side, rgba(122, 36, 38, .38), transparent 70%); pointer-events: none;
}
.founders__num {
  position: absolute; inset-inline: 0; top: clamp(140px, 22vw, 320px); pointer-events: none; white-space: nowrap; text-align: center; z-index: 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(180px, 34vw, 560px); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(252, 249, 245, .09);
}
.founders__num span { display: inline-block; }
.founders .container { position: relative; z-index: 1; }

/* head */
.founders__head { max-width: 980px; margin-bottom: clamp(64px, 9vw, 130px); }
.founders__head .eyebrow { color: var(--t-accent, var(--red)); }
.founders__title { margin-bottom: 34px; }
.founders__intro { max-width: 60ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; color: var(--t-muted); margin: 0; }

/* the founder */
.fdr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.fdr__visual { --gray: 1; position: relative; padding-bottom: 18%; padding-inline-end: 12%; }
.fdr__portrait { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #0F1211; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.fdr__portrait img, .fdr__archive img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(var(--gray)) contrast(1.06) brightness(calc(1 - var(--gray) * .14)); will-change: transform; }
.fdr__portrait::after { /* film grain + soft vignette for old prints */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, transparent 55%, rgba(10, 12, 11, .55)), linear-gradient(180deg, transparent 60%, rgba(10, 12, 11, .45));
}
.fdr__archive {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden;
  border: 10px solid #F3EEE6; border-bottom-width: 34px; background: #F3EEE6; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); transform: rotate(-4deg);
}
html[dir="rtl"] .fdr__archive { transform: rotate(4deg); }
.fdr__badge {
  position: absolute; top: -26px; inset-inline-end: 4%; width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px;
  background: var(--red); color: var(--ivory); box-shadow: 0 18px 40px -12px rgba(223, 57, 49, .6); z-index: 2;
}
.fdr__badge b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.fdr__badge small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
html[lang="ar"] .fdr__badge small { letter-spacing: 0; font-size: 13px; }

.fdr__body { padding-top: clamp(8px, 3vw, 48px); }
.fdr__role { color: var(--t-accent, var(--red)); }
.fdr__no { font-family: var(--serif); font-size: 15px; letter-spacing: 0; margin-inline-end: 4px; color: var(--t-muted); }
.fdr__role::before { display: none; }
.fdr__name { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.6vw, 96px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.fdr__rule { display: block; width: 120px; height: 2px; margin: 34px 0; background: linear-gradient(90deg, var(--red), transparent); transform-origin: left; }
html[dir="rtl"] .fdr__rule { background: linear-gradient(-90deg, var(--red), transparent); transform-origin: right; }
.fdr__bio { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.8; color: rgba(252, 249, 245, .84); margin: 0 0 48px; max-width: 58ch; }

/* founder timeline */
.ftl { --line: 1; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.ftl::before, .ftl::after { content: ''; position: absolute; inset-inline-start: 7px; top: 10px; bottom: 10px; width: 1px; }
.ftl::before { background: var(--t-line); }
.ftl::after { background: linear-gradient(180deg, var(--red), var(--crimson)); transform: scaleY(var(--line)); transform-origin: top; }
.ftl__item { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--t-line); }
html[dir="rtl"] .ftl__item { padding: 14px 40px 14px 0; }
.ftl__item::before { /* the node */
  content: ''; position: absolute; inset-inline-start: 2px; top: 22px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(252, 249, 245, .4); transition: background .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.ftl__item.is-in::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(223, 57, 49, .16); }
.ftl__year { font-family: var(--serif); font-size: 20px; color: var(--ivory); white-space: nowrap; }
.ftl__text { color: var(--t-muted); font-size: 15.5px; line-height: 1.55; padding-top: 3px; }
.ftl__item:hover .ftl__text { color: var(--ivory); }

/* next generation */
.fnext { margin-top: clamp(96px, 12vw, 180px); }
.fnext__head { display: flex; align-items: center; gap: 28px; margin-bottom: 48px; }
.fnext__head .eyebrow { margin: 0; color: var(--t-accent, var(--red)); flex: none; }
.fnext__line { flex: 1; height: 1px; background: var(--t-line); transform-origin: left; }
html[dir="rtl"] .fnext__line { transform-origin: right; }
.fnext__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.fnext__grid--1 { grid-template-columns: minmax(0, 680px); }
.fnext__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; overflow: hidden; border-radius: 6px;
  background: linear-gradient(160deg, rgba(252, 249, 245, .07), rgba(252, 249, 245, .02)); border: 1px solid rgba(252, 249, 245, .1);
  transform-style: preserve-3d; will-change: transform; transition: border-color .6s var(--ease), background .6s var(--ease);
}
.fcard:hover { border-color: rgba(223, 57, 49, .5); background: linear-gradient(160deg, rgba(252, 249, 245, .1), rgba(252, 249, 245, .03)); }
.fcard__media { position: relative; overflow: hidden; min-height: 380px; background: #111413; }
.fcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.fcard:hover .fcard__media img { filter: grayscale(0) contrast(1.02); transform: scale(1.04); }
.fcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 11, .6)); pointer-events: none; }
.fcard__no { position: absolute; inset-inline-start: 18px; bottom: 14px; z-index: 2; font-family: var(--serif); font-size: 15px; color: rgba(252, 249, 245, .8); }

/* initials card — used until a photo is added in the dashboard */
.fcard__mono { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #8E2B2D, var(--crimson) 45%, #4A1517); overflow: hidden; }
.fcard__mono b { position: relative; z-index: 1; font-family: var(--serif); font-weight: 300; font-size: clamp(72px, 7vw, 120px); letter-spacing: .02em; color: var(--ivory); line-height: 1; }
.fcard__slabs { position: absolute; inset: 0; display: grid; align-content: center; gap: 14%; padding-inline: 0; opacity: .14; transform: skewY(-12deg); }
.fcard__slabs i { display: block; height: 34px; background: var(--ivory); border-radius: 0 40px 40px 0; transform-origin: left; }
.fcard__slabs i:nth-child(2) { width: 82%; }
.fcard__slabs i:nth-child(3) { width: 64%; }

.fcard__body { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; }
.fcard__role { margin-bottom: 14px; color: var(--t-accent, var(--red)); }
.fcard__name { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.6vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.fcard__bio { margin: 0 0 22px; font-size: 15.5px; line-height: 1.75; color: rgba(252, 249, 245, .78); }
.fcard__ms { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--t-line); display: grid; gap: 10px; }
.fcard__ms li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--t-muted); }
.fcard__ms b { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--ivory); white-space: nowrap; }
.fcard__ms .fcard__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-top: 8px; }
.fcard__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(252, 249, 245, .09), transparent 45%); z-index: 3; }
.fcard:hover .fcard__glare { opacity: 1; }

/* without motion everything is simply visible */
html.no-anim .fdr__portrait, html.no-anim .fdr__archive, html.no-anim .fcard__media { clip-path: none !important; }

@media (max-width: 1100px) {
  .fnext__grid, .fnext__grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .fdr { grid-template-columns: minmax(0, 1fr); }
  .fdr__visual { max-width: 560px; }
  .founders__num { top: 120px; }
}
@media (max-width: 620px) {
  .fcard { grid-template-columns: minmax(0, 1fr); }
  .fcard__media { aspect-ratio: 4 / 3.4; }
  .fcard__media img { object-position: 50% 22%; }
  .ftl__item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fdr__badge { width: 92px; height: 92px; top: -18px; }
  .fdr__badge b { font-size: 26px; }
  .fcard__ms li { grid-template-columns: 70px 1fr; }
}
