/* Showcase-inspired editorial layer for the real homepage. It keeps every
   database-backed section intact while giving the opening and section rhythm
   the more expressive visual language prototyped on showcase.php. */
body[data-page="index"]{--home-acid:var(--brand-pink-bright);--home-paper:#f2f0e9;--home-ink:#0e0f0e;--home-pink:#f58bbc}
body[data-page="index"] .site-header{background:rgba(8,12,13,.7);border-bottom:1px solid rgba(255,255,255,.14);box-shadow:none;backdrop-filter:blur(10px)}
body[data-page="index"] .site-header .utility{background:rgba(0,0,0,.26)}

body[data-page="index"] .home-showcase-hero{--home-x:50%;--home-y:50%;--home-rx:0deg;--home-ry:0deg;position:relative;min-height:1120px;height:max(100svh,1120px);padding:0;overflow:hidden;background:#0b0d0e;color:#fff;isolation:isolate}
body[data-page="index"] .home-showcase-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at var(--home-x) var(--home-y),rgba(255,61,150,.2),transparent 24%),linear-gradient(180deg,rgba(8,10,11,.46),#080a0b 74%);pointer-events:none}
body[data-page="index"] .home-showcase-hero:after{content:"";position:absolute;inset:0;z-index:10;pointer-events:none;opacity:.055;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E")}
body[data-page="index"] .home-showcase-hero .hero-video{opacity:.28;filter:grayscale(1) contrast(1.18)}
body[data-page="index"] .home-showcase-hero .hero-video video{object-position:center 45%;transform:scale(1.03)}
.home-showcase-grid{position:absolute;inset:0;z-index:-1;opacity:.14;background-image:linear-gradient(rgba(255,255,255,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.18) 1px,transparent 1px);background-size:8vw 8vw;mask-image:linear-gradient(to bottom,transparent 5%,#000 30%,#000 76%,transparent 100%)}
.home-showcase-shell{position:relative;height:100%;padding-top:154px;padding-bottom:38px;display:flex;flex-direction:column;z-index:2}
.home-showcase-meta{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font:600 .58rem/1 Manrope,sans-serif;letter-spacing:.15em;color:rgba(255,255,255,.75)}
.home-showcase-meta span:nth-child(2){text-align:center}.home-showcase-meta span:last-child{text-align:right}
body[data-page="index"] .home-showcase-title{position:relative;z-index:3;margin:32px 0 0;color:#f5f3ed;font:600 clamp(6.8rem,12vw,12rem)/.74 Manrope,sans-serif;letter-spacing:-.09em;text-shadow:none;pointer-events:none}
body[data-page="index"] .home-showcase-title span{display:block;margin:0;font:inherit;letter-spacing:inherit;color:inherit}
body[data-page="index"] .home-showcase-title span:nth-child(2){padding-left:14vw}
body[data-page="index"] .home-showcase-title span:nth-child(3){width:max-content;max-width:54%;font-size:.58em;text-align:left;margin-top:.28em;white-space:nowrap}
body[data-page="index"] .home-showcase-title .home-showcase-outline{color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.85)}
body[data-page="index"] .home-showcase-title i{font-style:italic;font-weight:300;color:var(--home-acid);-webkit-text-stroke:0}
.home-showcase-orbit{position:absolute;z-index:1;left:70%;top:47%;width:min(48vw,610px);aspect-ratio:1;transform:translate(-50%,-50%) rotateX(var(--home-rx)) rotateY(var(--home-ry));transform-style:preserve-3d;transition:transform .45s ease-out;border:1px solid rgba(255,255,255,.28);border-radius:50%;display:grid;place-items:center}
.home-showcase-orbit>i{position:absolute;inset:8%;border:1px solid rgba(255,255,255,.18);border-radius:50%;transform:rotate(58deg) scaleY(.38)}
.home-showcase-orbit>i:nth-child(2){transform:rotate(-58deg) scaleY(.38)}.home-showcase-orbit>i:nth-child(3){inset:-10%;transform:rotate(8deg) scaleY(.55)}
.home-showcase-orbit>strong{width:38%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--home-acid);color:#fff;font:800 clamp(2.2rem,5vw,5.4rem)/1 Manrope,sans-serif;letter-spacing:-.09em;box-shadow:0 0 90px rgba(255,61,150,.24);animation:home-core 6s ease-in-out infinite}
.home-showcase-orbit>strong small{position:absolute;margin-top:6rem;font-size:.65rem;letter-spacing:0}
.home-orbit-chip{position:absolute;background:#f3f1eb;color:#111;padding:9px 14px;font:700 .56rem/1 Manrope,sans-serif;letter-spacing:.12em;box-shadow:0 1px 2px rgba(7,20,42,.07),0 12px 30px rgba(0,0,0,.25)}
.home-orbit-chip-1{left:-2%;top:25%;transform:rotate(-10deg)}.home-orbit-chip-2{right:-4%;top:38%;transform:rotate(8deg);background:var(--home-pink)}.home-orbit-chip-3{left:18%;bottom:1%;transform:rotate(4deg);background:#6fa4ff}
@keyframes home-core{50%{transform:scale(1.04);box-shadow:0 0 130px rgba(255,61,150,.34)}}

.home-showcase-bottom{position:relative;z-index:5;margin-top:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(370px,.72fr);gap:6vw;align-items:end}
body[data-page="index"] .home-showcase-bottom .hero-copy{max-width:620px;color:#fff}
body[data-page="index"] .home-showcase-bottom .hero-copy .eyebrow{font:600 .62rem/1 Manrope,sans-serif;letter-spacing:.14em;color:var(--home-acid);text-transform:uppercase}
body[data-page="index"] .home-showcase-bottom .hero-copy h2{font:500 clamp(1.7rem,3.1vw,3.3rem)/1.12 var(--font-display,"Instrument Serif","Noto Serif Thai",Georgia,serif);letter-spacing:-.045em;margin:14px 0;color:#fff}
body[data-page="index"] .home-showcase-bottom .hero-copy>p{font-size:.9rem;line-height:1.7;color:rgba(255,255,255,.68);max-width:530px;margin-bottom:0}
body[data-page="index"] .home-showcase-bottom .hero-actions{display:flex;align-items:center;gap:28px;margin-top:22px}
body[data-page="index"] .home-showcase-bottom .hero-scroll,body[data-page="index"] .home-showcase-secondary{display:inline-flex;align-items:center;gap:16px;margin:0;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.44);color:#fff;font:700 .62rem/1 Manrope,sans-serif;letter-spacing:.12em}
body[data-page="index"] .home-showcase-bottom .hero-scroll span{color:var(--home-acid)}
body[data-page="index"] .home-showcase-secondary{color:var(--home-acid);border-color:rgba(255,61,150,.48)}
body[data-page="index"] .home-showcase-bottom .hero-news{position:relative;width:auto;bottom:auto;left:auto;right:auto;background:rgba(11,13,14,.72);color:#fff;border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(14px);box-shadow:none}
body[data-page="index"] .home-showcase-bottom .hero-news-head{border-bottom-color:rgba(255,255,255,.18);color:#fff;font-size:.58rem;letter-spacing:.12em}/* was --home-acid (var(--brand-pink-bright)) on the pink bar: pink on pink, 1.46:1 */
body[data-page="index"] .home-showcase-bottom .hero-news-head a{color:#fff}
body[data-page="index"] .home-showcase-bottom .hero-news-list li{border-bottom-color:rgba(255,255,255,.12)}
body[data-page="index"] .home-showcase-bottom .hero-news-list a{display:grid;grid-template-columns:54px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:14px 18px}
body[data-page="index"] .home-showcase-bottom .hero-news-list a:hover{background:rgba(255,61,150,.1)}
body[data-page="index"] .home-showcase-bottom .hero-news-list time{font:500 .55rem/1 Manrope,sans-serif;color:rgba(255,255,255,.45)}
body[data-page="index"] .home-showcase-bottom .hero-news-list strong{font-size:.78rem;line-height:1.35;color:#fff;font-weight:500;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
body[data-page="index"] .home-showcase-bottom .hero-news-list b{font-weight:400;color:var(--home-acid)}

body[data-page="index"] .signal-strip{height:92px;background:var(--home-acid);color:#fff;border:0;display:flex;align-items:center}
body[data-page="index"] .signal-strip div{font-size:clamp(1.35rem,2.6vw,2.55rem);font-weight:600;letter-spacing:-.045em;animation-duration:28s}
body[data-page="index"] .signal-strip i{background:#fff;width:8px;height:8px}

/* Carry the prototype's editorial rhythm into existing CMS-backed sections. */
body[data-page="index"] .section-kicker span{color:var(--home-pink);font-size:.72rem}
body[data-page="index"] .section-kicker p{letter-spacing:.14em}
body[data-page="index"] .intro{background:var(--home-paper)}
/* margin-inline:auto matters: .intro-copy only sets text-align:center, which centres the
   text inside this box, not the box itself. Without it the 900px heading sits flush left
   in the 1080px column and reads 90px off-centre against the lead and the card grid. */
body[data-page="index"] .intro-copy>h2{font-size:clamp(2.6rem,5.5vw,5.7rem);line-height:.93;letter-spacing:-.065em;max-width:900px;margin-inline:auto}
body[data-page="index"] .intro-copy .lead{font-size:1.08rem;line-height:1.8;max-width:780px}
body[data-page="index"] .intro-feature{border-radius:0;border-top:1px solid #aaa;box-shadow:none}
body[data-page="index"] .home-quick-access{background:#101110}
body[data-page="index"] .home-quick-heading h2{color:#fff;font-size:clamp(2.8rem,5.6vw,6rem);letter-spacing:-.065em;line-height:.92}
body[data-page="index"] .home-quick-heading p{color:#9ba09e}
body[data-page="index"] .home-quick-card{border-radius:0;background:transparent;border-color:rgba(255,255,255,.18)}
body[data-page="index"] .home-quick-card .home-quick-copy strong{color:#f7f7f2}
body[data-page="index"] .home-quick-card .home-quick-copy small{color:#b8c0bd}
body[data-page="index"] .home-quick-card .home-quick-action{border-top-color:rgba(255,255,255,.42)}
body[data-page="index"] .home-quick-card .home-quick-number{color:color-mix(in srgb,var(--quick-accent) 38%,transparent)}
body[data-page="index"] .home-quick-card:hover{background:var(--home-acid);color:#fff}
body[data-page="index"] .home-quick-card:hover :is(strong,small,b,.icon){color:#fff}
body[data-page="index"] .home-stats-snapshot{background:linear-gradient(135deg,var(--brand-pink-bright),#cf176a);color:#fff}
body[data-page="index"] .home-stats-heading h2,body[data-page="index"] .home-stats-heading h2 em{color:#fff}
body[data-page="index"] .home-stats-heading .mini-label{color:#471127}
body[data-page="index"] .home-stats-intro p,body[data-page="index"] .home-stats-intro span{color:#55142f}
body[data-page="index"] .home-stat-card{
  border-radius:0;
  border-color:rgba(255,255,255,.46);
  background:linear-gradient(150deg,rgba(15,10,13,.94),rgba(70,8,40,.8));
  box-shadow:0 24px 58px rgba(79,0,38,.32),inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(14px) saturate(1.08);
}
body[data-page="index"] .home-stat-card:hover{
  border-color:rgba(255,255,255,.86);
  background:linear-gradient(150deg,rgba(21,12,17,.98),rgba(91,9,51,.9));
  box-shadow:0 32px 72px rgba(74,0,35,.44),inset 0 1px 0 rgba(255,255,255,.2);
}
body[data-page="index"] .home-stat-card:after{border-color:rgba(255,116,181,.34)}
body[data-page="index"] .home-stat-top>span{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.34)}
body[data-page="index"] .home-stat-card>strong{color:#fff!important}
body[data-page="index"] .home-stat-card>p{color:rgba(255,255,255,.8)!important}
body[data-page="index"] .home-stat-card>small{color:#ff9dcc!important}
body[data-page="index"] .home-stat-top>b{color:rgba(255,255,255,.26)}
body[data-page="index"] .home-stat-meta{border-top-color:rgba(255,255,255,.3);color:rgba(255,255,255,.58)}
body[data-page="index"] .home-stat-meta b{color:#ff9dcc}
body[data-page="index"] .home-stats-ticker{background:var(--home-ink);border:0}

@media(max-width:1000px){
 body[data-page="index"] .home-showcase-hero{min-height:1080px;height:1080px}
 body[data-page="index"] .home-showcase-title{font-size:clamp(5.5rem,14vw,8.2rem)}
 .home-showcase-orbit{left:70%;top:45%;width:min(66vw,560px)}
 .home-showcase-bottom{grid-template-columns:1fr 360px;gap:30px}
}
@media(max-width:760px){
 body[data-page="index"] .site-header{background:rgba(8,12,13,.9)}
 body[data-page="index"] .home-showcase-hero{height:auto;min-height:1050px}
 .home-showcase-shell{padding-top:128px;padding-bottom:25px}
 .home-showcase-meta{grid-template-columns:1fr auto}.home-showcase-meta span:nth-child(2){display:none}
 body[data-page="index"] .home-showcase-title{font-size:clamp(4rem,19vw,6.4rem);line-height:.78;margin-top:28px}
 body[data-page="index"] .home-showcase-title span:nth-child(2){padding-left:4vw}
 body[data-page="index"] .home-showcase-title span:nth-child(3){width:auto;max-width:none;font-size:.58em;text-align:right;margin-top:.4em;white-space:normal}
 .home-showcase-orbit{left:50%;top:42%;width:86vw}.home-showcase-orbit>strong{width:42%}.home-orbit-chip{padding:7px 10px}
 .home-showcase-bottom{display:block;margin-top:390px}
 body[data-page="index"] .home-showcase-bottom .hero-copy h2{font-size:1.7rem}
 body[data-page="index"] .home-showcase-bottom .hero-copy>p{font-size:.82rem;display:block}
 body[data-page="index"] .home-showcase-bottom .hero-news{margin-top:28px}
 body[data-page="index"] .home-showcase-bottom .hero-actions{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:8px 20px}
 body[data-page="index"] .signal-strip{height:72px}
 body[data-page="index"] .intro-copy>h2{font-size:2.8rem}
}
@media(max-width:430px){
 body[data-page="index"] .home-showcase-hero{min-height:1010px}
 .home-showcase-shell{padding-top:118px}
 body[data-page="index"] .home-showcase-title{font-size:18.5vw}
 .home-showcase-orbit{top:38%;width:91vw}
 .home-showcase-bottom{margin-top:355px}
 body[data-page="index"] .home-showcase-bottom .hero-copy>p{display:none}
 body[data-page="index"] .home-showcase-secondary{display:none}
 body[data-page="index"] .home-showcase-bottom .hero-news-list a{padding:12px 14px}
}
@media(prefers-reduced-motion:reduce){.home-showcase-orbit{transform:translate(-50%,-50%)}.home-showcase-orbit>strong{animation:none}}

/* The opening has its own kinetic identity: moving orbital planes, light trails,
   and a restrained sheen across the lead word. All motion is decorative. */
body[data-page="index"] .home-showcase-title span:first-child{
  background:linear-gradient(100deg,#f5f3ed 22%,#fff 42%,#ffc8e3 50%,#fff 58%,#f5f3ed 78%);
  background-size:240% 100%;background-position:100% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:home-title-glint 11s ease-in-out infinite;
}
.home-showcase-grid{animation:home-grid-drift 30s linear infinite}
.home-showcase-orbit{--spark-radius:min(24vw,305px);transform:translate(-50%,-50%) translateY(var(--home-scroll-y,0px)) rotateX(var(--home-rx)) rotateY(var(--home-ry))}
.home-showcase-orbit::before{content:"";position:absolute;inset:-1px;border-radius:50%;border:2px solid transparent;border-top-color:rgba(255,184,220,.94);border-right-color:rgba(120,172,255,.36);filter:drop-shadow(0 0 14px rgba(255,61,150,.65));animation:home-orbit-sweep 9s linear infinite;pointer-events:none}
.home-showcase-orbit>i{animation:home-orbit-plane-a 21s linear infinite}
.home-showcase-orbit>i:nth-child(2){animation:home-orbit-plane-b 26s linear infinite}
.home-showcase-orbit>i:nth-child(3){animation:home-orbit-plane-c 32s linear infinite}
.home-showcase-orbit>strong{position:relative;z-index:3;isolation:isolate}
.home-showcase-orbit>strong::before,.home-showcase-orbit>strong::after{content:"";position:absolute;inset:-12%;border:1px solid rgba(255,160,210,.78);border-radius:50%;opacity:0;pointer-events:none;animation:home-core-wave 4.2s ease-out infinite}
.home-showcase-orbit>strong::after{animation-delay:2.1s}
.home-orbit-spark{position:absolute;z-index:2;left:50%;top:50%;width:var(--spark-size,4px);height:var(--spark-size,4px);margin:calc(var(--spark-size,4px) / -2);border-radius:50%;background:#fff;box-shadow:0 0 8px 2px #fff,0 0 22px 6px rgba(255,84,169,.58);animation:home-spark-orbit 12s linear infinite;animation-delay:var(--spark-delay,0s);pointer-events:none}
.home-orbit-spark:nth-of-type(2n){background:#97bbff;box-shadow:0 0 8px 2px #b3ceff,0 0 22px 6px rgba(96,142,255,.55)}
.home-orbit-chip{z-index:4}
.home-orbit-chip-1{animation:home-chip-float-a 4.5s ease-in-out infinite}
.home-orbit-chip-2{animation:home-chip-float-b 5.2s ease-in-out infinite}
.home-orbit-chip-3{animation:home-chip-float-c 4.8s ease-in-out infinite}
.home-showcase-hero.home-motion-intro .home-orbit-chip{animation-play-state:paused}
.home-motion-fallback:not(.home-motion-start) .home-showcase-title span,.home-motion-fallback:not(.home-motion-start) .home-showcase-orbit{opacity:0}
.home-motion-fallback.home-motion-start .home-showcase-title span{animation:home-title-arrive 1.1s cubic-bezier(.16,1,.3,1) both}
body[data-page="index"] .home-motion-fallback.home-motion-start .home-showcase-title span:first-child{animation:home-title-arrive 1.1s cubic-bezier(.16,1,.3,1) both}
.home-motion-fallback.home-motion-start .home-showcase-title span:nth-child(2){animation-delay:.18s}
.home-motion-fallback.home-motion-start .home-showcase-title span:nth-child(3){animation-delay:.36s}
.home-motion-fallback.home-motion-start .home-showcase-orbit{animation:home-orbit-arrive 1.3s .38s cubic-bezier(.16,1,.3,1) both}
@keyframes home-title-arrive{from{opacity:0;filter:blur(14px);clip-path:inset(0 0 100% 0);translate:0 36px}to{opacity:1;filter:blur(0);clip-path:inset(0 0 0 0);translate:0 0}}
@keyframes home-orbit-arrive{from{opacity:0;filter:blur(16px)}to{opacity:1;filter:blur(0)}}
@keyframes home-title-glint{0%,28%,72%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes home-grid-drift{to{background-position:8vw 8vw}}
@keyframes home-orbit-sweep{to{transform:rotate(360deg)}}
@keyframes home-orbit-plane-a{from{transform:rotate(58deg) scaleY(.38)}to{transform:rotate(418deg) scaleY(.38)}}
@keyframes home-orbit-plane-b{from{transform:rotate(-58deg) scaleY(.38)}to{transform:rotate(-418deg) scaleY(.38)}}
@keyframes home-orbit-plane-c{from{transform:rotate(8deg) scaleY(.55)}to{transform:rotate(368deg) scaleY(.55)}}
@keyframes home-spark-orbit{from{transform:rotate(0) translateX(var(--spark-radius)) rotate(0)}to{transform:rotate(360deg) translateX(var(--spark-radius)) rotate(-360deg)}}
@keyframes home-core-wave{0%{transform:scale(.78);opacity:.8}78%,100%{transform:scale(1.32);opacity:0}}
@keyframes home-chip-float-a{50%{transform:translateY(-10px) rotate(-7deg)}}
@keyframes home-chip-float-b{50%{transform:translateY(12px) rotate(11deg)}}
@keyframes home-chip-float-c{50%{transform:translateY(-9px) rotate(1deg)}}
@media(max-width:1000px){.home-showcase-orbit{--spark-radius:min(33vw,280px)}}
@media(max-width:760px){.home-showcase-orbit{--spark-radius:42vw}.home-showcase-grid{animation:none}.home-orbit-spark:nth-of-type(n+3){display:none}}
@media(prefers-reduced-motion:reduce){
  body[data-page="index"] .home-showcase-title span:first-child,.home-motion-fallback.home-motion-start .home-showcase-title span,.home-motion-fallback.home-motion-start .home-showcase-orbit,.home-showcase-grid,.home-showcase-orbit::before,.home-showcase-orbit>i,.home-showcase-orbit>strong::before,.home-showcase-orbit>strong::after,.home-orbit-spark,.home-orbit-chip{animation:none!important}
  .home-showcase-orbit{transform:translate(-50%,-50%)}
  .home-orbit-spark{display:none}
}
