html[data-intro="entry"] { overflow: hidden; }
html[data-intro="entry"] #site-intro.gate,
html[data-intro="first"] #site-intro.gate,
html[data-intro="leaving"] #site-intro.gate {
  position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; box-sizing: border-box;
  background: hsl(36 33% 96% / .98); color: hsl(20 15% 17%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), backdrop-filter .9s, -webkit-backdrop-filter .9s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
html.dark #site-intro.gate { background: hsl(24 12% 10% / .98); color: hsl(36 33% 94%); }
.gate:focus,.gate:focus-visible{outline:none !important;box-shadow:none !important}
.gate__center { position: relative; display: grid; gap: 20px; justify-items: center; width: 100%; max-width: 520px; margin-top: -8vh; }
.gate.checking,.gate.verified{cursor:default}
.gate.ready{cursor:pointer}
.mark{position:relative;width:76px;height:76px;display:grid;place-items:center}
.mark .crown{width:58px;height:58px;color:#f97316;filter:drop-shadow(0 6px 22px rgba(249,115,22,.55));transition:transform .6s cubic-bezier(.22,1,.36,1),opacity .4s}
.mark .crown { display: block; background: currentColor; -webkit-mask: var(--crown-mask) center / contain no-repeat; mask: var(--crown-mask) center / contain no-repeat; }
.gate.ready .mark .crown{animation:kxBreathe 2.6s ease-in-out infinite}
@keyframes kxBreathe{50%{transform:translateY(-4px) scale(1.04)}}
.mark .mk-spin{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#f97316;stroke-width:3;stroke-linecap:round;stroke-dasharray:60 400;transform-origin:50% 50%;opacity:0;transition:opacity .4s}
.gate .mark svg{box-shadow:none !important;outline:none !important}
.mark .tick{position:absolute;width:40px;height:40px;color:#fff;opacity:0;transform:scale(.6);transition:opacity .35s,transform .5s cubic-bezier(.34,1.5,.5,1)}
.mark .tick path{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .45s ease-out .1s}
.gate.checking .mk-spin{opacity:.9;animation:mkSpin 1.1s linear infinite}
@keyframes mkSpin{to{transform:rotate(360deg)}}
.gate.checking .crown{transform:scale(.62);opacity:.85}
.gate.verified .mark::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#f97316;box-shadow:0 8px 26px -6px rgba(249,115,22,.7);animation:kxPop .5s cubic-bezier(.34,1.5,.5,1) both}
@keyframes kxPop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.gate.verified .crown{opacity:0;transform:scale(.4)}
.gate.verified .tick{opacity:1;transform:none}
.gate.verified .tick path{stroke-dashoffset:0}
.gate .lines{display:grid;width:100%}
.gate .lines .line{grid-area:1/1;display:grid;gap:8px;justify-items:center;opacity:0;transform:translateY(8px);transition:opacity .45s,transform .6s cubic-bezier(.22,1,.36,1)}
.gate.checking .l-check,.gate.verified .l-ok,.gate.ready .l-enter{opacity:1;transform:none}
.gate .eyebrow[dir="ltr"]{display:flex;align-items:center;gap:14px;font:600 11px/1 "Google Sans",system-ui,sans-serif;letter-spacing:.46em;text-transform:uppercase;color:#e8b98f;opacity:0;transform:translateY(4px);transition:opacity .8s .2s,transform .8s cubic-bezier(.22,1,.36,1) .2s}
.gate .eyebrow span{margin-inline-end:-.46em}
.gate .eyebrow i{width:34px;height:1px;background:linear-gradient(90deg,transparent,rgba(232,185,143,.7))}
.gate .eyebrow i:last-child{transform:scaleX(-1)}
.gate:not(.checking) .eyebrow,.gate.checking .eyebrow{opacity:.9;transform:none}
@starting-style { .gate .eyebrow[dir="ltr"] { opacity: 0; transform: translateY(4px); } }
.gate .main{font-family:"Google Sans",system-ui,sans-serif;font-weight:700;letter-spacing:-.025em;line-height:1.1;font-size:clamp(32px,5.4vw,50px);padding:0 .06em .1em;text-wrap:balance;
  background:linear-gradient(90deg,#fff4ea 0%,#ffd8b8 22%,#ff9d57 42%,#f97316 50%,#ff9d57 58%,#ffd8b8 78%,#fff4ea 100%);background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:flow 7s linear infinite}
@keyframes flow{to{background-position:-220% 0}}
.gate .l-check .main,.gate .l-ok .main{font-size:clamp(24px,3.8vw,34px);font-weight:600}
.gate .l-check .main .dots i{font-style:normal;color:#ff9d57;-webkit-text-fill-color:#ff9d57;animation:dot 1.2s ease-in-out infinite}
.gate .l-check .main .dots i:nth-child(2){animation-delay:.15s}
.gate .l-check .main .dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,100%{opacity:.25}40%{opacity:1}}
.gate .he{font-family:"Google Sans",system-ui,sans-serif;font-weight:500;font-size:17px;color:#c9b8ae;letter-spacing:0}
.gate .l-enter .main{-webkit-mask-image:linear-gradient(90deg,#000 42%,transparent 58%);mask-image:linear-gradient(90deg,#000 42%,transparent 58%);-webkit-mask-size:260% 100%;mask-size:260% 100%;-webkit-mask-position:100% 0;mask-position:100% 0}
.gate.ready .l-enter .main{animation:flow 7s linear infinite,write 1.1s cubic-bezier(.5,0,.2,1) .1s both,unblur 1.1s cubic-bezier(.22,1,.36,1) .1s backwards}
@keyframes write{from{-webkit-mask-position:100% 0;mask-position:100% 0}to{-webkit-mask-position:0 0;mask-position:0 0}}
@keyframes unblur{from{filter:blur(8px);transform:translateY(8px) scale(.98)}to{filter:blur(0);transform:none}}
.gate .lines{position:relative;isolation:isolate}
.gate .lines::before{content:"";position:absolute;left:50%;top:40%;width:120%;height:160%;transform:translate(-50%,-50%);background:radial-gradient(50% 50% at 50% 50%,rgba(249,115,22,.13),transparent 70%);pointer-events:none;z-index:-1}
.gate.ready:focus-visible .lines::before{background:radial-gradient(50% 50% at 50% 50%,rgba(249,115,22,.22),transparent 70%)}
.gate .l-enter .he{opacity:0;transform:translateY(4px);transition:opacity .7s .9s,transform .8s cubic-bezier(.22,1,.36,1) .9s}
.gate.ready .l-enter .he{opacity:.75;transform:none}
html:not(.dark) .gate .main{background-image:linear-gradient(90deg,#7c2d12 0%,#9a3412 20%,#c2410c 40%,#f97316 50%,#c2410c 60%,#9a3412 80%,#7c2d12 100%)}
html:not(.dark) .gate .l-check .main .dots i{color:#ea580c;-webkit-text-fill-color:#ea580c}
html:not(.dark) .gate .eyebrow{color:#c2410c}
html:not(.dark) .gate .eyebrow i{background:linear-gradient(90deg,transparent,rgba(194,65,12,.55))}
html:not(.dark) .gate .he{color:#6b5f58}
html:not(.dark) .gate.ready .l-enter .he{opacity:.9}
html:not(.dark) .gate .lines::before{background:radial-gradient(50% 50% at 50% 50%,rgba(249,115,22,.10),transparent 70%)}
.gate .lines { pointer-events: none; line-height: 1.65; }
.gate:not(.checking) .site-intro__challenge { opacity: 0; pointer-events: none; }
html[data-intro="leaving"] #site-intro.gate {
  opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
}
.gate.exiting .gate__center { animation: kxGateExit .9s cubic-bezier(.22,1,.36,1) both; }
@keyframes kxGateExit { to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #site-intro.gate, .gate *, .gate *::before { animation: none !important; transition: none !important; }
  .gate .mark .crown, .gate .mark .tick, .gate .lines .line { transform: none; }
  .gate .mark .tick path { transition: none; }
  .gate .l-enter .main { -webkit-mask-image: none; mask-image: none; filter: none; transform: none; }
  .gate .l-enter .he { transform: none; }
  html[data-intro="leaving"] #site-intro.gate { transition: opacity 120ms linear !important; }
}
