/* About (Figma D02 646:73781 · T02 672:621 · M02 673:226) */

/* ---------- shared page bits (same in services/brokerage css) ---------- */
.page-title { font-size: 40px; }
@media (min-width: 768px) { .page-title { font-size: 67px; } }
.crumb { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sec-title { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-title .t-h2 { max-width: 560px; }
@media (max-width: 767px) { main .t-h2 { font-size: 28px; } }

/* ---------- intro ---------- */
.intro { padding: 40px 0 48px; }
.intro .crumb { margin-bottom: 36px; }
.intro-row { display: grid; gap: 32px; }
.intro-text { display: grid; gap: 16px; }
.intro-text .t-body { max-width: 600px; }
.facts { border-top: 1px solid var(--k600); }
.facts li { display: flex; align-items: center; gap: 16px; min-height: 41px; border-bottom: 1px solid var(--line); }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g700); flex: none; }
@media (max-width: 767px) { .intro-text .t-body { font-size: 15px; line-height: 1.5; } }
@media (min-width: 768px) {
  .intro { padding: 48px 0 72px; }
  .intro .crumb { margin-bottom: 56px; }
  .intro-text { gap: 28px; }
  .facts li { min-height: 47px; gap: 16px; }
}
@media (min-width: 1200px) {
  .intro-row { grid-template-columns: 600px 360px; justify-content: space-between; align-items: end; }
  .intro .crumb { margin-bottom: 56px; }
}

.about-photo { height: 300px; }
.about-photo figcaption { left: var(--margin); }
@media (min-width: 768px) { .about-photo { height: 440px; } .about-photo figcaption { bottom: 28px; } }
@media (min-width: 1200px) { .about-photo { height: 640px; } .about-photo figcaption { bottom: 24px; } }

/* ---------- timeline ---------- */
.tl { display: grid; }
.tl li { position: relative; display: grid; align-content: start; }
.tl .t-h3 { margin-top: 10px; }
.tl .t-small { margin-top: 10px; color: var(--k600); max-width: 180px; }
/* mobile: vertical, line on the left */
@media (max-width: 767px) {
  .tl { gap: 0; }
  .tl li { padding: 0 0 28px 38px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--g700); background: var(--white); z-index: 1; }
  .tl li::after { content: ""; position: absolute; left: 5.5px; top: 19px; bottom: -19px; width: 1px; background: var(--g300); }
  .tl li:last-child::after { display: none; }
  .tl li.is-now::before { background: var(--g700); }
  .tl .t-small { max-width: none; }
  .tl .t-h3 { margin-top: 6px; }
  .tl .t-small { margin-top: 2px; }
}
/* tablet + desktop: horizontal line over each column */
@media (min-width: 768px) {
  .tl { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .tl li { padding-top: 60px; }
  .tl li::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; border-top: 1.5px solid var(--g700); }
  .tl li::after { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--g700); box-shadow: calc((100% - 12px) * 0) 0 0 0 transparent; }
  .tl li .t-num::before { content: ""; position: absolute; left: 50%; top: 20px; height: 8px; border-left: 1px solid var(--g700); }
  .tl li.is-now::before { border-top: 1px dashed var(--k300); }
  .tl li.is-now::after { background: var(--black); left: 0; box-shadow: 0 0 0 7px var(--white), 0 0 0 8px var(--g300); }
  .tl li.is-now .t-num::before { display: none; }
}
@media (min-width: 1200px) { .tl { grid-template-columns: repeat(6, 1fr); } .tl .t-small { max-width: 170px; } }
@media (max-width: 1199px) and (min-width: 768px) { .tl .t-small { max-width: 200px; } }

/* ---------- principles ---------- */
.pr { display: flex; flex-direction: column; padding: 20px 24px 28px; min-height: 0; }
.pr .ico { color: var(--g700); }
.pr .t-h3 { margin-bottom: 6px; }
.pr .t-text { max-width: 440px; }
@media (max-width: 767px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr { position: relative; padding: 20px 20px 24px; gap: 40px; }
  .pr .ico { position: absolute; right: 20px; top: 16px; }
  .pr .t-text { font-size: 13px; }
}
@media (min-width: 768px) {
  .pr { min-height: 300px; }
  .pr .ico { display: grid; place-items: center; padding: 12px 0 16px; }
  .pr .ico .icon { width: 44px; height: 44px; }
}
@media (min-width: 1200px) {
  .pr { padding: 20px 24px 28px; }
  .pr .ico { flex: 1; padding: 0; }
  .pr .ico .icon { width: 60px; height: 60px; }
}

/* ---------- licence ---------- */
.lc-row { display: grid; gap: 40px; }
.seal { width: 112px; height: 112px; }
.lc-head .sec-title { margin-bottom: 24px; }
@media (min-width: 768px) { .seal { width: 160px; height: 160px; } .lc-head .sec-title { margin-bottom: 40px; } }
.kv { border-top: 1px solid var(--k600); display: grid; grid-template-columns: 1fr 1fr; }
.kv > div { grid-column: 1 / -1; display: grid; gap: 4px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.kv > .half { grid-column: auto; }
.kv dt { color: var(--k500); }
@media (min-width: 768px) {
  .kv { grid-template-columns: 1fr; }
  .kv > div, .kv > .half { grid-column: 1 / -1; grid-template-columns: 200px 1fr; align-items: center; gap: 0; padding: 16px 0; min-height: 51px; }
}
@media (min-width: 1200px) {
  .lc-row { grid-template-columns: minmax(440px, 1fr) minmax(0, 760px); gap: 40px; align-items: start; }
  .lc-head .t-h2 { white-space: nowrap; }
  .kv > div, .kv > .half { grid-template-columns: 240px 1fr; }
}
.lc-docs { margin-top: 48px; }
@media (min-width: 1200px) { .lc-docs { margin-top: 56px; } .lc-docs .doc .date { width: 200px; } .lc-docs .doc .title { flex: 1 1 auto; } }
@media (max-width: 1199px) and (min-width: 768px) { .lc-docs .doc { flex-wrap: nowrap; } .lc-docs .doc { gap: 16px; } .lc-docs .doc .date { width: 104px; } .lc-docs .doc .icon { margin-left: 0; } }
@media (max-width: 767px) {
  .lc-docs .doc { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; padding-block: 16px; }
  .lc-docs .doc .date { grid-column: 1; grid-row: 1; }
  .lc-docs .doc .meta { grid-column: 2; grid-row: 1; color: var(--k500); font-size: 11px; }
  .lc-docs .doc .icon { grid-column: 3; grid-row: 1; margin: 0; }
  .lc-docs .doc .title { grid-column: 1 / 3; grid-row: 2; }
}

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
@media (min-width: 768px) { .team-grid { gap: 24px; } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .team-grid .t-text { font-size: 13px; } }

/* ---------- shareholders ---------- */
.sh { display: grid; gap: 40px; }
.sh .sec-title { gap: 0; }
.sh .sec-title .t-h2 { margin-top: 16px; }
.sh-date { margin-top: 12px; }
.sh-table { width: 100%; border-collapse: collapse; }
.sh-table th { text-align: left; color: var(--g700); padding: 0 0 10px; border-bottom: 1px solid var(--black); font-weight: 500; }
.sh-table td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sh-table td:first-child { padding-right: 16px; }
.sh-table tbody td:first-child { position: relative; padding-left: 24px; }
.sh-table .num { text-align: right; white-space: nowrap; }
.sh-table tfoot td { border-top: 1px solid var(--black); border-bottom: 0; padding-top: 16px; }
.sw { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; }
.ring { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; }
.ring figcaption { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.ring figcaption .t-monos { max-width: 200px; }
@media (max-width: 767px) {
  .sh .sec-title { margin-bottom: 0; }
  .ring { order: 0; max-width: 280px; }
  .ring figcaption .t-monos { max-width: 110px; }
  .sh-left { display: contents; }
  .sh-left .sec-title { order: -1; }
  .sh-table { order: 1; }
}
@media (min-width: 1200px) {
  .sh { grid-template-columns: minmax(0, 680px) minmax(0, 440px); justify-content: space-between; gap: 40px; align-items: start; }
  .sh .sec-title { margin-bottom: 40px; }
}

/* ---------- community band ---------- */
.csr { display: grid; }
.csr-text { padding: 40px var(--margin) 64px; }
.csr .sec-title { gap: 0; margin-bottom: 32px; }
.csr .sec-title .t-h2 { margin-top: 16px; max-width: 520px; }
.cs-p { margin-top: 16px; }
.cs-stats { display: grid; }
.cs-stats > div { display: grid; grid-template-columns: 144px 1fr; align-items: center; padding: 24px 0; border-top: 1px solid var(--g900); }
.cs-stats > div:last-child { border-bottom: 1px solid var(--g900); }
.cs-stats dt { color: var(--white); }
.csr-photo { min-height: 260px; order: -1; }
.csr-photo img { position: absolute; inset: 0; }
.csr-photo figcaption { left: var(--margin); }
@media (min-width: 768px) {
  .csr-text { padding: 96px var(--margin); }
  .csr .sec-title { margin-bottom: 56px; }
  .cs-stats { grid-template-columns: repeat(3, minmax(max-content, 200px)); gap: 24px; } .cs-stats dt { white-space: nowrap; }
  .cs-stats > div, .cs-stats > div:last-child { display: grid; grid-template-columns: none; gap: 8px; padding: 20px 0 0; border-top: 1px solid #1E5B42; border-bottom: 0; }
  .csr-photo { order: 0; min-height: 440px; }
}
@media (min-width: 1200px) {
  .csr { grid-template-columns: minmax(0, 1fr) 560px; }
  .csr-text { padding: 96px 80px; display: flex; flex-direction: column; justify-content: space-between; min-height: 600px; }
  .csr .sec-title { margin-bottom: 0; }
  .csr-photo { min-height: 600px; }
  .csr-photo figcaption { left: 24px; bottom: 24px; }
}
@media (min-width: 1440px) { .csr-text { padding-left: max(80px, calc((100vw - 1440px) / 2 + 80px)); } }

/* ---------- phase 3: motion, states, responsive polish ---------- */
.nw { white-space: nowrap; }
@media (max-width: 767px) { .page-title { font-size: min(40px, calc((100vw - 40px) / 6)); } }
.draw [data-fade] { opacity: 0; transition: opacity .8s ease; transition-delay: var(--d, .3s); }
.draw.is-in [data-fade] { opacity: 1; }

/* timeline: the line draws across each step as it enters */
.tl[data-stagger] li::before, .tl[data-stagger] li::after, .tl[data-stagger] .t-num::before { transition: transform 1s var(--ease), opacity .6s ease; transition-delay: calc(var(--d, 0s) + .15s); }
@media (max-width: 767px) {
  .tl[data-stagger] li::after { transform: scaleY(0); transform-origin: top; }
  .tl[data-stagger] li::before { transform: scale(.4); opacity: 0; }
}
@media (min-width: 768px) {
  .tl[data-stagger] li::before { transform: scaleX(0); transform-origin: left; }
  .tl[data-stagger] li::after { transform: scale(.4); opacity: 0; }
  .tl[data-stagger] .t-num::before { opacity: 0; }
  /* columns never collide: a little air on the right, desktop titles scale down a step at 1200 */
  .tl li { padding-right: 16px; min-width: 0; }
}
@media (min-width: 1200px) { .tl .t-h3 { font-size: clamp(17px, 1.45vw, 20px); } }
.tl.is-in li::before, .tl.is-in li::after { transform: none; opacity: 1; }
.tl.is-in .t-num::before { opacity: 1; }

/* principles: quiet hover, icon lifts */
.pr { transition: background .25s ease; }
.pr:hover { background: var(--k50); }
.pr .ico .icon { transition: transform .5s var(--ease); }
.pr:hover .ico .icon { transform: translateY(-3px); }

/* documents: inner focus ring, title follows the hover colour */
.doc:focus-visible { outline-offset: -2px; background: var(--g50); }
.doc .title { transition: color .2s; }
.doc:hover .title, .doc:focus-visible .title { color: var(--g700); }


/* team: equal columns; 4-up from 960 so tablet portraits are not oversized */
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* shareholders: row hover ties the table to the ring */
.sh-table tbody tr { transition: background .2s; }
.sh-table tbody tr:hover { background: var(--k50); }
.sh-table tbody tr:hover .sw { transform: scale(1.3); }
.sw { transition: transform .3s var(--ease); }

/* community band: photo height capped on wide screens */
@media (min-width: 1200px) { .csr-photo { max-height: 720px; } }

@media (prefers-reduced-motion: reduce) {
  .draw [data-fade] { opacity: 1 !important; transition: none !important; }
  .tl[data-stagger] li::before, .tl[data-stagger] li::after, .tl[data-stagger] .t-num::before { transform: none !important; opacity: 1 !important; transition: none !important; }
}
/* very narrow phones (<360): one person per row, portrait beside the name, so long roles never overflow */
@media (max-width: 359px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .team-grid .team { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; }
}
