/* Spacious chapters and progressive reveals for the kingdom story. */
header.is-scrolled{background:#050911ed}

.hero{height:100svh;min-height:680px}
.hero::after{background:linear-gradient(90deg,#02050bc4 0%,#02050b55 36%,transparent 76%),linear-gradient(180deg,#02050a55 0%,transparent 50%,#02050ae8 100%)}
.hero-statement{top:clamp(150px,22vh,270px);width:min(900px,82vw)}
.hero-statement h1{font:800 clamp(42px,4.3vw,64px)/1.22 Arial,Helvetica,sans-serif;letter-spacing:-.025em;animation:kingdom-title-in 1.1s cubic-bezier(.18,.72,.18,1) both}
@keyframes kingdom-title-in{from{opacity:0;transform:translateY(42px)}to{opacity:1;transform:none}}

main>.section:not(.earth-stories){padding-top:clamp(108px,10vw,180px);padding-bottom:clamp(108px,10vw,180px)}
.one-earth-top{min-height:min(720px,80svh)}
.one-earth-copy h2{font-size:clamp(48px,4.8vw,68px);letter-spacing:-.055em}
.one-earth-copy h3{font-size:clamp(25px,2.6vw,36px)}
.one-earth-stage{width:min(520px,100%)}
.peace-projects{margin-top:clamp(70px,8vw,138px)}

#projects,#news,#history{padding-top:0}
#projects .section-head,#news .section-head,#history .section-head{position:relative;isolation:isolate;min-height:clamp(520px,74svh,840px);display:flex;align-items:flex-end;margin:0 calc(-1 * var(--page-gutter)) clamp(54px,7vw,110px);padding:0 var(--page-gutter) clamp(55px,7vw,110px);overflow:hidden;border-bottom:1px solid #b6d4e544;background-color:#07111e;background-position:center;background-size:cover}
#projects .section-head{background-image:linear-gradient(0deg,#030911f0 0%,#0309117d 42%,#03091152 100%),url('assets/space.webp')}
#news .section-head{background-image:linear-gradient(0deg,#030911fa 0%,#0309118d 47%,#03091145 100%),url('assets/embassy-ecuador-group.png');background-position:center 42%}
#history .section-head{background-image:linear-gradient(0deg,#030911f0 0%,#0309119b 42%,#03091158 100%),url('assets/anniversary-online-background.webp')}
#projects .section-head h2,#news .section-head h2,#history .section-head h2{font-size:clamp(42px,4.6vw,64px);line-height:1.18;letter-spacing:-.045em;text-shadow:0 4px 30px #02050c}
#projects .section-head .section-label,#news .section-head .section-label,#history .section-head .section-label{color:#f4f8fc;text-shadow:0 2px 15px #02050c}
#projects .project-main{display:block;position:relative;isolation:isolate;min-height:clamp(520px,72svh,850px);border-color:#a4c9e55c}
#projects .project-main::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#020711ed 0%,#020711bd 32%,#0207114d 69%,#0207111a 100%),linear-gradient(0deg,#02071195,transparent 55%);pointer-events:none}
#projects .project-main>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center}
#projects .project-main>div{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:min(680px,63%);min-height:inherit;padding:clamp(36px,6vw,96px)}
#projects .project-main h3{font-size:clamp(44px,4.3vw,64px);line-height:1.15;margin:0 0 22px}
#projects .project-main p{font-size:clamp(15px,1.4vw,20px);line-height:1.75;color:#ecf3fa}
#projects .project-main a{align-self:flex-start;font-size:14px}

#news .embassy-feature{min-height:clamp(480px,65svh,760px)}
#news .embassy-feature-photo,#news .embassy-feature-photo>img{height:100%;min-height:inherit;object-fit:cover}
#news .embassy-feature-copy{display:flex;flex-direction:column;justify-content:center}
#history .timeline article{min-height:clamp(450px,65svh,780px);padding:clamp(42px,6vw,96px) 0}
#history .timeline article>img{height:min(60svh,610px);aspect-ratio:16/10;object-fit:cover}
#history .timeline article:nth-child(even)>img{order:-1}
#history .timeline h3{font-size:clamp(30px,3vw,46px)}
.king-bio-grid{min-height:70svh}
.hyakka-message{min-height:100svh}
.hyakka-message .introduction-copy h2{max-width:10em;font:800 clamp(42px,4.2vw,64px)/1.13 Arial,Helvetica,sans-serif;letter-spacing:-.035em}
.hyakka-message .introduction-copy .hyakka-message-text{max-width:34em;font:400 clamp(17px,1.5vw,21px)/1.85 Arial,Helvetica,sans-serif;letter-spacing:0;color:#edf2f7}

.scroll-motion .scene-reveal{opacity:0;transform:translate3d(0,54px,0);transition:opacity .95s ease,transform 1.1s cubic-bezier(.18,.74,.2,1);transition-delay:var(--scene-delay,0ms)}
.scroll-motion .scene-reveal.scene-media{clip-path:inset(12% 0 0 0);transition:opacity 1s ease,transform 1.15s cubic-bezier(.18,.74,.2,1),clip-path 1.15s cubic-bezier(.18,.74,.2,1);transition-delay:var(--scene-delay,0ms)}
.scroll-motion .scene-reveal.is-visible{opacity:1;transform:none;clip-path:inset(0)}

@media(max-width:900px){
  .one-earth-top{min-height:0}
  #projects .section-head,#news .section-head,#history .section-head{min-height:60svh}
  #projects .project-main>div{width:min(620px,80%)}
  #news .embassy-feature{min-height:0}
  #news .embassy-feature-photo,#news .embassy-feature-photo>img{height:auto;min-height:0}
  #history .timeline article{min-height:0}
  #history .timeline article>img{height:auto}
}
@media(max-width:700px){
  .hero{height:auto;min-height:0}
  .hero-statement{top:auto;width:100%}
  .hero-statement h1{font-size:clamp(27px,7vw,34px);line-height:1.3}
  main>.section:not(.earth-stories){padding-top:96px;padding-bottom:96px}
  .one-earth-copy h2{font-size:clamp(46px,13vw,64px);letter-spacing:.02em}
  .one-earth-copy h3{font-size:clamp(24px,6.4vw,32px)}
  .one-earth-stage{width:min(260px,100%)}
  .peace-projects{margin-top:45px}
  #projects .section-head,#news .section-head,#history .section-head{min-height:56svh;display:flex;align-items:flex-end;margin-bottom:36px;padding-bottom:46px}
  #projects .section-head h2,#news .section-head h2,#history .section-head h2{font-size:clamp(36px,9.5vw,48px);line-height:1.22;letter-spacing:-.04em}
  #projects .project-main{display:block;min-height:520px}
  #projects .project-main::before{background:linear-gradient(0deg,#020711f5,#020711a0 46%,#02071108 85%)}
  #projects .project-main>img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:57% center}
  #projects .project-main>div{width:100%;min-height:520px;padding:28px}
  #projects .project-main h3{font-size:clamp(34px,9vw,48px);margin-bottom:12px}
  #projects .project-main p{font-size:14px}
  #projects .project-main a{font-size:12px}
  #history .timeline article:nth-child(even)>img{order:initial}
  #history .timeline h3{font-size:28px}
  .king-bio-grid{min-height:0}
  .hyakka-message{min-height:0}
  .hyakka-message .introduction-copy h2{font-size:clamp(34px,9vw,48px)}
  .hyakka-message .introduction-copy .hyakka-message-text{font-size:16px;line-height:1.8}
  .scroll-motion .scene-reveal{transform:translate3d(0,30px,0)}
}
@media(prefers-reduced-motion:reduce){
  .hero-statement h1{animation:none}
  .scroll-motion .scene-reveal,.scroll-motion .scene-reveal.scene-media{opacity:1;transform:none;clip-path:none;transition:none}
}
