/* Entrance choice — host loader (experience.html) and direct-page overlay. */

/* A static page opened directly stays covered until the entrance screen mounts
   (site-host.js lifts this after 4 s if the screen cannot load). */
html[data-entry-gate=pending] body{visibility:hidden}
html[data-entry-gate=pending]{background:#151a22}
html[data-entry-gate=open]{background:#151a22}
html[data-entry-gate=pending][data-theme=dark]{background:#151a22}
html[data-entry-gate=open],html[data-entry-gate=open] body{overflow:hidden}

.entry-gate{position:fixed;inset:0 -40px;z-index:1000;display:grid;place-items:center;overflow:hidden;isolation:isolate;overscroll-behavior:contain;background:var(--paper);color:var(--ink);visibility:visible}
.entry-gate::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.13;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='.91' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23777' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.entry-pigment{position:absolute;width:48vmax;height:40vmax;border-radius:46% 54% 68% 32%;filter:blur(75px);opacity:.18;z-index:-1;animation:entry-drift 14s ease-in-out infinite alternate}
.entry-pigment-blue{background:#6baebf;left:-15%;top:-18%}
.entry-pigment-pink{background:#d497b2;right:-16%;bottom:-25%;animation-direction:alternate-reverse}
@keyframes entry-drift{to{transform:translate(9%,12%) rotate(22deg);border-radius:65% 35% 42% 58%}}
.entry-gate-content{display:flex;flex-direction:column;align-items:center;text-align:center;padding:32px 24px;max-width:600px}
.entry-mark{height:104px;width:auto;margin-bottom:28px}
.entry-mark-dark{display:none}
html[data-theme=dark] .entry-mark-light,body[data-theme=dark] .entry-mark-light{display:none}
html[data-theme=dark] .entry-mark-dark,body[data-theme=dark] .entry-mark-dark{display:block}

/* Quote and its source, shared by both screens. */
.entry-quote{margin:0;display:grid;justify-items:center;gap:6px}
.entry-quote blockquote{margin:0}
.entry-gate .brand-loading-quote{font-family:"M Sefira",sans-serif;font-size:24px;font-weight:400;line-height:1.9;margin:0;letter-spacing:0}
.brand-loading-source{display:inline-flex;align-items:center;gap:10px;font-style:normal;color:var(--muted);line-height:1.6;letter-spacing:.01em}
.brand-loading-source::before{content:'';width:22px;height:1px;background:currentColor;opacity:.55}

/* The two ways in. Equal weight: the visitor decides. */
.entry-choice{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
.entry-choice[hidden]{display:none}
.entry-choice-button{--entry-fill:color-mix(in srgb,var(--paper) 84%,transparent);display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;min-width:210px;padding:12px 24px;border:1px solid transparent;border-radius:999px;background:linear-gradient(var(--entry-fill),var(--entry-fill)) padding-box,linear-gradient(120deg,#6baebf,#d497b2) border-box;color:var(--ink);cursor:pointer;box-shadow:0 12px 30px -20px color-mix(in srgb,var(--ink) 55%,transparent);transition:transform .28s cubic-bezier(.23,1,.32,1),box-shadow .28s ease,opacity .2s ease;-webkit-tap-highlight-color:transparent}
.entry-choice-button svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.entry-choice-button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.entry-choice-button:active{transform:scale(.98)}
.entry-choice-button[disabled]{cursor:default}
.entry-choice-button[disabled]:not([aria-pressed=true]){opacity:.45}
@media(hover:hover) and (pointer:fine){.entry-choice-button:not([disabled]):hover{transform:translateY(-1px);box-shadow:0 16px 34px -20px color-mix(in srgb,var(--ink) 65%,transparent)}}
.entry-choice-button .entry-wave{animation:entry-wave 1.8s ease-in-out infinite}
@keyframes entry-wave{50%{opacity:.35}}
.entry-note{margin-top:16px;max-width:36ch;color:var(--muted);line-height:1.7;text-align:center}
.entry-gate:focus,.experience-loader:focus{outline:none}
.entry-appear{animation:entry-appear .5s cubic-bezier(.23,1,.32,1) both}
@keyframes entry-appear{from{opacity:0;transform:translateY(8px)}}

@media(max-width:520px){
  .entry-choice{flex-direction:column;align-items:stretch;width:min(100%,320px)}
  .entry-choice-button{width:100%;min-width:0}
  .entry-gate .brand-loading-quote{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
  .entry-pigment,.entry-choice-button .entry-wave,.entry-appear{animation:none}
  .entry-choice-button{transition:none}
}
@media(forced-colors:active){.entry-choice-button{border-color:ButtonText;background:ButtonFace;color:ButtonText}}
