/* ------------------------------------------------------------------
   SOTI preview polish iteration — 2026-11 (author-authorized)
   One-shot Lattice trace on the two Cinder Archive signup CTAs.

   The traced artwork is the EXISTING cover-derived lattice rail
   (--lattice-rail, generated at runtime from the commissioned cover
   fragment) already resting on .cta::after at 112x13, right 17px /
   bottom 1px. This sheet only adds an entrance: on hover or keyboard
   focus the rail is revealed left-to-right into its approved place
   (~600ms, runs once per interaction), then settles at the approved
   hover appearance (opacity .95 from the base sheet). Un-hovering
   returns to the approved resting state (.55) via the existing
   transition. No geometry is invented, no asset is altered, no
   continuous animation loop is added, and .nav-cta is untouched.

   Fallback & accessibility:
   - Touch / non-hover devices: base resting accent only; links work
     on first tap (the pseudo-element is pointer-events:none).
   - prefers-reduced-motion: no trace animation, static accent,
     normal focus indicator (base sheet rules untouched).
   - Pause Motion (aria-pressed on the engine's [data-motion]
     buttons): trace disabled while paused.
   ------------------------------------------------------------------ */

@keyframes soti-lattice-trace {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  55%  { opacity: 0.95; }
  100% { clip-path: inset(0 0 0 0); opacity: 0.95; }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .cta:hover::after {
      animation: soti-lattice-trace 0.6s cubic-bezier(0.25, 0.7, 0.25, 1) 1 both;
    }
  }
  .cta:focus-visible::after {
    animation: soti-lattice-trace 0.6s cubic-bezier(0.25, 0.7, 0.25, 1) 1 both;
  }

  /* Pause Motion freezes decorative motion: static accent instead */
  body:has([data-motion][aria-pressed="true"]) .cta:hover::after,
  body:has([data-motion][aria-pressed="true"]) .cta:focus-visible::after {
    animation: none;
  }
}

/* ------------------------------------------------------------------
   Consistent cinder interaction states — 2026-11 author fix list #1.
   The approved orange accent already exists in the base sheet
   (.credit-link:hover -> #ec6d50 / var(--red)); these rules extend the
   same accent to the interactive links that lacked any accent: the
   professional-inquiries mailto, the footer navigation (Cinder Archive,
   Contact, Privacy Policy, Terms) and the OPEN & ZOOM text control.
   Colour is an accent only; keyboard focus gets a visible outline and
   :active gives pressed feedback. Links stay plain anchors, so touch
   activation works on first tap. The header .nav keeps its approved
   white hover/inversion behaviour untouched.
   ------------------------------------------------------------------ */
.contact > a,
.footer nav a,
.text-cta {
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.contact > a:hover,
.footer nav a:hover,
.text-cta:hover {
  color: #ec6d50;
  text-decoration-color: var(--red, #d94833);
}
.contact > a:active,
.footer nav a:active,
.text-cta:active {
  color: var(--red, #d94833);
}
.contact > a:focus-visible,
.footer nav a:focus-visible,
.text-cta:focus-visible {
  color: #ec6d50;
  outline: 2px solid var(--red, #d94833);
  outline-offset: 4px;
}

/* ------------------------------------------------------------------
   Withheld-cover placeholder display — 2026-11 (author instruction).
   The v15 vitrine section is back in its original position with its
   approved layout, but the display shows the earlier approved
   unreleased-cover placeholder ("Vitrine / Awaiting the artifact. /
   In Development") instead of any artwork.

   The placeholder element carries the v15 .book class on purpose: it
   inherits the book's exact width rules at every breakpoint and its
   aspect ratio (the front panel's 967/1371) from the base sheet, so the
   display keeps the approved proportions by construction. It is a flat,
   static panel: no cover image, no faces, no rotate/zoom/open controls,
   and the engine's cover viewer never binds (its dialog markup is
   absent).

   The three text lines are <p> elements so the engine's readable-ink
   layer copies them like every other line on the page: when a
   page-anchored fracture opens across the display the wording inverts
   and stays legible. They are scoped through #cover-status so they
   outrank the base sheet's generic `.section p:not(...)` body-copy rule.
   No corner brackets (v15 removed frame corners).
   ------------------------------------------------------------------ */
.book.cover-placeholder {
  cursor: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  border: 1px solid rgba(243, 239, 234, 0.14);
  background:
    radial-gradient(120% 80% at 50% 25%, rgba(243, 239, 234, 0.04), transparent 60%),
    #0e0f13;
}
#cover-status .cover-placeholder-label,
#cover-status .cover-placeholder-status {
  max-width: none;
  margin: 0;
  font: 500 0.72rem/1.6 var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8f8a86;
}
#cover-status .cover-placeholder-label {
  margin-bottom: 18px;
}
#cover-status .cover-placeholder-line {
  max-width: none;
  margin: 0;
  font: italic 400 clamp(24px, 2.05vw, 30px)/1.3 var(--display);
  color: #a19d99;
}
.cover-placeholder-rule {
  display: block;
  width: 24px;
  height: 1px;
  margin-top: 24px;
  background: var(--red, #d94833);
  opacity: 0.85;
}
#cover-status .cover-placeholder-status {
  margin-top: 24px;
}
