/* Home-only polish: a quiet, complete interaction for the primary entry. */
/* The boot gate owns preparation; ready images have no opacity lag at reveal. */
.landing-home:not([data-gate-state="revealed"]) .landing-frame img,
.landing-home:not([data-gate-state="revealed"]) .landing-frame-fallback{transition:none}
.landing-home:not([data-gate-state="revealed"]) .landing-frame[data-image-state="ready"] img{opacity:1}
.landing-frame-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:14px;text-align:center;background:#eeece8;color:#54545b;font-size:clamp(9px,1.05vw,13px);line-height:1.4;box-shadow:var(--art-shadow);transition:opacity .2s ease}
.landing-frame-fallback small{font-size:.75em;opacity:.7}
@media(max-width:600px){.landing-frame-fallback{padding:4px;gap:4px;font-size:8px;line-height:1.2}.landing-frame-fallback small{font-size:6px}}
.landing-frame [data-image-error]{display:none}
.landing-frame[data-image-state="error"] [data-image-pending]{display:none}
.landing-frame[data-image-state="error"] [data-image-error]{display:block}
.landing-frame[data-image-state="ready"] .landing-frame-fallback{opacity:0;pointer-events:none}
.landing-frame[data-image-state="pending"] img,.landing-frame[data-image-state="error"] img{opacity:0}
.landing-frame img{transition:opacity .2s ease,filter .25s}
.landing-replay[hidden]{display:none}
.landing-ready-snapshot{position:absolute;inset:0;z-index:6;pointer-events:none;animation:landing-ready-dismiss .22s ease-out forwards}
.landing-ready-snapshot .landing-frame,.landing-ready-snapshot .landing-enter{pointer-events:none}
.landing-ready-snapshot canvas{display:block;width:100%;height:100%;object-fit:contain;box-shadow:var(--art-shadow)}
.landing-ready-snapshot .landing-copy{opacity:1;transform:translateX(-50%)}
@keyframes landing-ready-dismiss{to{opacity:0}}
@media(prefers-reduced-motion:reduce){.landing-frame img,.landing-frame-fallback{transition:none}.landing-ready-snapshot{display:none}}
.landing-copy .landing-enter{
 position:relative;min-height:44px;padding:11px 13px;gap:17px;
 color:#35353b;font-size:14px;font-weight:560;letter-spacing:-.01em;line-height:1.4;
 border-radius:6px;text-decoration:none;touch-action:manipulation;
 transition:color .22s ease,background-color .22s ease,transform .28s cubic-bezier(.22,.61,.36,1);
 -webkit-tap-highlight-color:transparent;
}
.landing-enter-label{display:inline-block;transition:transform .28s cubic-bezier(.22,.61,.36,1)}
.landing-copy .landing-enter svg{width:17px;height:17px;transition:transform .3s cubic-bezier(.22,.61,.36,1)}
.landing-copy .landing-enter::after{
 content:"";position:absolute;left:13px;right:13px;bottom:6px;height:1px;
 background:currentColor;opacity:.28;transform:scaleX(.3);transform-origin:left;
 transition:transform .36s cubic-bezier(.22,.61,.36,1),opacity .22s ease;
}
@media(hover:hover) and (pointer:fine){
 .landing-copy .landing-enter:hover{color:#101012;background:rgba(17,17,22,.035);transform:translateY(-1px)}
 .landing-enter:hover .landing-enter-label{transform:translateX(-1px)}
 .landing-copy .landing-enter:hover svg{transform:translateX(3px)}
 .landing-copy .landing-enter:hover::after{transform:scaleX(1);opacity:.72}
}
.landing-copy .landing-enter:focus-visible{
 color:#101012;background:rgba(17,17,22,.035);outline:2px solid #707078;outline-offset:4px;
}
.landing-copy .landing-enter:focus-visible::after{transform:scaleX(1);opacity:.72}
.landing-copy .landing-enter:focus-visible .landing-enter-label{transform:translateX(-1px)}
.landing-copy .landing-enter:focus-visible svg{transform:translateX(3px)}
.landing-copy .landing-enter:is(:active,.is-pressed){background:#ededf0;transform:translateY(1px) scale(.985);transition-duration:.08s}
.landing-copy .landing-enter:is(:active,.is-pressed) .landing-enter-label,.landing-copy .landing-enter:is(:active,.is-pressed) svg{transform:none;transition-duration:.08s}
.landing-copy .landing-enter:is(:active,.is-pressed)::after{transform:scaleX(1);opacity:1;transition-duration:.08s}
/* Keep the disciplines in the same central track after removing the side labels. */
.is-landing .landing-fields{grid-column:2;grid-row:1}
@media(max-width:900px) and (orientation:portrait){.is-landing .landing-fields{grid-column:1/-1}}
@media(max-width:600px){.landing-copy .landing-enter{font-size:13px;gap:15px}}
@media(max-width:900px) and (orientation:landscape){.landing-copy .landing-enter{font-size:12px;min-height:44px}}
@media(prefers-reduced-motion:reduce){
 .landing-copy .landing-enter,.landing-enter-label,.landing-copy .landing-enter svg,.landing-copy .landing-enter::after{transition:none}
 .landing-copy .landing-enter:is(:hover,:focus-visible,:active,.is-pressed),
 .landing-copy .landing-enter:is(:hover,:focus-visible,:active,.is-pressed) .landing-enter-label,
 .landing-copy .landing-enter:is(:hover,:focus-visible,:active,.is-pressed) svg{transform:none}
}
