/* Type and lighting are drawn at the viewport's native resolution. */
html.intro-pending, html.intro-pending body { background: #000 }
.intro-pending :is(.shell, .entry-header, .entry-main) { visibility: hidden }
:is(.intro-pending, .intro-active) .topbar .display-preferences { visibility: hidden }
html.intro-active { overflow: hidden }
.intro {
  --settle: cubic-bezier(.16,.82,.23,1);
  --handoff: 520ms;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  overflow: hidden; margin: 0; padding: 0; border: 0; color: #fafafa; background: transparent;
}
.intro::backdrop { background: transparent }
.intro[open] { display: grid; place-items: center; isolation: isolate }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000 }
.intro-light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 30% 51% at 52% 45%, #f1f1ee 0%,#9fa3a5 17%,#45494c 41%,#1b1d20 70%,transparent 100%);
  animation: studio-light 2.1s cubic-bezier(.18,.55,.22,1) .14s both;
}
.intro-light::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 19% 1.3% at 50% 49%,#fff 0%,#e6e8e9 12%,#bfc7cc66 52%,transparent 100%);
  animation: light-seam 1.35s ease-in-out .14s both;
}
.intro-light::after {
  content: ""; position: absolute; inset: 52% 15% -36%;
  background: radial-gradient(ellipse 54% 33% at 50% 46%,#caccc81c,transparent 95%);
}
.intro-stage {
  position: relative; width: min(88vw, 2810px); display: grid; align-items: center;
  grid-template-columns: minmax(0,1fr) minmax(0,31%) minmax(0,1fr); gap: clamp(19px,3vw,114px);
}
.intro-name { justify-self: end; line-height: 1; animation: wordmark-in .85s var(--settle) 1.25s both }
.intro-name:focus { outline: none }
.intro-name .wordmark {
  display: block; transform-origin: top left; font-size: clamp(39px,5.55vw,204px);
  font-weight: 600; line-height: 1.04; letter-spacing: -.047em;
}
.intro-name .wordmark > span { color: #f7ca61 }
.intro-copy {
  justify-self: start; color: #fafaf9; max-width: 18ch; margin: 0;
  font-size: clamp(20px,2.1vw,75px); font-weight: 500; letter-spacing: -.031em; line-height: 1.15;
  animation: copy-in .82s var(--settle) 1.39s both;
}
.phone-stage {
  position: relative; width: 100%; height: min(63vh,1250px); display: grid; place-items: center;
  animation: handset-in .92s var(--settle) .85s both;
}
.phone-stage::before {
  content: ""; position: absolute; inset: auto 22% -1%; height: 3.5%;
  background: radial-gradient(ellipse closest-side,#0009, #10121245 52%, transparent);
}
.phone-stage :is(img,canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain }
.phone-stage canvas { opacity: 0; transition: opacity .18s ease }
.phone-stage.live canvas { opacity: 1 }
.phone-stage.live img { opacity: 0; transition: opacity .18s ease }
.skip-intro {
  position: absolute; right: clamp(16px,3vw,88px); bottom: clamp(16px,4vh,78px); display: flex;
  align-items: center; gap: 10px; background: #131414; border: 1px solid #55595a; color: #eeefed;
  border-radius: 30px; min-height: 44px; padding: 9px 17px; font-size: clamp(13px,.85vw,20px);
  animation: control-in .32s ease 1.58s both;
}
.skip-intro:hover { border-color: #a4a5a2; background: #202221 }
.skip-intro:focus-visible { animation: none }
.intro.is-leaving::before { animation: backdrop-out var(--handoff) ease-in-out both }
.intro.is-leaving .intro-light { animation: studio-out .32s ease-in-out both }
.intro.is-leaving .phone-stage { animation: handset-out .31s ease-in-out both }
.intro.is-leaving :is(.intro-copy, .skip-intro) { animation: studio-out .24s ease-in both }
.intro.is-leaving .intro-name { animation: none }
.intro.is-leaving .intro-name:not(.moving-brand) { animation: studio-out .35s ease both }
.brand-in-flight :is(.brand,.mobile-brand) .wordmark { visibility: hidden }
@keyframes studio-light {
  0% { opacity: 0; transform: scale(.12,.014) }
  26% { opacity: .88; transform: scale(.56,.06) }
  62% { opacity: 1; transform: scale(.94,.78) }
  100% { opacity: .92; transform: scale(1) }
}
@keyframes light-seam { 0%,100% { opacity: 0 } 30%,50% { opacity: 1 } }
@keyframes wordmark-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
@keyframes copy-in { from { opacity: 0; transform: translateY(7px) } to { opacity: 1; transform: none } }
@keyframes handset-in { from { opacity: 0; transform: translateY(10px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes control-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes studio-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes backdrop-out { 0%,16% { opacity: 1 } 100% { opacity: 0 } }
@keyframes handset-out { from { opacity: 1 } to { opacity: 0; transform: translateY(-5px) scale(1.012) } }

@media (max-width: 680px) {
  .intro-light { background: radial-gradient(ellipse 54% 29% at 50% 49%,#dadcda,#858b8d 25%,#42464a 48%,#191c1e 77%,transparent 100%) }
  .intro-stage { display: flex; flex-direction: column; gap: min(3vh,22px) }
  .intro-name .wordmark { font-size: clamp(41px,11.3vw,65px) }
  .intro-copy { max-width: 25ch; text-align: center; font-size: clamp(18px,4.7vw,25px) }
  .intro-copy br { display: none }
  .phone-stage { height: min(45vh,430px); width: min(66vw,310px) }
  .skip-intro { bottom: max(12px,env(safe-area-inset-bottom)) }
}
@media (max-height: 440px) and (min-width: 681px) { .phone-stage { height: 74vh } }
@media (max-height: 460px) and (max-width: 680px) {
  .intro-stage { flex-direction: row; justify-content: center; width: 96%; gap: 12px }
  .intro-name .wordmark { font-size: clamp(30px,6.5vw,42px) }
  .phone-stage { width: 27%; height: 69vh }
  .intro-copy { width: 20%; text-align: left; font-size: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .intro *, .intro::before, .intro-light::before, .intro-light::after { animation: none !important; transition: none !important }
}
