/* flodash.online: parts the design system doesn't have yet (x- prefix, labelled data-new in the HTML).
   Tokens only. Components come from /public/ds/components.css; never restyle .fd-* here (rules.md CMP-04).
   Triage 2026-11-28: x-services → fd-sign-off, x-intro → fd-hero--inverse (hover facts stay here), x-scroll-cue → fd-scroll-cue. */

/* ---------- Intro hover facts: extras inside the fd-hero--inverse headline ---------- */
.x-intro__word { position: relative; display: inline-block; transition: color var(--motion-duration-base) var(--motion-ease-standard); }
.x-intro__word:hover, .x-intro__word:focus-visible { color: var(--color-text-brand); }
.x-intro__word:focus-visible { outline: 2px solid var(--color-text-brand); outline-offset: 0.08em; border-radius: var(--radius-card); }
.x-intro__fact {
  position: absolute; left: 0; top: calc(100% + 0.3em); width: max-content; max-width: 18rem;
  color: var(--color-text-muted-inverse); text-align: start; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, var(--color-surface-inverse) 40%, transparent 60%);
  mask-image: linear-gradient(90deg, var(--color-surface-inverse) 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: mask-position var(--motion-duration-slow) var(--motion-ease-standard), -webkit-mask-position var(--motion-duration-slow) var(--motion-ease-standard);
}
.x-intro__fact--above { top: auto; bottom: calc(100% + 0.3em); }
.x-intro__fact--end { left: auto; right: 0; text-align: end; }
.x-intro__word:hover .x-intro__fact, .x-intro__word:focus-visible .x-intro__fact { -webkit-mask-position: 0 0; mask-position: 0 0; }
.x-intro__photo {
  position: absolute; left: calc(100% + 0.4em); top: 50%; width: 2.5em; height: auto; aspect-ratio: 304 / 399;
  object-fit: cover; border-radius: var(--radius-card); opacity: 0; pointer-events: none; z-index: 2;
  transform: translateY(-50%) scale(0.6) rotate(-6deg); transform-origin: left center;
  transition: opacity var(--motion-duration-fast) var(--motion-ease-standard), transform var(--motion-duration-base) var(--motion-ease-spring);
}
.x-intro__word:hover .x-intro__photo, .x-intro__word:focus-visible .x-intro__photo { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }
/* typewriter (hero-type.js) */
.x-intro__title.is-typing .x-char { visibility: hidden; }
.x-caret { display: inline-block; width: 0.06em; height: 0.85em; margin-left: 0.04em; vertical-align: -0.05em; background: var(--color-text-brand); }
.x-caret.is-blinking { animation: x-caret var(--motion-duration-slower) steps(1) infinite; }
@keyframes x-caret { 50% { opacity: 0; } }
@media (max-width: 768px) {
  .x-intro__photo { left: auto; right: calc(100% + 0.3em); top: auto; bottom: 0; transform: scale(0.6) rotate(-6deg); transform-origin: right bottom; }
  .x-intro__word:hover .x-intro__photo, .x-intro__word:focus-visible .x-intro__photo { transform: scale(1) rotate(0deg); }
  .x-intro__fact { left: auto; right: 0; text-align: end; }
  .x-intro__fact--above { display: none; }
}

/* ---------- Signature under the home intro ---------- */
.x-signature { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: 0 var(--pad-edge) var(--section-pad-block); text-align: center; }
.x-signature__text { margin: 0; }
.x-signature__name { display: block; }
.x-signature__mark { display: block; width: auto; height: calc(var(--type-ui) * 2.5); }

/* ---------- "View more" projects ---------- */
.x-work-more__wrap { display: flex; justify-content: center; }
.x-work-more { width: 100%; }

/* ---------- Bio: photo with hover reveal + text ---------- */
.x-bio { display: flex; align-items: center; justify-content: center; gap: var(--section-gap); padding: 0 var(--pad-edge) var(--section-pad-block); }
.x-bio__media { position: relative; flex: 0 0 min(28rem, 32%); }
.x-bio__photo, .x-bio__reveal { display: block; width: 100%; height: auto; aspect-ratio: 441 / 579; object-fit: cover; border-radius: var(--radius-card); }
.x-bio__reveal { position: absolute; inset: 0; height: 100%; clip-path: circle(0); pointer-events: none; }
.x-bio__text { flex: 0 1 40rem; display: flex; flex-direction: column; gap: var(--space-5); }
.x-bio__text > * { margin: 0; }
.x-bio__name { color: var(--color-text-muted-inverse); }
@media (max-width: 768px) {
  .x-bio { flex-direction: column; align-items: flex-start; }
  .x-bio__media { flex: none; width: 100%; max-width: 28rem; }
  .x-bio__text { flex: none; } /* stacked: the 40rem basis would become a 640px height */
}
