/* proj.fi front door (2026-10-19): Sign in everywhere, the request-access form, the
   sticky chapter bar's actions, the footer, and motion polish. Loads after landing.css. */

/* Sign in stays reachable at every width. */
.navright .signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: #d9e1f2; font-weight: 600; }
.navright .signin:hover { color: #fff; }
@media (max-width: 520px) {
  .navright { gap: 14px; }
  .navright .button { padding: 11px 12px; font-size: 10px; gap: 10px; }
}

/* Hero / closing secondary action is Sign in. */
.cinema-copy .actions .button.ghost span, .endcap .actions .button.ghost span { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.cinema-copy .actions .button.ghost:hover span, .endcap .actions .button.ghost:hover span { transform: translateX(3px); }

/* The workspace aside's walkthrough link is a button now. */
button.sponsor-demo-link { background: none; border: 0; padding: 0; font: inherit; font-size: 10px; font-weight: 600; width: 100%; text-align: left; cursor: pointer; }
@media (min-width: 1101px) { button.sponsor-demo-link { font-size: 12px; } }

/* Sticky chapter bar: five chapters + the two doors on the right. */
.story-nav-inner { gap: 28px; }
.story-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; padding-left: 18px; flex: none; }
.story-actions .story-signin { padding: 0; border: 0; font-size: 11px; color: #b9c6e0; }
.story-actions .story-signin:hover { color: #fff; }
.story-actions .story-access { background: var(--cobalt); color: #fff; border: 0; border-radius: 4px; padding: 9px 13px; font: 600 11px/1 Manrope, Arial, sans-serif; white-space: nowrap; transition: background-color .2s, transform .2s; }
.story-actions .story-access:hover { background: #2a56e6; }
.story-actions .story-access:active { transform: translateY(1px); }
@media (max-width: 1180px) { .story-actions .story-signin { display: none; } }
@media (max-width: 760px) { .story-actions { display: none; } }

/* Request access form. */
#access-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
#access-dialog h2 { margin: 16px 0 12px; }
#access-dialog .close { min-width: 44px; min-height: 44px; margin: -12px -14px 0 0; color: #c5cee0; border-radius: 4px; }
#access-dialog .close:hover { color: #fff; background: #ffffff10; }
.access-form { display: grid; gap: 14px; margin-top: 22px; }
.access-field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: #dfe5f2; }
.access-field small { font-weight: 400; color: #8e9ab3; }
.access-field input, .access-field select, .access-field textarea {
  width: 100%; min-height: 44px; padding: 11px 13px; border-radius: 4px; border: 1px solid #ffffff2e;
  background: #0e1420; color: var(--paper); font: 400 14px/1.4 Manrope, Arial, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.access-field textarea { resize: vertical; min-height: 84px; }
.access-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fb2da 50%), linear-gradient(135deg, #9fb2da 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.access-field input::placeholder, .access-field textarea::placeholder { color: #6f7b93; }
.access-field input:focus-visible, .access-field select:focus-visible, .access-field textarea:focus-visible { outline: none; border-color: #799aff; box-shadow: 0 0 0 3px #5f82ff40; }
.access-field [aria-invalid="true"] { border-color: #ff8f8f; }
.access-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.access-error { min-height: 1.4em; margin: 0; font-size: 12px; line-height: 1.5; color: #ffb4b4; }
.access-error:empty { min-height: 0; }
.access-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#access-dialog .access-actions .button { margin-top: 0; }
.access-actions .button[disabled] { opacity: .65; cursor: progress; }
.access-actions .button[aria-busy="true"] span { animation: access-pulse 1s ease-in-out infinite; }
@keyframes access-pulse { 50% { opacity: .3; } }
.access-fallback { font-size: 12px; color: #9aa6bf; }
.access-fallback a { color: #c9d6ff; text-decoration: underline; text-underline-offset: 3px; }
#access-dialog p.access-privacy { font-size: 11px; line-height: 1.6; color: #7f8ba3; margin: 0; }
.access-done { padding-top: 6px; outline: none; }
.access-done .access-done-title { font-size: 18px; font-weight: 600; color: var(--paper); margin-bottom: 6px; }
.access-done strong { color: #dfe7ff; font-weight: 600; word-break: break-all; }
.access-done .button { margin-top: 24px; }
dialog[open] { animation: access-in .32s cubic-bezier(.22,1,.36,1); }
@keyframes access-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* Footer. */
.site-foot { border-top: 1px solid #ffffff1c; background: #0b0d11; }
.site-foot-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; padding-top: 34px; padding-bottom: 34px; }
.site-foot-brand { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700; font-size: 22px; letter-spacing: -1px; color: var(--paper); }
.site-foot-brand i { height: 5px; width: 5px; background: var(--blue); align-self: center; border-radius: 50%; }
.site-foot-brand em { font-size: 26px; color: var(--blue); }
.site-foot-note { font-size: 11px; line-height: 1.6; color: #8792a8; max-width: 560px; }
.site-foot-links { display: flex; gap: 22px; align-items: center; font-size: 12px; color: #c3cbe0; }
.site-foot-links a, .site-foot-links button { background: none; border: 0; padding: 10px 0; color: inherit; font: inherit; cursor: pointer; }
.site-foot-links a:hover, .site-foot-links button:hover { color: #fff; }
.site-foot-copy { grid-column: 1 / -1; font: 11px/1.5 Mono, monospace; letter-spacing: .08em; color: #8792a8; }
@media (max-width: 860px) {
  .site-foot-inner { grid-template-columns: 1fr; }
  .site-foot-links { flex-wrap: wrap; gap: 6px 22px; }
}

/* Fi stage: the camera pans across a world wider than the window; feather its edges so
   surfaces leaving the frame read as off-camera, not clipped. */
.teaser-viewport::before {
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, #101722 0, #10172200 76px), linear-gradient(270deg, #111824 0, #11182400 76px);
}

@media (prefers-reduced-motion: reduce) {
  dialog[open], .access-actions .button[aria-busy="true"] span { animation: none; }
  .cinema-copy .actions .button.ghost span, .endcap .actions .button.ghost span { transition: none; }
}

/* "Pause motion" pauses every ambient loop on the page, not only Fi (WCAG 2.2.2). */
html[data-motion="paused"] .hero-light span { animation-play-state: paused; }
.teaser-motion-toggle { min-height: 44px; }

/* Fi stage rendering: the caption is already near-opaque, so its blur over a world that
   re-transforms every frame bought nothing; promote the world only while it moves, so
   text is not rasterised soft at rest. */
.teaser-caption { -webkit-backdrop-filter: none; backdrop-filter: none; }
.direction-one .teaser-world { will-change: auto; }
.direction-one .teaser-root[data-teaser-playing="true"] .teaser-world { will-change: transform; }

/* Reduced motion: no camera. The three surfaces sit side by side in their final state and
   the stage scrolls sideways, so source, model and output are all reachable. */
@media (prefers-reduced-motion: reduce) {
  .teaser-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
  .teaser-viewport::before { display: none; }
  .teaser-world { transform: none !important; position: relative; }
  .teaser-world > * { scroll-snap-align: start; }
}

/* Contrast on the paper surfaces (≥ 4.5:1 on #f5f2e9). */
.direction-one .teaser-sponsor-base { color: #5c6475; }
.direction-one .platform-grain { color: #586374; }
.direction-one .evidence-document-project { color: #5b5f69; }

/* Category tiles keep their colours (presentation, spreadsheet, document, email) on the
   output labels; the dark-strip line icons stay monochrome. */
.direction-one .output-copy>span img[src*="-tile"] { filter: none; border-radius: 3px; }
.teaser-window-tile { display: block; flex: none; border-radius: 3px; }
