/* Kisun front page — the shop's first screen.
   Motion is gentle and short, and every bit of it is switched off for anyone
   whose device asks for less movement (.kf-calm). */

/* ---------- the hero ----------
   The hero's colours live in kisu-shop.css, with the rest of the look. */
.kf-hero { position: relative; isolation: isolate; overflow: hidden; }
.kf-glow { position: absolute; inset: -30% -10%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .5; }
.kf-glow i {
  position: absolute; display: block; border-radius: 50%;
  animation: kfDrift 22s ease-in-out infinite alternate;
}
.kf-glow i:nth-child(1) { width: 46%; padding-bottom: 46%; left: -6%; top: 4%; background: radial-gradient(circle at 30% 30%, #e3e1de, transparent 70%); }
.kf-glow i:nth-child(2) { width: 40%; padding-bottom: 40%; right: -4%; top: 22%; background: radial-gradient(circle at 60% 40%, #dedcda, transparent 70%); animation-duration: 28s; animation-delay: -6s; }
.kf-glow i:nth-child(3) { width: 34%; padding-bottom: 34%; left: 38%; bottom: -10%; background: radial-gradient(circle at 50% 50%, #ffe0c2, transparent 70%); animation-duration: 25s; animation-delay: -12s; }
@keyframes kfDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -5%, 0) scale(1.14); }
}

.kf-hero .heroText h1 { line-height: 1.05; }
/* one warm line against the ink, rather than three colours across the words */
.kf-hero .heroText h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #d1cfcb 5%, #ffc9a3 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kf-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* glass against the ink, not a white slab */
.kf-ghost-btn {
  min-height: 50px; padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #fff;
  font: 600 15.5px var(--kd-sans, system-ui, sans-serif); cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.kf-ghost-btn:hover { border-color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .2); transform: translateY(-1px); }

.kf-hero-art { position: relative; }
.kf-hero-art img { animation: kfFloat 9s ease-in-out infinite; will-change: transform; }
@keyframes kfFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-.4deg); }
}
/* the promise that floats over the photograph — real glass, not a white card */
.kf-hero-badge {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 15px; border-radius: 16px;
  background: rgba(24, 23, 21, .58); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 34px rgba(16, 15, 14, .34);
  animation: kfRise .7s .5s both ease-out;
}
.kf-hero-badge b { display: block; color: #fff; font: 700 14.5px/1.35 var(--kd-sans, system-ui, sans-serif); }
.kf-hero-badge small { display: block; margin-top: 2px; color: #d0cfce; font: 500 12.5px/1.4 var(--kd-sans, system-ui, sans-serif); }
.kf-badge-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--kd-green, #23694a); box-shadow: 0 0 0 0 rgba(35, 105, 74, .5); animation: kfPulse 2.4s infinite; }
@keyframes kfPulse {
  0% { box-shadow: 0 0 0 0 rgba(35, 105, 74, .45); }
  70% { box-shadow: 0 0 0 12px rgba(35, 105, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 105, 74, 0); }
}

/* text rising in, one line after another */
.kf-rise { animation: kfRise .65s both cubic-bezier(.22, .68, .3, 1); animation-delay: calc(var(--kf-step, 0) * 90ms + 120ms); }
@keyframes kfRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- the destinations strip ---------- */
.kf-marquee {
  overflow: hidden; padding: 14px 0; margin: 4px 0 8px;
  border-block: 1px solid var(--kd-line, #e2e1e0);
  background: linear-gradient(90deg, #fff, var(--kd-bg, #f9f9f8), #fff);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.kf-marquee-run { display: flex; width: max-content; animation: kfSlide 34s linear infinite; }
.kf-marquee-run > div { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.kf-marquee span { color: var(--kd-plum, #252422); font: 600 15px var(--kd-sans, system-ui, sans-serif); letter-spacing: .01em; white-space: nowrap; }
.kf-marquee i { color: var(--kd-pink, #393632); font-style: normal; font-size: 12px; }
@keyframes kfSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.kf-marquee:hover .kf-marquee-run { animation-play-state: paused; }

/* ---------- categories with artwork ---------- */
.kf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kf-cat {
  display: grid !important; justify-items: center; gap: 6px;
  height: auto !important; padding: 16px 12px 14px !important;
  border: 1px solid var(--kd-line, #e2e1e0) !important; border-radius: 20px !important;
  background: #fff !important; cursor: pointer;
  transition: transform .18s cubic-bezier(.22,.68,.3,1), box-shadow .18s, border-color .18s;
}
.kf-cat:hover, .kf-cat:focus-visible { transform: translateY(-4px); border-color: var(--kd-pink, #393632) !important; box-shadow: 0 16px 34px rgba(38, 36, 33, .12); }
.kf-cat-art { display: block; width: 84px; height: 84px; }
.kf-cat .kf-art { width: 100%; height: 100%; transition: transform .25s cubic-bezier(.22,.68,.3,1); }
.kf-cat:hover .kf-art { transform: scale(1.08) rotate(-2deg); }
.kf-cat-name { color: var(--kd-ink, #222120); font: 600 14.5px/1.35 var(--kd-sans, system-ui, sans-serif); text-align: center; }
.kf-cat[aria-pressed="true"], .kf-cat.active { border-color: var(--kd-pink, #393632) !important; background: #f8f8f8 !important; }

/* ---------- how it works ---------- */
.kf-how { padding-top: 26px; }
.kf-eyebrow { margin: 0; color: var(--kd-pink, #393632); font: 700 12.5px var(--kd-sans, system-ui, sans-serif); text-transform: uppercase; letter-spacing: .12em; }
.kf-how-head h2 { margin: 8px 0 22px; font: 400 clamp(26px, 3.4vw, 38px) var(--kd-serif, Georgia, serif); color: var(--kd-ink, #222120); }
.kf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; position: relative; }
.kf-step { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--kd-line, #e2e1e0); border-radius: 20px; }
.kf-step::after {
  content: ""; position: absolute; top: 46px; right: -18px; width: 18px;
  border-top: 2px dashed var(--kd-line, #e2e1e0);
}
.kf-steps > .kf-step:last-child::after { display: none; }
.kf-step-number {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--kd-plum, #252422); color: #fff;
  font: 700 17px var(--kd-sans, system-ui, sans-serif);
}
.kf-step h3 { margin: 0 0 6px; font: 700 18px var(--kd-sans, system-ui, sans-serif); color: var(--kd-ink, #222120); }
.kf-step p { margin: 0; color: var(--kd-muted, #737270); font: 500 15px/1.6 var(--kd-sans, system-ui, sans-serif); }

/* ---------- the numbers ---------- */
.kf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding-block: 8px 30px; }
.kf-stat { padding: 24px 22px; text-align: center; background: #fff; border: 1px solid var(--kd-line, #e2e1e0); border-radius: 20px; }
.kf-stat b { display: block; font: 400 clamp(34px, 4.4vw, 46px) var(--kd-serif, Georgia, serif); color: var(--kd-pink, #393632); line-height: 1; }
.kf-stat span { display: block; margin-top: 8px; color: var(--kd-muted, #737270); font: 600 13.5px var(--kd-sans, system-ui, sans-serif); }

/* ---------- product cards ---------- */
.kf-card { transition: transform .2s cubic-bezier(.22,.68,.3,1), box-shadow .2s; }
.kf-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(38, 36, 33, .14); }
.kf-card img { transition: transform .35s cubic-bezier(.22,.68,.3,1); }
.kf-card:hover img { transform: scale(1.05); }
.kf-card-art { display: grid; place-items: center; }
.kf-card-art .kf-art { width: 110px; height: 110px; }

/* ---------- appearing on scroll ---------- */
.kf-reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.22,.68,.3,1); transition-delay: calc(var(--kf-step, 0) * 60ms); }
.kf-reveal.kf-shown { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .kf-cats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
  .kf-cat-art { width: 68px; height: 68px; }
  .kf-step::after { display: none; }
  .kf-hero-badge { position: static; margin-top: 12px; }
  .kf-cta-row .primary, .kf-ghost-btn { width: 100%; justify-content: center; }
}

/* ---------- anyone who asked for less movement gets none ---------- */
.kf-calm .kf-glow i,
.kf-calm .kf-hero-art img,
.kf-calm .kf-marquee-run,
.kf-calm .kf-badge-dot,
.kf-calm .kf-rise,
.kf-calm .kf-hero-badge { animation: none !important; }
.kf-calm .kf-reveal { opacity: 1; transform: none; transition: none; }
.kf-calm .kf-card, .kf-calm .kf-cat, .kf-calm .kf-card img, .kf-calm .kf-art { transition: none; }
.kf-calm .kf-card:hover, .kf-calm .kf-cat:hover { transform: none; }
