.family-page {
    --family-paper: #f4f7fa;
    --family-text: #162a35;
    --family-muted: #465966;
    --family-line: #d3e0e7;
    --family-dark: #0b2431;
    --family-rich: #123f53;
    --family-accent: #135c78;
    --family-signal: #9ce9e5;
    --family-tint: #e1f1f2;
    color: var(--family-text);
    background: var(--family-paper);
}
.family-page--tech {
    --family-paper: #f1f7f3; --family-line: #c9ded1; --family-dark: #091e18; --family-rich: #144c37;
    --family-accent: #176040; --family-signal: #a2f3b5; --family-tint: #dcf0e2;
}
.family-page--innovation {
    --family-paper: #f1f4ff; --family-line: #d2daf4; --family-dark: #121b48; --family-rich: #253b80;
    --family-accent: #304a9c; --family-signal: #c4d1ff; --family-tint: #e3e9ff;
}
.family-page--vc {
    --family-paper: #eef6f5; --family-line: #c7ded9; --family-dark: #091f22; --family-rich: #115155;
    --family-accent: #00635a; --family-signal: #9cf1dd; --family-tint: #d9f1eb;
}
.family-page--edu {
    --family-paper: #eef6f8; --family-line: #c9dfe7; --family-dark: #0a2f42; --family-rich: #114963;
    --family-accent: #0b6079; --family-signal: #8ce3ea; --family-tint: #d9eef3;
}
.family-page--noavar {
    --family-paper: #eef3fb; --family-line: #ccd9ef; --family-dark: #0a183b; --family-rich: #183975;
    --family-accent: #1d4a9a; --family-signal: #a8c9ff; --family-tint: #dce9ff;
}
.family-page--bavar {
    --family-paper: #f3f7ed; --family-line: #d5e3cb; --family-dark: #14291f; --family-rich: #275439;
    --family-accent: #33633e; --family-signal: #d8ec9f; --family-tint: #e8f0d7;
}
.family-frame, .family-page > .family-section > .container {
    width: min(91%, 1320px);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}
.family-page > section[id] { scroll-margin-top: 105px; }
.family-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #f6fbff;
    background: var(--family-dark);
}
.family-hero::before, .family-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.family-hero::before {
    background: radial-gradient(ellipse at 15% 85%, var(--family-rich), transparent 66%);
}
.family-hero::after {
    background: radial-gradient(circle, #ffffff50 1px, transparent 1.5px);
    background-size: 23px 23px;
    mask-image: linear-gradient(90deg, #0009, transparent 67%);
}
.family-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    gap: clamp(25px, 5vw, 90px);
    align-items: center;
    min-height: clamp(510px, 44vw, 650px);
    padding-block: clamp(45px, 7vw, 104px);
}
.family-hero__copy { position: relative; z-index: 1; min-width: 0; }
.family-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--family-signal);
}
.family-hero__eyebrow a { border-bottom: 1px solid currentColor; }
.family-hero__eyebrow a:hover { color: #fff; }
.family-hero__eyebrow span { opacity: .72; }
.family-hero__latin {
    display: block;
    margin-top: 19px;
    text-align: right;
    color: var(--family-signal);
    letter-spacing: .07em;
    font: 600 .76rem/1.6 system-ui, sans-serif;
    text-transform: uppercase;
}
.family-hero h1 {
    margin-block: 14px;
    color: inherit;
    font-size: clamp(2.6rem, 5.1vw, 5.35rem);
    line-height: 1.4;
    font-weight: 870;
    text-wrap: balance;
}
.family-hero p {
    max-width: 610px;
    color: #e4f2f4;
    font-size: clamp(1rem, 1.5vw, 1.23rem);
    line-height: 2;
}
.family-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.family-action {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--family-signal);
    color: var(--family-dark);
    font-size: .92rem;
    line-height: 1.55;
    font-weight: 820;
    text-align: right;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.family-action:hover { background: #fff; transform: translateY(-3px); }
.family-action--muted { color: #f4fbff; background: #ffffff0a; border-color: #ffffff60; }
.family-action--muted:hover { color: var(--family-dark); }
.family-action span { font: 600 1.05rem/1 system-ui, sans-serif; }
.family-visual {
    min-width: 0;
    position: relative;
    display: grid;
    align-items: center;
    min-height: 320px;
    aspect-ratio: 1.15;
}
.family-visual__brand {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: clamp(112px, 12vw, 156px);
    height: clamp(56px, 7vw, 86px);
    padding: 8px 12px;
    background: color-mix(in srgb, var(--family-dark) 89%, transparent);
    border: 1px solid #e2f8ff57;
    border-radius: 11px;
    box-shadow: 0 13px 32px #04131945;
    z-index: 2;
}
.family-visual__brand img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.family-hero--tech::after {
    background: linear-gradient(0deg,#b0efba22 1px,transparent 1px),linear-gradient(90deg,#b0efba22 1px,transparent 1px);
    background-size: 30px 30px;
}
.chip-map {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 80%;
    border: 1px solid #9de7b65b;
    border-radius: 14px;
    background: radial-gradient(ellipse, #4cb77240, transparent 67%), #0c2c23a6;
    box-shadow: inset 0 0 28px #94ff9a13, 0 35px 60px #040e0b60;
    overflow: hidden;
}
.chip-map svg { width: 100%; max-height: 330px; stroke: #91e6a1a8; stroke-width: 1.5px; }
.chip-map svg circle { fill: #9df4af; stroke: #124632; stroke-width: 2; }
.chip-map__core {
    position: absolute;
    display: grid;
    place-items: center;
    width: clamp(64px, 9vw, 122px);
    aspect-ratio: 1;
    border-radius: 15px;
    border: 1px solid #a9f8b7;
    outline: 7px solid #8ceda41d;
    background: #153f32;
    box-shadow: 0 0 43px #91e29a35;
    color: #c1f9ce;
    font-size: clamp(25px, 4vw, 56px);
}
.chip-map__tag, .launch-route__point, .vc-visual__tag, .seed-visual__tag {
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--family-signal) 60%, transparent);
    background: var(--family-dark);
    border-radius: 7px;
    color: var(--family-signal);
    padding: 4px 9px;
    font-size: clamp(.72rem,.95vw,.9rem);
    font-weight: 740;
}
.chip-map__tag--research { top: 11%; inset-inline-start: 7%; }
.chip-map__tag--industry { bottom: 10%; inset-inline-end: 7%; }

.family-hero--innovation::before {
    background: radial-gradient(circle at 24% 60%, #35468fbf, transparent 45%), linear-gradient(145deg, #141c49, #201945);
}
.idea-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: min(86%, 414px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    background: radial-gradient(circle, #748aeb3d, transparent 64%);
    isolation: isolate;
}
.idea-orbit__ring { position: absolute; inset: 8%; border: 1px solid #bccbff80; border-radius: 50%; transform: rotate(-31deg) scaleY(.57); }
.idea-orbit__ring:nth-child(2) { transform: rotate(31deg) scaleY(.57); }
.idea-orbit__center, .idea-orbit__node {
    display: grid;
    place-items: center;
    border: 1px solid #d3deffb0;
    border-radius: 50%;
    color: #e7ecff;
    background: #252d68;
}
.idea-orbit__center { width: 29%; aspect-ratio: 1; font-size: clamp(28px, 5vw, 57px); box-shadow: 0 0 46px #aabafa55; }
.idea-orbit__node { position: absolute; width: 16%; aspect-ratio: 1; font-size: clamp(14px, 2vw, 25px); }
.idea-orbit__node--training { inset-block-start: 15%; inset-inline-end: 15%; }
.idea-orbit__node--events { inset-block-end: 19%; inset-inline-start: 9%; }
.idea-orbit__node--award { inset-block-end: 13%; inset-inline-end: 17%; }

.family-hero--vc .family-hero__layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
.family-visual--vc { border-radius: 32% 10px 10px 10px; }
.vc-visual__photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.23;
    object-fit: cover;
    border-radius: inherit;
    border: 1px solid #a5f7e57a;
    filter: saturate(.8);
}
.vc-visual__chart {
    position: absolute;
    left: -4%;
    bottom: 12%;
    width: 61%;
    padding: 10px;
    border: 1px solid #9cf1dd88;
    border-radius: 13px;
    background: #0c3435e8;
    box-shadow: 0 14px 40px #05171b70;
}
.vc-visual__chart svg { width: 100%; stroke: #9cf1dd; stroke-width: 3; }
.vc-visual__chart circle { fill: #0f3d3d; }
.vc-visual__tag { top: 10%; right: 6%; }

.family-hero--edu { color: #112d43; background: #dceef2; }
.family-hero--edu::before { background: radial-gradient(ellipse at 12% 54%, #a8d9e3, transparent 64%); }
.family-hero--edu::after { background-image: radial-gradient(circle,#13738b4f 1px,transparent 1.5px); }
.family-hero--edu :is(p,.family-hero__eyebrow,.family-hero__latin) { color: #245267; }
.family-hero--edu .family-hero__eyebrow a:hover { color: #082b40; }
.family-hero--edu .family-action:not(.family-action--muted) { background: #10526b; color: white; }
.family-hero--edu .family-action:not(.family-action--muted):hover { background: #0a3a51; }
.family-hero--edu .family-action--muted { background: #ffffff59; border-color: #4c8296; color: #133d52; }
.family-visual--edu { padding: 14% 8% 12% 4%; }
.family-visual--edu .family-visual__brand { background: #f8fcff; border-color: #abc8d7; }
.edu-visual__photo {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.54;
    object-fit: cover;
    transform: rotate(-3deg);
    border: 7px solid #fff;
    border-radius: 8px;
    box-shadow: 0 16px 38px #123a5060;
}
.edu-visual__paper {
    position: absolute;
    inset: 3% 6% 13% 14%;
    display: grid;
    gap: 7px;
    align-content: end;
    padding: 18px;
    transform: rotate(6deg);
    border: 1px solid #94bfcb;
    border-radius: 8px;
    background: repeating-linear-gradient(#f2fafb 0 19px,#a7cad84d 19px 20px);
}
.edu-visual__paper span { width: 35%; height: 2px; background: #296b86a0; }
.edu-visual__tab {
    position: absolute;
    left: 0;
    bottom: 8%;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 7px;
    padding: 9px 12px;
    background: #0d526b;
    color: #fff;
    font-weight: 740;
    font-size: .89rem;
    box-shadow: 0 10px 25px #143f5a42;
}

.family-hero--noavar::before {
    background: linear-gradient(270deg,#0a183bf7 20%,#0a183bd1 58%,#0d246bb8),url("../../img/about/header.JPG") center / cover;
}
.family-hero--noavar .family-hero__layout { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
.launch-route {
    position: relative;
    border: 1px solid #a8c9ff61;
    border-radius: 16px;
    background: repeating-linear-gradient(0deg, transparent 0 23px, #a8c9ff17 23px 24px), #112855d9;
    box-shadow: 0 22px 53px #06133175;
}
.launch-route svg { display: block; width: 100%; stroke: #a8c9ff; stroke-width: 3; }
.launch-route svg circle { fill: #274d92; }
.launch-route__point--idea { bottom: 10%; left: 11%; }
.launch-route__point--proof { bottom: 29%; left: 34%; }
.launch-route__point--product { bottom: 51%; left: 56%; }
.launch-route__rocket {
    position: absolute;
    top: 8%;
    right: 5%;
    color: #bbd6ff;
    font-size: clamp(21px, 4vw, 48px);
    filter: drop-shadow(0 0 12px #8bbaffaa);
}

.family-hero--bavar::before { background: radial-gradient(ellipse at 21% 56%, #517241a0, transparent 57%), #14291f; }
.family-hero--bavar::after { mask-image: radial-gradient(ellipse at 25% 50%, #000a, transparent 60%); }
.seed-visual { position: relative; margin-inline: auto; width: min(100%, 480px); }
.seed-visual svg { width: 100%; max-height: 410px; overflow: visible; }
.seed-orbit { stroke: #d8ec9f74; stroke-width: 1.4; }
.seed-stem { stroke: #d8ec9f; stroke-width: 5; stroke-linecap: round; }
.seed-leaf { fill: #b6d48d38; stroke: #d8ec9f; stroke-width: 2; }
.seed-leaf--small { fill: #91ba6645; }
.seed-center { fill: #e1efa6; filter: drop-shadow(0 0 9px #d8ec9f); }
.seed-visual__tag { top: 13%; inset-inline-start: 4%; color: #e1efa6; }

.family-hero--tech::before {
    background: linear-gradient(270deg,#091e18 23%,#091e18d9 67%,#184b36cf),
        url("https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop") center / cover;
}
.family-hero--innovation::before {
    background: radial-gradient(circle at 25% 58%,#33468cbd,transparent 55%),linear-gradient(110deg,#201945d9,#141c49 76%),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=2084&auto=format&fit=crop") center / cover;
}

/* Sections with shared type, then layouts that follow each organization's content. */
.family-page > .family-section { padding-block: clamp(43px, 7vw, 100px); background-color: var(--family-paper); }
.family-section h2 { font-size: clamp(1.65rem, 3.2vw, 3.12rem); font-weight: 850; line-height: 1.47; text-wrap: balance; }
.family-section :is(h3,h4) { line-height: 1.55; text-wrap: pretty; }
.family-section p { line-height: 1.95; }
.family-section .text-gray-600, .family-section .text-gray-500 { color: var(--family-muted); }
.family-section :is(.text-green-600,.text-blue-600,.text-emerald-600) { color: var(--family-accent); }
.family-section :is(.mb-16,.mb-12):has(> h2) { margin-bottom: clamp(21px, 3.5vw, 46px); }
.family-section--split .reveal:has(> img) {
    border: 1px solid var(--family-line);
    border-radius: 14px;
    padding: 9px;
    background: #fff;
    box-shadow: 0 18px 45px #142b3913;
}
.family-section--split .reveal > img { width: 100%; min-height: 0; aspect-ratio: 1.55; height: auto; object-fit: cover; border-radius: 9px; box-shadow: none; }
.family-page :is(.card,.focus-card,.advantage-card,.goal-card,.stat-card,.journey-item,.process-card) {
    border: 1px solid var(--family-line);
    border-radius: 12px;
    background: #fff;
    color: var(--family-text);
    text-align: start;
    box-shadow: 0 12px 24px #142b3910;
    transition: transform .23s, border-color .23s, box-shadow .23s;
}
.family-page :is(.card,.focus-card,.advantage-card,.goal-card,.stat-card,.journey-item,.process-card):hover {
    transform: translateY(-4px);
    border-color: var(--family-accent);
    box-shadow: 0 16px 32px #142b391d;
}
.family-page .icon-container {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    margin: 0 0 17px;
    border-radius: 11px;
    background: var(--family-tint);
    color: var(--family-accent);
    font-size: 24px;
}

.family-page > .tech-network { background: #e1eee6; }
.tech-network .container > .text-center { text-align: start; max-width: 720px; }
.tech-network .container > .text-center p { margin-inline: 0; }
.tech-network .card {
    border-block-start: 3px solid #287b54;
    background: linear-gradient(140deg,#fff 70%,#e8f4eb);
}
.tech-ecosystem .grid > .reveal:has(img) { border-radius: 14px 14px 47px 14px; }

.family-page > .innovation-activities { background: #edf1ff; }
.innovation-activities .card { position: relative; overflow: hidden; padding-top: 35px; }
.innovation-activities .card h3 { text-align: start; }
.innovation-activities .card::after {
    content: "";
    position: absolute;
    top: 18px;
    inset-inline-end: 19px;
    width: 34px;
    aspect-ratio: 1;
    border-top: 1px solid #5974c6;
    border-inline-end: 1px solid #5974c6;
    border-radius: 0 7px 0 0;
}
.innovation-activities .card:nth-child(2) { background: #e5ecff; }
.innovation-activities .card:nth-child(3) { background: #ece9fb; }
.family-page > .innovation-training { background-color: #e1e9fc; }

.vc-about img { border: 1px solid #b5d5cd; }
.family-page > .vc-focus { color: #f3fff9; background: #103736; }
.vc-focus h2, .vc-focus :is(.container > .text-center p) { color: #f1fff8; }
.vc-focus .focus-card { background: #164746; border-color: #75b4a75b; color: #f2fff9; }
.vc-focus .focus-card p { color: #d4efea; }
.vc-focus .focus-card .icon-container { background: #214f4b; color: #b3f9e7; }
.family-page > .vc-mission { background: #cce9e2; color: #142f32; }
.vc-mission .container { display: grid; justify-items: center; }
.vc-mission p { color: #234b49; }
.vc-benefits .advantage-card { background: linear-gradient(155deg,#fff 71%,#e5f3f0); }

.family-page > .edu-achievements { background: #dceef3; }
.edu-achievements .stat-card { text-align: center; box-shadow: none; border-block-end: 3px solid #3495a9; }
.edu-achievements .stat-card i { font-size: 32px; }
.edu-achievements .counter {
    color: var(--family-accent);
    font-family: "IBM Plex Persian Digits", var(--site-font);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.edu-activities .timeline-item { padding-inline-start: 55px; }
.edu-activities .timeline-item::before {
    position: absolute;
    inset-inline-start: 1px;
    inset-block-start: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    content: attr(data-step);
    background: #0d526b;
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
}
.edu-timeline__rail { position: absolute; top: 0; bottom: 0; inset-inline-start: 19px; width: 1px; background: #96bfcf; }
.edu-activities .timeline-item > div { border: 1px solid #cbdfe7; box-shadow: none; }
.edu-activities .space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }

.family-page > .noavar-projects-wrap { background-color: #0e2349; }
.noavar-projects-wrap .projects-section-title { color: #f1f7ff; }
.noavar-projects-wrap .projects-table-wrap { border-color: #a8c9ff44; }
.family-page > .noavar-focus { background-color: #e2edfc; }
.noavar-about img { max-width: none; }
.noavar-journey .journey-item { background: #fdfefe; }
.noavar-journey .step-icon { background: #e5eeff; color: #234d91; }

.family-page > .bavar-about { background: #eaf2e2; }
.bavar-about .container > div { border-inline-start: 4px solid #71974d; padding-inline-start: clamp(15px,3.5vw,45px); max-width: 950px; }
.family-page > .bavar-goals { background: #f5f7ef; }
.bavar-goals .goal-card { border-radius: 13px 13px 13px 32px; }
.bavar-products .product-card { border-color: #cbdcbe; box-shadow: 0 12px 30px #26382718; }
.family-page > .bavar-journey { background: #e7f0e1; }
.bavar-journey .process-card { border-inline-start: 3px solid #6e9456; }

.family-page > .family-close {
    background: radial-gradient(ellipse at 19% 100%,var(--family-rich),transparent 74%),var(--family-dark);
    color: #f4fbff;
}
.family-close .container > div { position: relative; max-width: 760px; margin-inline: auto; }
.family-close p { color: #e3f1f3; }
.family-close :is(a,button):not(.family-action) { border-radius: 9px; background: var(--family-signal); color: var(--family-dark); }
.family-page--bavar .family-close .cta-text { color: #f5f9e9; }


@media (max-width: 950px) {
    .family-hero .family-hero__layout { grid-template-columns: minmax(0,1fr) minmax(0,.75fr); min-height: 0; }
    .family-visual { min-height: 225px; }
}
@media (max-width: 680px) {
    .family-frame, .family-page > .family-section > .container { width: calc(100% - 34px); }
    .family-hero .family-hero__layout { grid-template-columns: minmax(0,1fr); padding-block: 37px; }
    .family-hero h1 { font-size: clamp(2.1rem, 8vw, 3.7rem); line-height: 1.46; }
    .family-hero__actions { gap: 7px; margin-top: 18px; }
    .family-visual { width: min(100%, 450px); margin-inline: auto; min-height: 0; }
    .family-visual--vc { border-start-start-radius: 14px; }
    .family-visual--edu { aspect-ratio: 1.5; }
}
@media (prefers-reduced-motion: no-preference) {
    .family-hero__copy, .family-visual { animation: family-arrive .68s var(--home-ease) both; }
    .family-visual { animation-delay: .09s; }
    .family-reveal .reveal:not(.visible):not(:focus-within) { opacity: 0; transform: translateY(18px); }
    .family-reveal .reveal { transition: opacity .48s, transform .56s var(--home-ease), box-shadow .22s; }
    .family-visual--innovation .idea-orbit__center { animation: idea-glow 4s ease-in-out 2; }
    @keyframes family-arrive { from { opacity: 0; translate: 0 18px; } }
    @keyframes idea-glow { 50% { box-shadow: 0 0 70px #aabafa9c; } }
}
@media (prefers-reduced-motion: reduce) {
    .family-page :is(.family-action,.card,.focus-card,.advantage-card,.goal-card,.stat-card,.journey-item,.process-card):hover { transform: none; }
}
