/* ==========================================================================
   Motion layer (23 Nov 2026, DESIGN batch 1; JD: smoother, more premium
   hovers with purposeful variation, not one animation everywhere).
   Loads last (after readability.css). `html` lifts these rules above the page
   files, the same device base.css uses for its hover rules.

   Each kind of thing answers a pointer in its own way:
   - Rise:   cards that open another page lift on one shared curve.
   - Still:  cards that only inform (no link) don't move at all.
   - Reveal: a book on the Publications shelf slowly comes forward in its frame.
   - Draw:   a gold hairline draws under an edition's name (skye-home.css).
   - Press:  buttons give under the finger.
   Hover-only motion is limited to fine pointers, so a tap on a phone never
   leaves a card stuck mid-lift. Keyboard focus keeps its outline everywhere.
   Under reduced motion base.css makes every transition instant; on top of
   that, the movements here (press, reveal) are switched off.
   ========================================================================== */

/* --- Rise ---------------------------------------------------------------
   One curve for every link card: travel and shadow on the house ease-out,
   colour changes quicker. Replaces `transition: all` (author, contact and
   community cards) and the plain 300ms `ease` elsewhere. */
html .ek-continue__card,
html .ek-skye-shop .edition-card,
html .ek-skye-author .social-card,
html .ek-skye-contact .social-card,
html .ek-skye-community .channel-box {
	transition:
		transform 420ms var(--ek-ease),
		box-shadow 420ms var(--ek-ease),
		border-color 220ms ease,
		background-color 220ms ease;
}
/* Cards that rose with no shadow looked like they slid; a soft shadow grounds them. */
@media (hover: hover) and (pointer: fine) {
	html .ek-skye-shop .edition-card:hover,
	html .ek-skye-contact .social-card:not(.is-soon):hover,
	html .ek-skye-community .channel-box:not(.is-soon):hover { box-shadow: 0 16px 32px var(--ek-ink-home-a06); }
}
/* Touch screens: no lift or shadow left behind after a tap (the page files'
   hovers aren't limited to a mouse). Colour cues stay. */
@media (hover: none) {
	html .ek-continue__card:hover,
	html .ek-skye-shop .edition-card:hover,
	html .ek-skye-author .social-card:hover,
	html .ek-skye-contact .social-card:hover,
	html .ek-skye-community .channel-box:hover { transform: none; box-shadow: none; }
}

/* --- Still ----------------------------------------------------------------
   Contact's three enquiry cards (Press, Events, Rights) hold no link but
   lifted and turned white like links do. Now they stay put, like the
   Coming soon teasers (base.css). */
html .ek-skye-contact .inquiry-card { transition: none; }
html .ek-skye-contact .inquiry-card:hover { transform: none; background: var(--bg-sand); border-color: var(--hairline); }
/* Publications: a book still to come is not a link, so its card doesn't turn gold. */
html .ek-skye-simple .ek-books__item--soon .ek-books__card:hover { border-color: var(--border-color, var(--ek-border)); }

/* --- Reveal ---------------------------------------------------------------
   Publications: the cover of a book you can open comes slowly forward inside
   its frame while the frame turns gold. Slower than the cards on purpose:
   it's the one object on the shelf. */
html .ek-skye-simple .ek-books__card { transition: border-color 220ms ease; }
html .ek-skye-simple .ek-books__img { transition: transform 900ms var(--ek-ease); }
@media (hover: hover) and (pointer: fine) {
	html .ek-skye-simple a.ek-books__card:hover .ek-books__img { transform: scale(1.035); }
}
html .ek-skye-simple a.ek-books__card:focus-visible { border-color: var(--ek-veld-gold); }

/* --- Press ----------------------------------------------------------------
   Buttons answer the press itself: a slight give, released quickly.
   Colour changes on hover speed up from 300ms to 200ms. Checkout and the
   number picker are left alone (payment flow). */
html .ek-skye-home .home-btn,
html .ek-skye-book .btn-main,
html .ek-skye-shop .woo-buy-button,
html .ek-skye .submit-btn,
html .footer-form__submit,
html .ek-button {
	transition:
		background-color 200ms ease,
		color 200ms ease,
		border-color 200ms ease,
		transform 160ms var(--ek-ease);
}
html .ek-skye-home .home-btn:active,
html .ek-skye-book .btn-main:active,
html .ek-skye-shop .woo-buy-button:active,
html .ek-skye .submit-btn:active,
html .footer-form__submit:active,
html .ek-button:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
	html .ek-skye-home .home-btn:active,
	html .ek-skye-book .btn-main:active,
	html .ek-skye-shop .woo-buy-button:active,
	html .ek-skye .submit-btn:active,
	html .footer-form__submit:active,
	html .ek-button:active,
	html .ek-skye-simple a.ek-books__card:hover .ek-books__img { transform: none; }
}
