/* Hero reconstruction checkpoint: source reference is the approved mockup. */
.header, .hero { max-width: 1240px; }
.header { height: 88px; }
.header .brand img { width: 58px; height: 58px; }
.header .brand { font-family: Georgia, serif; font-size: 31px; letter-spacing: -1px; }
.header .brand-dot { display: none; }
.header nav { gap: 34px; }
.header nav a { font-size: 12px; font-weight: 600; }
.header .button, .hero .button { background: #c49b40 url("assets/gold-watercolor.svg") center / 100% 100% no-repeat; color: #14291c; border: 1px solid #b78c32; border-radius: 40px; min-height: 44px; padding: 12px 30px; gap: 12px; box-shadow: none; transition: filter .18s; }
.header .button:hover, .hero .button:hover { filter: brightness(1.06); transform: none; }
.header .button:active, .hero .button:active { filter: brightness(.96); }
.hero.wrap { position: relative; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 8px; padding-bottom: 62px; align-items: start; }
.hero-copy { padding-top: 2px; position: relative; z-index: 1; }
.hero .status { padding: 5px 10px; border: 0; font-size: 12px; text-transform: none; font-weight: 400; letter-spacing: 0; gap: 7px; }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px,2.65vw,38px); line-height: 1.04; letter-spacing: -1.2px; font-weight: 700; margin: 12px 0 13px; }
.hero h1 > span { color: inherit; }
.hero p.lead { max-width: 460px; font-size: 16px; line-height: 1.45; color: var(--green); margin-bottom: 18px; }
.hero .micro { max-width: 38ch; font-size: 12px; line-height: 1.45; margin-top: 11px; }
.hero .tree-panel { background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; }
.hero .family-tree { position: relative; margin: 0; width: 100%; overflow: visible; }
.hero .tree-lines-mobile, .hero .tree-junctions-mobile { display: none; }
.hero .person rect { fill: #fffdf0; stroke: #b9bd9b; stroke-width: 1.2; filter: drop-shadow(0 3px 2px #20413016); }
.hero .ancestor rect { stroke: #c3a353; }
.hero .person text { font-size: 12px; }
.hero .person .initial { font-size: 10px; }
.hero .person .relation { font-size: 10px; }
.hero .person-you text { fill: var(--green); }
.hero .person-you circle { fill: var(--green); }
.hero .person-you .initial { fill: var(--ivory); }
.hero .person-you .relation { fill: #5c6a5d; }
.hero .unknown rect { fill: #eff0e2; }
.hero .unknown-label-mobile { display: none; }
.hero .person .unknown-label { font-size: 8px; }
.hero .botanical { position: absolute; inset: -25px -20px 0; width: calc(100% + 40px); height: calc(100% + 30px); object-fit: contain; pointer-events: none; z-index: 0; }
.hero .family-tree { z-index: 1; }
.hero .family-tree:focus-visible { outline: 2px solid #7f9982; outline-offset: 4px; border-radius: 8px; }
.hero .hero-curve { position: absolute; bottom: 0; left: 0; width: 100%; height: 84px; overflow: visible; pointer-events: none; }
.hero .hero-atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.hero .hero-atmosphere-orb { fill: #829783; opacity: .27; }
.hero .hero-atmosphere-orb:nth-child(2) { fill: #bd9846; opacity: .23; }
.hero .hero-atmosphere-orb:nth-child(3) { fill: #829783; opacity: .29; }
.hero.hero-wave-active .hero-atmosphere-orb { animation: hero-orb-breathe 4.8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero.hero-wave-active .hero-atmosphere-orb:nth-child(2) { animation-delay: -2.2s; }
.hero.hero-wave-active .hero-atmosphere-orb:nth-child(3) { animation-delay: -3.6s; }
.hero .hero-atmosphere-orb:nth-child(2) { animation: hero-orb-breathe 7s ease-in-out -2.2s infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero .hero-atmosphere-orb:nth-child(3) { animation: hero-orb-breathe 8.5s ease-in-out -3.6s infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero:not(.hero-wave-active) .hero-atmosphere-orb { animation: none; }
@keyframes hero-orb-breathe { from { opacity: .14; transform: scale(.82); } to { opacity: .3; transform: scale(1.16); } }
.hero .button svg, .header .button svg { width: 18px; height: 18px; }
.header .nav-toggle { display: none; }
@media (max-width: 760px) {
  .header .button { display: none; }
  .header { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; height: auto; min-height: 78px; padding-block: 17px; }
  .header .brand { grid-column: 1; grid-row: 1; }
  .header .nav-toggle { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--green); cursor: pointer; }
  .header .nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .header nav { display: none; }
  .header.is-menu-open nav { position: static; grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; gap: 0; width: 100%; margin: 4px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); box-shadow: 0 10px 24px #2041301f; }
  .header.is-menu-open nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 9px; font-size: 16px; font-weight: 500; text-decoration: none; }
  .header.is-menu-open nav a:hover { background: #e9eddf; }
}
@media (min-width: 761px) {
  .header .brand img { width: 72px; height: 72px; margin-inline: -7px; }
  .header nav a { font-size: 13px; }
  .hero .family-tree { transform: translateX(5%); }
}
@media (max-width: 760px) {
  .header .brand { font-size: 25px; }
  .header .brand img { width: 44px; height: 44px; }
  .hero.wrap { grid-template-columns: 1fr; gap: 25px; padding-top: 8px; padding-bottom: 18px; }
  .hero h1 { font-size: clamp(24px,6.6vw,29px); letter-spacing: -.8px; }
  .hero p.lead { font-size: 15px; }
  .hero .tree-panel { position: relative; width: 100%; height: auto; max-width: 440px; margin-inline: auto; background: #edf0df; border-radius: 12px; padding: 8px 10px; overflow: hidden; isolation: isolate; }
  .hero .family-tree { transform: none; height: auto; overflow: visible; }
  .hero .family-tree { display: block; width: 100%; height: auto; max-width: 340px; margin-inline: auto; }
  .hero .tree-lines-desktop, .hero .tree-junctions-desktop { display: none; }
  .hero .tree-lines-mobile, .hero .tree-junctions-mobile { display: initial; }
  .hero .unknown-label-desktop { display: none; }
  .hero .unknown-label-mobile { display: inline; }
  .hero .person text { font-size: 16px; }
  .hero .person .initial { font-size: 11px; }
  .hero .person .relation { font-size: 12px; }
  .hero .person .unknown-label { font-size: 12px; }
  .hero .botanical { inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .55; z-index: -1; clip-path: none; }
  .hero .hero-curve, .hero .hero-atmosphere { display: none; }
  .hero .hero-atmosphere-orb { animation: none !important; }
}
@media (max-width: 340px) {
  .hero h1 { font-size: 21px; }
}
@media (max-width: 380px) {
  .header .brand img { width: 36px; height: 36px; }
  .header .brand { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
}
@media (prefers-reduced-motion: reduce) { .hero .hero-atmosphere-orb { animation: none !important; } }

/* ID 12: keep every primary action on the same gold pill and interaction states. */
.hero .hero-network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .tree-panel { position: relative; }
.hero .family-tree.hero-intro-active .person { opacity: 0; translate: 0 5px; transition: opacity 300ms cubic-bezier(.16,1,.3,1), translate 360ms cubic-bezier(.16,1,.3,1); }
.hero .family-tree.hero-intro-active .person.hero-intro-visible { opacity: 1; translate: 0 0; }
.hero .family-tree.hero-intro-active .person-dimas { opacity: 1; translate: 0 0; }
.hero .family-tree.hero-intro-active .person-fajar,
.hero .family-tree.hero-intro-active .person-unknown { transition-delay: 60ms; }
.hero .family-tree.hero-intro-active .tree-lines-desktop:not(.intro-lines),
.hero .family-tree.hero-intro-active .tree-lines-mobile:not(.intro-lines) { opacity: 0; }
.hero .family-tree.hero-intro-active .tree-junctions-desktop circle,
.hero .family-tree.hero-intro-active .tree-junctions-mobile circle { opacity: 0; transition: opacity 140ms ease-out 240ms; }
.hero .family-tree .intro-lines { display: none; }
.hero .family-tree.hero-intro-active .intro-lines { display: initial; fill: none; stroke: #7f9982; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hero .family-tree.hero-intro-active .intro-lines path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero .hero-curve-main, .hero .hero-curve-highlight { transition: none; }
@media (min-width: 761px) {
  .hero .family-tree.hero-intro-active .intro-lines.tree-lines-mobile { display: none; }
  .hero .family-tree.hero-intro-active.hero-intro-step-2 .intro-lines.tree-lines-desktop.intro-lines-step-2 path,
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .intro-lines.tree-lines-desktop.intro-lines-step-3 path,
  .hero .family-tree.hero-intro-active.hero-intro-step-4 .intro-lines.tree-lines-desktop.intro-lines-step-4 path { stroke-dashoffset: 0; transition: stroke-dashoffset 260ms cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay, 0ms); }
  .hero .family-tree.hero-intro-active.hero-intro-step-2 .tree-junctions-desktop circle:nth-child(4) { opacity: 1; }
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .tree-junctions-desktop circle:nth-child(1),
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .tree-junctions-desktop circle:nth-child(3) { opacity: 1; }
  .hero .family-tree.hero-intro-active.hero-intro-step-4 .tree-junctions-desktop circle:nth-child(2) { opacity: 1; }
}
@media (max-width: 760px) {
  .hero .family-tree.hero-intro-active .intro-lines.tree-lines-desktop { display: none; }
  .hero .family-tree.hero-intro-active .intro-lines.tree-lines-mobile { stroke-width: 1.7; }
  .hero .family-tree.hero-intro-active.hero-intro-step-2 .intro-lines.tree-lines-mobile.intro-lines-step-2 path,
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .intro-lines.tree-lines-mobile.intro-lines-step-3 path,
  .hero .family-tree.hero-intro-active.hero-intro-step-4 .intro-lines.tree-lines-mobile.intro-lines-step-4 path { stroke-dashoffset: 0; transition: stroke-dashoffset 260ms cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay, 0ms); }
  .hero .family-tree.hero-intro-active.hero-intro-step-2 .tree-junctions-mobile circle:nth-child(2) { opacity: 1; }
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .tree-junctions-mobile circle:nth-child(1),
  .hero .family-tree.hero-intro-active.hero-intro-step-3 .tree-junctions-mobile circle:nth-child(3) { opacity: 1; }
}
.header .button,.hero .button,.form-panel form .button{background-color:#c49b40;background-image:url("assets/gold-watercolor.svg");background-position:center;background-size:100% 100%;background-repeat:no-repeat;color:#14291c;border:1px solid #b78c32;border-radius:999px;box-shadow:none;transition:filter .18s ease}
.header .button:hover,.hero .button:hover,.form-panel form .button:hover{background-color:#c49b40;filter:brightness(1.06);transform:none}
.header .button:active,.hero .button:active,.form-panel form .button:active{filter:brightness(.96)}
.form-panel form .button{background-image:url("assets/gold-watercolor-wide.svg");background-size:cover;background-position:center}
