/* Client entrance only: the project workspace keeps its existing layout. */
body:has(.client-entry) { background: #2b1f1a; padding-bottom: 0; }
body:has(.client-entry) .ambient,
body:has(.client-entry) .client-portal-top { display: none; }
.client-portal-shell:has(.client-entry) { width: 100%; margin: 0; padding: 0; }
.client-entry {
  --entry-foil: linear-gradient(115deg,#f4dda5 0%,#cff5df 20%,#d0c1ff 38%,#fff6d8 55%,#f5d18c 73%,#c4ecd7 88%,#d0c1ff);
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  min-height: 100svh; max-width: 1440px; margin: auto;
  padding: max(20px,env(safe-area-inset-top)) 6% max(18px,env(safe-area-inset-bottom));
  color: #f8f3ed; font-family: "Avenir Next",Avenir,"Helvetica Neue",Helvetica,Arial,sans-serif;
}
.client-entry::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 45%,#5f4b382e,transparent 65%); }
.client-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; }
.client-entry-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #e6d8c5; text-decoration: none; font-size: 11px; }
.client-entry-back img { width: 34px; height: 34px; object-fit: contain; }
.client-entry-back > span:last-child { font-size: 15px; }
.client-entry-private { display: inline-flex; align-items: center; gap: 7px; color: #d5c5af; font-size: 8px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; }
.client-entry-private svg,.client-entry-security svg { flex-shrink: 0; width: 14px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.client-entry-layout { display: grid; flex: 1; grid-template-columns: minmax(0,1.25fr) minmax(340px,.85fr); align-items: center; gap: 5%; padding: 30px 0; }
.client-entry-world { position: relative; isolation: isolate; min-height: 490px; }
.client-entry-overline { display: block; position: relative; z-index: 2; margin: 5px 0 22px; color: #d1c3b2; font-size: 9px; font-weight: 500; letter-spacing: .17em; }
.client-entry-wordmark { position: relative; z-index: 2; display: block; width: 100%; height: auto; max-width: 600px; }
.client-entry-art { position: absolute; z-index: -1; inset: 55px -17% -30px -25%; pointer-events: none; }
.client-entry-cloud { position: absolute; width: 100%; height: 100%; object-fit: contain; opacity: .9; mask-image: linear-gradient(180deg,#000 35%,#0009 75%,transparent 100%); }
.client-entry-star { position: absolute; width: 155px; height: auto; right: 12%; top: 39%; transform: rotate(-9deg); filter: drop-shadow(0 12px 20px #2b1f1a55); }
.client-entry-spark { position: absolute; top: 35%; right: 34%; font-size: 22px; color: #eee4cc; }
.client-entry-caption { position: absolute; bottom: 30px; left: 0; margin: 0; font-size: clamp(32px,3.3vw,48px); line-height: 1.04; font-weight: 800; letter-spacing: -.06em; }
.client-entry-caption em { font-style: italic; background: var(--entry-foil); background-clip: text; -webkit-background-clip: text; color: transparent; }
.client-entry-access { position: relative; isolation: isolate; width: 100%; max-width: 440px; justify-self: end; padding: 32px; border: 1px solid #d3c1a657; border-radius: 18px; background: linear-gradient(150deg,#49382c70,transparent 50%),#2b1f1aed; box-shadow: 0 20px 70px #140c0a30,inset 0 1px 0 #fff1; }
.client-entry-access::before { content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 1px; background: var(--entry-foil); opacity: .85; }
.client-entry-access-head > span { display: block; margin-bottom: 14px; color: #d0bb97; font-size: 8px; font-weight: 650; letter-spacing: .15em; }
.client-entry-access h1 { margin: 0; font-size: clamp(30px,3.2vw,44px); line-height: 1.05; font-weight: 800; letter-spacing: -.065em; }
.client-entry-access h1 em { display: inline; font-style: italic; background: var(--entry-foil); background-clip: text; -webkit-background-clip: text; color: transparent; padding-right: .06em; }
.client-entry-access-head p { margin: 17px 0 23px; color: #cbbfae; font-size: 13px; line-height: 1.65; }
.client-entry-access-head strong { color: #f0e8da; font-weight: 600; overflow-wrap: anywhere; }
.client-entry-form { display: grid; gap: 10px; }
.client-entry-form label { color: #e1d4c0; font-size: 10px; font-weight: 600; }
.client-entry-form input { width: 100%; min-width: 0; min-height: 52px; padding: 13px 16px; border: 1px solid #c8b49870; border-radius: 8px; background: #221813; color: #f8f3ed; font: inherit; font-size: 16px; outline: none; }
.client-entry-form input::placeholder { color: #a89c8c; opacity: 1; }
.client-entry-form input:focus { border-color: #e1d8b1; box-shadow: 0 0 0 3px #d7d7b217; }
.client-entry-email { position: relative; border: 1px solid transparent; border-radius: 12px; background: linear-gradient(115deg,#3b3029,#261d18 45%,#302820) padding-box,var(--entry-foil) border-box; box-shadow: inset 0 1px 0 #fff2,0 4px 14px #160d0925; transition: box-shadow .2s; }
.client-entry-email::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg,#f4dda50a,transparent 38%,#d0c1ff0a 75%,#cff5df0a); pointer-events: none; }
.client-entry-email > svg { position: absolute; z-index: 1; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #ded7ba; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.client-entry-form .client-entry-email input { position: relative; z-index: 1; min-height: 56px; padding-left: 47px; border: 0; border-radius: inherit; background: transparent; box-shadow: none; }
.client-entry-email:focus-within { box-shadow: 0 0 0 3px #d0c1ff20,0 0 24px #c4ecd714,inset 0 1px 0 #fff3; }
.client-entry-email:focus-within > svg { stroke: #f8f3ed; }
.client-entry-form > button { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; margin-top: 5px; padding: 13px 19px; border: 1px solid #eee1c5; border-radius: 999px; background: var(--entry-foil); color: #2b1f1a; box-shadow: inset 0 1px 1px #fff9; font-size: 12px; font-weight: 750; cursor: pointer; transition: filter .2s,transform .2s; }
.client-entry-form > button > span { font-size: 20px; line-height: 1; font-weight: 400; }
.client-entry-form > button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.client-entry-form > button:disabled { opacity: .65; cursor: progress; transform: none; }
.client-entry-form .client-form-note { margin: 0; min-height: 0; color: #f4c5ae; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.client-entry-form .client-form-note:empty { display: none; }
.client-entry-form .client-code-input { letter-spacing: .32em; font-size: 24px!important; font-weight: 650; padding-left: 23px; }
.client-entry-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #bfb09b; font-size: 10px; line-height: 1.5; }
.client-entry-secondary { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.client-entry-secondary button { min-height: 44px; padding: 7px 0; border: 0; background: none; color: #daccb8; font-size: 10px; text-underline-offset: 4px; cursor: pointer; }
.client-entry-secondary button:hover { text-decoration: underline; }
.client-entry-secondary button:disabled { opacity: .5; cursor: progress; }
.client-entry-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: #b8a890; font-size: 8px; letter-spacing: .1em; }
.client-entry-footer > span { display: inline-flex; gap: 15px; align-items: center; }
.client-entry-footer i { color: #d6c59e; font-size: 13px; font-style: normal; }
.client-entry-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #d4c5b0; font-size: 10px; letter-spacing: 0; text-decoration: none; }
.client-entry a:focus-visible,.client-entry button:focus-visible { outline: 2px solid #f1e2b7; outline-offset: 4px; }
.client-entry-loading { margin: 25vh auto; text-align: center; color: #e4d5c3; font-size: 13px; }
@media(max-width:760px) {
  .client-entry { padding: max(14px,env(safe-area-inset-top)) 22px max(12px,env(safe-area-inset-bottom)); }
  .client-entry-top { gap: 10px; }
  .client-entry-back { gap: 7px; font-size: 10px; }
  .client-entry-back img { width: 28px; height: 28px; }
  .client-entry-private { font-size: 7px; gap: 5px; letter-spacing: .07em; }
  .client-entry-layout { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 12px 0 20px; }
  .client-entry-world { flex-shrink: 0; width: 100%; max-width: 440px; min-height: 255px; }
  .client-entry-overline { margin: 13px 0 12px; font-size: 7px; text-align: center; }
  .client-entry-wordmark { width: 100%; }
  .client-entry-art { inset: 35px -20% -40px; }
  .client-entry-cloud { opacity: .9; mask-image: linear-gradient(180deg,#000 25%,#000b 70%,transparent 100%); }
  .client-entry-star { width: 100px; right: 20%; top: 35%; }
  .client-entry-spark { font-size: 15px; right: 41%; top: 31%; }
  .client-entry-caption { bottom: 30px; left: 10px; font-size: 29px; text-shadow: 0 2px 14px #24191280; }
  .client-entry-access { padding: 25px 23px; max-width: 440px; }
  .client-entry-access h1 { font-size: 34px; }
  .client-entry-access-head > span { margin-bottom: 12px; }
  .client-entry-access-head p { font-size: 12px; margin: 13px 0 20px; }
  .client-entry-security { font-size: 9px; }
  .client-entry-footer { font-size: 7px; gap: 12px; }
  .client-entry-footer > span { gap: 10px; }
}
@media(max-width:359px) {
  .client-entry { padding-inline: 16px; }
  .client-entry-world { min-height: 225px; }
  .client-entry-star { width: 85px; right: 18%; }
  .client-entry-caption { bottom: 22px; font-size: 26px; }
  .client-entry-access { padding: 22px 19px; }
  .client-entry-access h1 { font-size: 30px; }
  .client-entry-private svg { display: none; }
  .client-entry-security { font-size: 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .client-entry * { animation: none!important; transition: none!important; }
}
@media(forced-colors:active) {
  .client-entry-email { border-color: CanvasText; }
  .client-entry-email:focus-within { outline: 2px solid Highlight; outline-offset: 3px; }
  .client-entry-art { display: none; }
  .client-entry-access h1 em,.client-entry-caption em { background: none; color: CanvasText; }
  .client-entry-form > button { border: 1px solid ButtonText; }
}
