/* ===================================================================
   roots.css — "Rooted in Malaysia" (#about) background scene.
   19 Nov 2026 — v2: full illustrated chapter, not a watermark.
   Story: a wau flying high, its string anchored into the ground, over a
   kampung-to-city horizon. Rooted below, driven above.
   =================================================================== */

.about{
  background:
    radial-gradient(56% 36% at 83% 0%, rgba(242,196,93,.34), transparent 64%),
    radial-gradient(66% 38% at 8% 4%, rgba(8,127,131,.11), transparent 68%),
    linear-gradient(180deg,#FFF7EA 0%,#FEEFDC 42%,#FBE7CF 72%,#F5E6CD 100%);
  padding-bottom:clamp(150px,15vw,230px);
}

.abg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}

/* --- songket band marking the start of the chapter --- */
.abg-band{
  position:absolute;left:0;right:0;top:0;height:16px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Crect width='48' height='16' fill='%23F0590C'/%3E%3Cpath d='M12 2l6 6-6 6-6-6z' fill='%23F2C45D'/%3E%3Cpath d='M36 2l6 6-6 6-6-6z' fill='%23FFF4E4'/%3E%3Cpath d='M24 8l3 3-3 3-3-3z' fill='%23FFF4E4' opacity='.8'/%3E%3C/svg%3E") repeat-x 0 0/48px 16px;
}

/* --- sun behind the kite --- */
.abg-sun{
  position:absolute;top:-120px;right:5%;width:390px;height:390px;border-radius:50%;
  background:radial-gradient(circle,rgba(242,196,93,.55) 0 38%,rgba(240,89,12,.17) 54%,transparent 70%);
  box-shadow:0 0 0 1px rgba(240,89,12,.14), 0 0 0 46px rgba(242,196,93,.07);
}

/* --- sky: wau, string, clouds --- */
.abg-sky{position:absolute;top:0;left:0;width:100%;height:430px}
.abg-sky svg{display:block;width:100%;height:100%;overflow:visible}
.abg-sky .wau{--w1:#F0590C;--w2:#F2C45D;--w3:#087F83}
.abg-sky .kite{transform-box:fill-box;transform-origin:50% 96%;animation:kite-sway 8s ease-in-out infinite}
.abg-sky .line{animation:kite-line 26s linear infinite}

@keyframes kite-sway{0%,100%{transform:rotate(-2.4deg) translateY(0)}50%{transform:rotate(2.6deg) translateY(-10px)}}
@keyframes kite-line{to{stroke-dashoffset:-320}}

/* --- horizon: kampung on the left, towers on the right --- */
/* width-driven so the band never crops the kampung or the towers */
.abg-horizon{position:absolute;left:0;right:0;bottom:0;opacity:.92}
.abg-horizon svg{display:block;width:100%;height:auto}

.abg-grain{
  position:absolute;inset:0;opacity:.3;
  background-image:radial-gradient(rgba(27,26,23,.05) 1px,transparent 1.2px);
  background-size:22px 22px;
}

@media (max-width:900px){
  .about{padding-bottom:clamp(130px,26vw,190px)}
  .abg-sun{width:250px;height:250px;top:-86px;right:-40px;box-shadow:none}
  .abg-sky{height:280px;left:-30%;width:150%}
  .abg-horizon svg{width:190%;margin-left:-45%}
}
@media (prefers-reduced-motion:reduce){
  .abg-sky .kite,.abg-sky .line{animation:none}
}
