.page-network{position:fixed;inset:0;z-index:2;pointer-events:none;width:100%;height:100%}
.page-network[hidden]{display:none}
.family-highlight-lines{fill:none;stroke:#a77925;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;opacity:0;pointer-events:none}
.family-highlight-active .family-highlight-lines{opacity:1}
.family-tree .person-dimas{cursor:pointer}
.family-tree.family-highlight-active :is(.person-nala,.person-rizal,.person-ahmad,.person-siti) rect{stroke:#b39558;stroke-width:1.3}
.family-tree.family-highlight-active .person-dimas rect{fill:#fff6d9;stroke:#976a20;stroke-width:2.4}
.hero .family-highlight-hint{position:relative;margin:8px 0 0;text-align:center;font-size:11px;line-height:1.5;color:#5c6a5d}
.family-tree .person-dimas:focus-visible{outline:none}
.family-tree .person-dimas:focus-visible rect{stroke:#805b24;stroke-width:3}
@media(prefers-reduced-motion:no-preference){
  .family-highlight-lines{transition:opacity .16s}
  .family-highlight-lines path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .12s}
  .family-highlight-active .family-highlight-lines path{stroke-dashoffset:0;transition:stroke-dashoffset .18s ease-out var(--reveal-delay)}
  .family-tree .person rect{transition:stroke .22s,stroke-width .22s,fill .22s}
  .family-highlight-active :is(.person-nala,.person-rizal) rect{transition-delay:90ms}
  .family-highlight-active :is(.person-ahmad,.person-siti) rect{transition-delay:270ms}
}

/* Scroll reveals stay visible until this script confirms observer support. */
@media(prefers-reduced-motion:no-preference){
  .scroll-motion-ready [data-scroll-reveal]{opacity:0;translate:0 14px;transition:opacity .48s cubic-bezier(.16,1,.3,1),translate .58s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready [data-scroll-reveal].is-in-view{opacity:1;translate:0 0}
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree-lines path{transition:stroke-dashoffset 60ms linear}
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree-junctions circle{opacity:0}
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree:focus-within .start-tree-junctions circle,
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree[data-tree-complete="true"] .start-tree-junctions circle{opacity:1}
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree:focus-within .start-tree-lines path,
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree[data-tree-complete="true"] .start-tree-lines path{stroke-dashoffset:0!important}
  .start-tree:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:12px}
  .scroll-motion-ready .start-section[data-tree-motion] .demo-hint{visibility:hidden}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .demo-hint,
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree:focus-within ~ .family-demo .demo-hint{visibility:visible}
  .scroll-motion-ready .start-section[data-tree-motion] .start-node{opacity:0;translate:0 7px;transition:opacity .32s cubic-bezier(.16,1,.3,1),translate .4s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="0"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="1"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .start-parent{opacity:1;translate:0 0}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="1"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .start-parent,
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree:focus-within .start-node,
  .scroll-motion-ready .start-section[data-tree-motion] .start-tree[data-tree-complete="true"] .start-node,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .start-child:not(.start-unknown),
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .start-child{opacity:1;translate:0 0}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="1"] .start-parent{transition-delay:80ms}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="1"] .start-child:not(.start-unknown){opacity:0;translate:0 7px}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .start-child:not(.start-unknown){transition-delay:70ms}
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="1"] .junction-parents,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .junction-parents,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .junction-parents,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="2"] .junction-children,
  .scroll-motion-ready .start-section[data-tree-motion][data-tree-stage="3"] .junction-children{opacity:1}
  .start-tree-junctions circle{transition:opacity .18s ease-out}
  .scroll-motion-ready .how-section[data-scroll-story] .steps li{transition:opacity .25s ease-out}
  .scroll-motion-ready .how-section[data-scroll-story] .steps li:not(.is-scroll-current) .step-symbol{opacity:.68}
  .scroll-motion-ready .how-section[data-scroll-story] .steps li.is-scroll-current .step-symbol{transform:scale(1.07);background-color:#e7eddd}
}

@media(prefers-reduced-motion:no-preference) and (max-width:760px){
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree-junctions circle{opacity:0;transition:opacity .18s ease-out}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:focus-within .start-tree-junctions circle,
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree.tree-revealed .start-tree-junctions circle{opacity:1}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree .start-tree-lines path{stroke-dasharray:var(--tree-line-length);stroke-dashoffset:var(--tree-line-length);transition:stroke-dashoffset .32s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:focus-within .start-tree-lines path,
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree.tree-revealed .start-tree-lines path{stroke-dashoffset:0}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree .start-node{opacity:0;translate:0 7px;transition:opacity .28s cubic-bezier(.16,1,.3,1),translate .34s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:focus-within .start-node,
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree.tree-revealed .start-node{opacity:1;translate:0 0}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:focus-within .start-child,
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree.tree-revealed .start-child{transition-delay:100ms}
  .scroll-motion-ready .start-section[data-tree-touch] .demo-hint{visibility:hidden}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:is(:focus-within,.tree-revealed) ~ .family-demo .demo-hint{visibility:visible}
}

@media(prefers-reduced-motion:no-preference) and (min-width:761px) and (hover:hover) and (pointer:fine){
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree-junctions circle{opacity:0;transition:opacity .18s ease-out}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:is(.tree-revealed,:focus-within) .start-tree-junctions circle{opacity:1}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree .start-tree-lines path{stroke-dasharray:var(--tree-line-length);stroke-dashoffset:var(--tree-line-length);transition:stroke-dashoffset .32s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:is(.tree-revealed,:focus-within) .start-tree-lines path{stroke-dashoffset:0}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree .start-node{opacity:0;translate:0 7px;transition:opacity .28s cubic-bezier(.16,1,.3,1),translate .34s cubic-bezier(.16,1,.3,1)}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:is(.tree-revealed,:focus-within) .start-node{opacity:1;translate:0 0}
  .scroll-motion-ready .start-section[data-tree-touch] .demo-hint{visibility:hidden}
  .scroll-motion-ready .start-section[data-tree-touch] .start-tree:is(.tree-revealed,:focus-within) ~ .family-demo .demo-hint{visibility:visible}
}

@media(prefers-reduced-motion:reduce){
  .start-tree-lines path{stroke-dasharray:none!important;stroke-dashoffset:0!important}
}
@media(max-width:760px),(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.page-network{display:none}}
.steps li:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:4px}
.steps li:is(:hover,:focus-visible) .step-number{filter:brightness(1.12)}
.steps li:is(:hover,:focus-visible) .step-symbol{background-color:#dce6d4}
.form-panel input:focus{border-color:#bf9a4b}
.site-footer a:hover{text-decoration:underline}
@media(prefers-reduced-motion:no-preference){
  .header .button,.hero .button,.form-panel form .button{transition:filter .18s,scale .15s}
  .header .button:active,.hero .button:active,.form-panel form .button:active{scale:.98}
  .button svg{transition:translate .22s cubic-bezier(.16,1,.3,1)}
  .button:is(:hover,:focus-visible) svg{translate:3px 0}
  .step-number,.step-symbol{transition:filter .2s,background-color .2s}
  .faq-section summary::after{transition:transform .24s}
  .form-panel input{transition:border-color .2s,background-color .2s}
  .field-error:not(:empty),#form-feedback:not(:empty){animation:feedback-arrival .2s ease-out}
  @keyframes feedback-arrival{from{opacity:.5}to{opacity:1}}
  @supports(interpolate-size:allow-keywords){
    .faq-section details{interpolate-size:allow-keywords}
    .faq-section details::details-content{height:0;overflow:clip;transition:height .25s ease,content-visibility .25s;transition-behavior:allow-discrete}
    .faq-section details[open]::details-content{height:auto}
  }
}
