/* TANOMATO sample kit — shared mechanics for samples/*.html.
   Colors and fonts come from each site's own stylesheet (--k-* tokens). */
:root { --k-ease: cubic-bezier(.16, 1, .3, 1); --k-ease-io: cubic-bezier(.77, 0, .18, 1); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 10002; padding: 10px 16px; border-radius: 10px; background: var(--k-ink, #111); color: var(--k-bg, #fff); font-weight: 700; text-decoration: none; transition: top .25s; }
.skip:focus { top: 12px; }

/* ---------- Opening and page transitions ---------- */
.loader { position: fixed; inset: 0; z-index: 9500; display: none; }
.booting .loader { display: grid; animation: kit-safety 0s 5s forwards; }
.booting body { overflow: hidden; }
.booting.is-loaded body { overflow: auto; }
@keyframes kit-safety { to { visibility: hidden; opacity: 0; pointer-events: none; } }

.veil { position: fixed; inset: 0; z-index: 9400; pointer-events: none; transform: scaleY(0); transform-origin: 50% 100%; }
.veil.is-leaving { transform: scaleY(1); transition: transform .72s var(--k-ease-io); }
.entering .veil { transform: scaleY(1); transform-origin: 50% 0; animation: kit-safety 0s 3s forwards; }
.entering.is-entered .veil { transform: scaleY(0); transition: transform .95s var(--k-ease-io); }

/* The fixed mobile menu lives inside the header; a hidden (transformed) header would trap it. */
.menu-open [data-autohide] { transform: none !important; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 1.1s var(--k-ease), transform 1.4s var(--k-ease), clip-path 1.4s var(--k-ease), filter 1.2s var(--k-ease); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.js [data-reveal="up"] { transform: translate3d(0, 44px, 0); }
.js [data-reveal="left"] { transform: translate3d(-44px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="blur"] { filter: blur(14px); transform: scale(1.03); }
.js [data-reveal="mask"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.js [data-reveal="wipe"] { opacity: 1; clip-path: inset(0 100% 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="mask"].is-in, .js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

[data-split] .ch { display: inline-block; white-space: pre; }
.js [data-split] .ch { opacity: 0; transform: translate3d(0, .5em, 0) rotate(8deg); transition: opacity .9s var(--k-ease), transform 1.1s var(--k-ease); transition-delay: calc(var(--c) * 38ms + var(--d, 0ms)); }
.js [data-split].is-in .ch { opacity: 1; transform: none; }

.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.js [data-lines] .ln > span { transform: translate3d(0, 110%, 0); transition: transform 1.25s var(--k-ease); transition-delay: calc(var(--l, 0) * 110ms + var(--d, 0ms)); }
.js [data-lines].is-in .ln > span { transform: none; }

[data-words] .w { opacity: .15; transition: opacity .45s, color .45s; }
[data-words] .w.on { opacity: 1; }

[data-magnetic] { transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0); transition: transform .6s var(--k-ease); }
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--k-ease); }
[data-speed] { will-change: transform; }

.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--k-spot, rgba(255, 255, 255, .14)), transparent 62%); opacity: 0; transition: opacity .5s; }
.spot:hover::after { opacity: 1; }

/* ---------- Cursor mark (look is set by each site) ----------
   Only shown over clickable things; the visitor's own pointer stays visible. */
.cursor { position: fixed; left: 0; top: 0; z-index: 9800; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-hover { opacity: 1; }
.cursor__shape, .cursor__label { position: absolute; left: 0; top: 0; }

/* ---------- Disclosure ribbon ---------- */
.sample-ribbon { position: fixed; left: 14px; bottom: 14px; z-index: 9000; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px); padding: 6px 6px 6px 7px; border-radius: 999px; font: 500 12px/1.3 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif; letter-spacing: .02em; color: #fff; text-decoration: none; background: rgba(20, 20, 22, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); transition: transform .5s var(--k-ease), background .3s; }
.sample-ribbon b { padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #141416; background: #fff; }
.sample-ribbon i { padding: 5px 11px; border-radius: 99px; font-style: normal; white-space: nowrap; background: rgba(255, 255, 255, .14); transition: background .3s; }
.sample-ribbon:hover { transform: translateY(-2px); }
.sample-ribbon.is-tucked { transform: translateY(calc(100% + 24px)); }
.sample-ribbon:focus-visible { transform: none; }
.sample-ribbon:hover i { background: rgba(255, 255, 255, .3); }
.sample-ribbon .short { display: none; }
.sample-ribbon:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) {
  .sample-ribbon { left: 10px; bottom: 10px; font-size: 11px; }
  .sample-ribbon .long { display: none; }
  .sample-ribbon .short { display: inline; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .ch, .js [data-lines] .ln > span { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}
