/* RBX homepage hero refresh (16 Nov 2026).
   Only affects the hero headline area on home.html and zh/home.html.
   The background film, header, menu and the rest of the site are unchanged.
   To undo: remove the <link> to this file and restore the hero block from backup/. */

@font-face{font-family:"RBX Cormorant";src:url("assets/cormorant-garamond-latin-300-normal.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"RBX Cormorant";src:url("assets/cormorant-garamond-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"RBX Cormorant";src:url("assets/cormorant-garamond-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}

.home-page .hero.hero--refined{
  --hero-gold-deep:#c9913a;
  align-items:center;
  padding:clamp(150px,19vh,210px) clamp(24px,7vw,120px) clamp(110px,14vh,140px);
}

/* Extra shade on the left so the headline reads clearly over the film. Paints above the film, below the text. */
.home-page .hero.hero--refined::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(120% 80% at 85% 10%,rgba(233,179,88,.08),transparent 55%),
    linear-gradient(90deg,rgba(58,48,45,.22) 0,rgba(58,48,45,.18) 45%,transparent 80%);
  /* Soft edges so the shade blends into the full-width film above and below the hero. */
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 70%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 70%,transparent 100%);
}

.hero--refined .hero-content{text-align:left;max-width:1040px}

.hero--refined .hero-eyebrow{
  display:flex;align-items:center;gap:16px;margin:0 0 clamp(18px,2.6vh,28px);
  font-size:12px;font-weight:400;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);
}
.hero--refined .hero-eyebrow::before{
  content:"";flex:none;width:56px;height:1px;background:var(--gold);
  transform-origin:left;animation:rbxHeroLine 1.2s .2s cubic-bezier(.2,.7,.2,1) both;
}

.hero--refined .home-hero-title{
  font-family:"RBX Cormorant",Georgia,"Times New Roman",serif;font-weight:300;
  font-size:clamp(40px,min(4.8vw,8.6vh),88px);line-height:1.02;letter-spacing:-.01em;
  max-width:none;margin:0 0 clamp(18px,3vh,30px);text-align:left;text-wrap:initial;
  color:#f7f7f4;text-shadow:0 2px 30px rgba(0,0,0,.35);
}
.hero--refined .home-hero-title .ln{display:block;overflow:hidden;padding-bottom:.08em}
.hero--refined .home-hero-title .ln>span{display:inline-block;animation:rbxHeroRise 1.1s cubic-bezier(.2,.7,.2,1) both}
.hero--refined .home-hero-title .ln:nth-child(1)>span{animation-delay:.25s}
.hero--refined .home-hero-title .ln:nth-child(2)>span{animation-delay:.4s}
.hero--refined .home-hero-title .ln:nth-child(3)>span{animation-delay:.55s}
.hero--refined .home-hero-title .soft{color:rgba(247,247,244,.8)}
.hero--refined .home-hero-title em{
  font-family:inherit;font-style:italic;font-weight:400;
  background:linear-gradient(100deg,var(--hero-gold-deep) 0%,#f6d394 45%,var(--gold) 60%,var(--hero-gold-deep) 100%);
  background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:none;animation:rbxHeroShimmer 7s 1.6s ease-in-out infinite;
}
@media(min-width:761px){.hero--refined .home-hero-title .ln{white-space:nowrap}}

.hero--refined .hero-lede{
  max-width:520px;margin:0 0 clamp(24px,4.2vh,42px);
  font-size:clamp(15px,1.15vw,18px);line-height:1.75;color:rgba(247,247,244,.74);
  animation:rbxHeroFade 1s .85s ease both;
}

.hero--refined .hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px 34px;animation:rbxHeroFade 1s 1.05s ease both}
.hero--refined .hero-btn{
  display:inline-flex;align-items:center;gap:14px;padding:17px 30px;
  background:var(--gold);color:var(--chocolate);text-decoration:none;
  font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  box-shadow:0 10px 30px -12px rgba(233,179,88,.55);
  transition:background .35s,transform .35s,box-shadow .35s;
}
.hero--refined .hero-btn svg{transition:transform .35s}
.hero--refined .hero-btn:hover{background:#f3c677;transform:translateY(-2px);box-shadow:0 16px 36px -12px rgba(233,179,88,.7)}
.hero--refined .hero-btn:hover svg{transform:translateX(5px)}
.hero--refined .hero-link{
  position:relative;padding:6px 0;color:#f7f7f4;text-decoration:none;
  font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
}
.hero--refined .hero-link::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background:rgba(247,247,244,.45);transition:background .4s}
.hero--refined .hero-link:hover::after{background:var(--gold);animation:rbxHeroUnderline .6s ease}

/* Bottom bar: keeps the existing "Discover RBX" link and video button, restyled. */
.hero--refined .hero-footer{
  left:clamp(24px,7vw,120px);right:clamp(24px,7vw,120px);bottom:34px;
  font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:rgba(247,247,244,.62);
  animation:rbxHeroFade 1s 1.3s ease both;
}
.hero--refined .hero-scroll{gap:14px;margin-right:auto;font-size:11px;color:inherit;text-decoration:none}
.hero--refined .hero-scroll::before{
  content:"";position:relative;flex:none;width:1px;height:42px;
  background:linear-gradient(var(--gold),var(--gold)) 0 -18px/1px 18px no-repeat,rgba(247,247,244,.2);
  animation:rbxHeroScroll 2.2s ease-in-out infinite;
}
.hero--refined .hero-scroll:hover{color:var(--gold)}
.hero--refined .hero-tags{display:flex;gap:26px}
.hero--refined .hero-tags span+span::before{content:"·";margin-right:26px;color:var(--gold)}
.hero--refined .video-toggle{letter-spacing:normal;text-transform:none}

/* Chinese page: keep the site's Chinese typeface, no italics. */
html[lang|="zh"] .hero--refined .home-hero-title{font-family:inherit;font-weight:400;letter-spacing:.02em;line-height:1.22}
html[lang|="zh"] .hero--refined .home-hero-title em{font-style:normal}
html[lang|="zh"] .hero--refined .hero-eyebrow,
html[lang|="zh"] .hero--refined .hero-btn,
html[lang|="zh"] .hero--refined .hero-link,
html[lang|="zh"] .hero--refined .hero-footer{letter-spacing:.2em}

@keyframes rbxHeroRise{from{transform:translateY(105%)}to{transform:none}}
@keyframes rbxHeroFade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes rbxHeroLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes rbxHeroShimmer{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes rbxHeroScroll{0%{background-position:0 -18px,0 0}100%{background-position:0 42px,0 0}}
@keyframes rbxHeroUnderline{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}

@media(max-width:760px){
  .home-page .hero.hero--refined{padding:170px 24px 120px}
  .home-page .hero.hero--refined::after{background:linear-gradient(0deg,rgba(58,48,45,.45) 0%,rgba(58,48,45,.2) 55%,rgba(58,48,45,.05) 100%)}
  .hero--refined .hero-tags{display:none}
  .hero--refined .hero-btn{padding:15px 24px}
  .hero--refined .hero-eyebrow{letter-spacing:.22em;gap:12px}
  .hero--refined .hero-eyebrow::before{width:36px}
  .hero--refined .hero-footer{left:24px;right:24px;bottom:24px}
}
@media(prefers-reduced-motion:reduce){
  .hero--refined *,.hero--refined *::before,.hero--refined *::after{animation:none!important;transition:none!important}
}

/* Hero stays transparent so the background film shows through behind the text. */
.home-page .hero.hero--refined{background:transparent}
.home-page .hero-media:after{background:linear-gradient(180deg,rgba(58,48,45,.15),rgba(58,48,45,.18) 35%,rgba(58,48,45,.65))}
/* No separate shade panel behind the hero text (it showed hard edges against the film); the full-screen film overlay and text shadow keep the text readable. */
.home-page .hero.hero--refined::after{display:none}
.hero--refined .hero-lede,.hero--refined .hero-eyebrow{text-shadow:0 1px 14px rgba(0,0,0,.45)}
