/* StayCore homepage — 3D studio layer (2026-11-16).
   Light studio hero rendered in Blender (background matches --sc-paper, edges fade into the page)
   and the dark "in development" section. Loaded after website-cinematic.css. */

/* ---------- Light studio hero ---------- */
html body.website-home .sc-hero.sc-hero--studio { color: var(--sc-ink); background: var(--sc-paper); }
.sc-studio-stage { position: absolute; z-index: -1; top: 50%; right: max(-40px, calc((100vw - 1500px) / 2)); width: min(66vw, 118svh, 1180px); aspect-ratio: 4 / 3; transform: translateY(-52%); pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); }
.sc-studio-video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
html.sc-motion .sc-studio-stage { animation: sc-studio-in 1.6s var(--sc-ease) both; }
@keyframes sc-studio-in { from { opacity: 0; transform: translateY(-49%) scale(1.03); } to { opacity: 1; transform: translateY(-52%) scale(1); } }

html body.website-home .sc-hero--studio h1 { color: var(--sc-ink); max-width: 11em; }
html body.website-home .sc-hero--studio h1 em { color: rgba(17, 17, 16, .46); }
html body.website-home .sc-hero--studio .sc-cinema-sub { color: var(--sc-muted); }
html body.website-home .sc-hero--studio .sc-button--dark { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
html body.website-home .sc-hero--studio .sc-button--dark:hover { background: #2a2a28; border-color: #2a2a28; }
html body.website-home .sc-hero--studio .sc-cinema-side .sc-film-teaser { color: var(--sc-ink); background: rgba(255, 255, 255, .6); border-color: var(--sc-line); }
html body.website-home .sc-hero--studio .sc-cinema-side .sc-film-teaser:hover { background: rgba(255, 255, 255, .86); border-color: rgba(17, 17, 16, .24); }
html body.website-home .sc-hero--studio .sc-cinema-side .sc-film-bar { color: var(--sc-ink); }
html body.website-home .sc-hero--studio .sc-cinema-side .sc-film-bar > span:last-child { color: var(--sc-muted); }
html body.website-home .sc-hero--studio .sc-cinema-side .sc-film-play { color: #fff; background: var(--sc-ink); }
html body.website-home .sc-hero--studio .sc-cinema-foot { color: var(--sc-muted); }
html body.website-home .sc-hero--studio .sc-scroll-cue { color: var(--sc-muted); }
html body.website-home .sc-hero--studio .sc-scroll-cue i { background: rgba(17, 17, 16, .16); }
html body.website-home .sc-hero--studio .sc-scroll-cue i::after { background: var(--sc-ink); }
html body.website-home .sc-hero--studio .sc-ai-note { color: rgba(17, 17, 16, .42); }

/* Navigation over the light hero keeps its ink colours */
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav :is(.nav-brand, .hamburger, .language-control) { color: var(--sc-ink); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-links a { color: rgba(17, 17, 16, .62); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-links a:is(:hover, .active) { color: var(--sc-ink); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .ai-badge { background: var(--sc-ink); color: #fff; }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .language-select { color: var(--sc-ink); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .language-select:hover { background-color: rgba(17, 17, 16, .06); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-cta .magnetic-btn { color: var(--sc-ink); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-cta .magnetic-btn:hover { background: rgba(17, 17, 16, .06); }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-cta .magnetic-btn.primary { background: var(--sc-ink); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .nav-cta .magnetic-btn.primary:hover { background: #2a2a28; }
body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .hamburger:is(:hover, .open) { background: rgba(17, 17, 16, .06); color: var(--sc-ink); }
body.website-home.sc-hero-light.sc-nav-over .sc-advisor-launch { opacity: 1; pointer-events: auto; transform: none; }

/* Keep the 3D phones below the 76px navigation on shorter laptop windows: size the stage from the hero
   height minus the nav and centre it in the space under the nav (2026-11-16, phones were covering the menu at 1280x720). */
@media (min-width: 901px) {
  .sc-studio-stage { top: calc(50% + 40px); width: min(66vw, calc((max(660px, min(100svh, 980px)) - 150px) * 4 / 3), 1180px); }
}

@media (max-width: 900px) {
  .sc-studio-stage { top: 76px; right: 50%; width: min(128vw, 78svh); transform: translateX(50%); }
  html.sc-motion .sc-studio-stage { animation-name: sc-studio-in-m; }
  @keyframes sc-studio-in-m { from { opacity: 0; transform: translateX(50%) scale(1.03); } to { opacity: 1; transform: translateX(50%) scale(1); } }
  html body.website-home .sc-hero--studio .sc-cinema-inner { padding-top: min(96vw, 58svh); }
  body.website-home.sc-hero-light.sc-nav-over:not(.sc-nav-dark) .nav .hamburger { color: var(--sc-ink); }
}

/* ---------- In development (dark) ---------- */
html body.website-home .sc-lab { background: #000; color: #fff; padding-block: clamp(96px, 12vw, 176px); overflow: hidden; }
.sc-lab-head { max-width: 760px; }
.sc-lab-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: rgba(255, 255, 255, .78); font-size: 12px; letter-spacing: .04em; }
.sc-lab-chip i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: sc-lab-pulse 2.4s ease-in-out infinite; }
@keyframes sc-lab-pulse { 50% { opacity: .25; } }
html body.website-home .sc-lab h2 { margin: 26px 0 0; color: #fff; font-family: var(--sc-serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.012em; }
html[lang^=zh] body.website-home .sc-lab h2 { line-height: 1.2; letter-spacing: .01em; font-size: clamp(34px, 4.2vw, 60px); }
html[lang=th] body.website-home .sc-lab h2 { line-height: 1.3; font-size: clamp(30px, 3.6vw, 52px); }
.sc-lab-head p { margin: 22px 0 0; max-width: 520px; color: rgba(255, 255, 255, .6); font-size: 16px; line-height: 1.7; }

.sc-lab :is(.sc-lab-wide, .sc-lab-card) { margin: 0; }
.sc-lab video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.sc-lab-wide { position: relative; left: 50%; width: min(100vw, 1560px); margin: clamp(-40px, -2vw, 0px) 0 0 calc(min(100vw, 1560px) / -2) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%), linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-composite: intersect; }

.sc-lab-list { list-style: none; margin: clamp(8px, 2vw, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.sc-lab-list li { display: flex; align-items: baseline; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); counter-increment: lab; }
.sc-lab-list li::before { content: counter(lab, decimal-leading-zero); flex-shrink: 0; width: 34px; color: rgba(255, 255, 255, .34); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.sc-lab-list { counter-reset: lab; }
.sc-lab-list b { font-family: var(--sc-serif); font-weight: 400; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; color: #fff; }

.sc-lab-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 88px); }
.sc-lab-card { position: relative; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; overflow: hidden; background: #050505; transition: border-color .4s; }
.sc-lab-card:hover { border-color: rgba(255, 255, 255, .3); }
.sc-lab-card figcaption { padding: 16px 22px 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sc-lab-card figcaption b { font-family: var(--sc-serif); font-weight: 400; font-size: 20px; color: #fff; }
.sc-lab-card figcaption span { color: rgba(255, 255, 255, .5); font-size: 12px; letter-spacing: .04em; }
.sc-lab-note { margin: 34px 0 0; max-width: 720px; color: rgba(255, 255, 255, .36); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .sc-lab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .sc-lab-pair { grid-template-columns: 1fr; }
  .sc-lab-wide { width: 124vw; margin-left: -62vw !important; }
}
@media (max-width: 520px) {
  .sc-lab-list { grid-template-columns: 1fr; }
  .sc-lab-list li { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-lab-chip i, html.sc-motion .sc-studio-stage { animation: none; }
}
