/* Kirito Lab top page: playful, modern, a little loud. */
.home {
  --hk-ink: #1d1611;
  --hk-cream: #fff6e9;
  --hk-paper: #fffdf8;
  --hk-tomato: #ff5a36;
  --hk-butter: #ffd166;
  --hk-matcha: #9cc46b;
  --hk-lilac: #c9b8ff;
  --hk-sky: #9fd8ff;
  --hk-line: 2.5px solid var(--hk-ink);
  --hk-pop: 5px 5px 0 var(--hk-ink);
  --hk-head: 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif;
  --hk-body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  background: var(--hk-cream);
  background-image: radial-gradient(rgba(29, 22, 17, 0.08) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  font-family: var(--hk-body);
  color: var(--hk-ink);
}
.home .h-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.home svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* header */
.h-head { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.h-head .h-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--hk-paper); border: var(--hk-line); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: 4px 4px 0 var(--hk-ink); max-width: 1100px; }
.h-brand { white-space: nowrap; display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--hk-head); font-size: 1.15rem; letter-spacing: 0.03em; }
.h-flask { display: inline-block; animation: hk-wobble 3s ease-in-out infinite; }
.h-nav { display: flex; align-items: center; gap: 4px; }
.h-nav > a { text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 6px 12px; border-radius: 999px; }
.h-nav > a:hover { background: var(--hk-butter); }
.h-social { display: flex; gap: 2px; margin: 0 4px; }
.h-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--hk-ink); transition: transform 0.15s, background 0.15s; }
.h-social a:hover { background: var(--hk-ink); color: #fff; transform: rotate(-8deg); }
.home .lang { border: var(--hk-line); border-width: 2px; background: #fff; font-weight: 800; }

/* buttons */
.h-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.02rem; padding: 14px 24px; border-radius: 16px; border: var(--hk-line); box-shadow: var(--hk-pop); transition: transform 0.12s, box-shadow 0.12s; color: var(--hk-ink); background: #fff; }
.h-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--hk-ink); }
.h-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hk-ink); }
.h-btn-main { background: var(--hk-tomato); color: #fff; }
.h-btn-sub { background: var(--hk-butter); }
.h-btn.sm { padding: 10px 18px; font-size: 0.95rem; box-shadow: 4px 4px 0 var(--hk-ink); }
.h-btn-tiktok { background: var(--hk-ink); color: #fff; }
.h-btn-tiktok svg { width: 20px; height: 20px; }

/* hero */
.h-hero { padding: 34px 0 0; overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; min-height: 520px; }
.h-kicker { font-weight: 900; font-size: 0.78rem; letter-spacing: 0.22em; margin: 0 0 12px; color: var(--hk-tomato); }
.h-title { font-family: var(--hk-head); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.18; margin: 0 0 18px; letter-spacing: 0.01em; }
.h-title .nb { white-space: nowrap; }
.h-title .mark { background: linear-gradient(transparent 58%, var(--hk-butter) 58%, var(--hk-butter) 92%, transparent 92%); padding: 0 4px; }
.h-lead { font-size: 1.08rem; line-height: 1.9; margin: 0 0 26px; max-width: 32em; }
.h-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.h-meta { margin: 18px 0 0; font-size: 0.85rem; font-weight: 700; opacity: 0.7; }

.h-hero-art { position: relative; height: 470px; }
.h-sticker { position: absolute; display: block; background: #fff; border: var(--hk-line); border-radius: 22px; padding: 10px 10px 0; box-shadow: 8px 8px 0 var(--hk-ink); text-decoration: none; }
.h-sticker img { border-radius: 14px; border: 2px solid var(--hk-ink); }
.h-sticker span { display: block; text-align: center; font-family: var(--hk-head); font-size: 1.3rem; padding: 8px 0 10px; }
.h-sticker.s1 { width: 58%; left: 2%; top: 8%; transform: rotate(-7deg); animation: hk-float 6s ease-in-out infinite; }
.h-sticker.s1 img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.h-sticker.s2 { width: 52%; right: 0; top: 30%; transform: rotate(6deg); animation: hk-float 7s ease-in-out -2s infinite; }
.h-sticker.s2 img { aspect-ratio: 1; object-fit: cover; }
.h-sticker.s2 span { color: var(--hk-tomato); }
.h-emoji { position: absolute; font-size: 3rem; filter: drop-shadow(3px 3px 0 rgba(29, 22, 17, 0.25)); animation: hk-bob 4s ease-in-out infinite; }
.h-emoji.e1 { left: 54%; top: 0; }
.h-emoji.e2 { left: 0; bottom: 6%; animation-delay: -1.3s; }
.h-emoji.e3 { right: 6%; top: 6%; font-size: 2.2rem; animation-delay: -2.4s; }
.h-bubble { position: absolute; right: 4%; bottom: 2%; background: var(--hk-lilac); border: var(--hk-line); border-radius: 50%; width: 112px; height: 112px; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 0.92rem; line-height: 1.3; transform: rotate(12deg); box-shadow: 4px 4px 0 var(--hk-ink); }

.h-marquee { margin-top: 40px; background: var(--hk-ink); color: var(--hk-cream); border-top: var(--hk-line); border-bottom: var(--hk-line); transform: rotate(-1.5deg); width: 104%; margin-left: -2%; overflow: hidden; }
.h-marquee-track { display: flex; gap: 40px; padding: 14px 0; white-space: nowrap; width: max-content; animation: hk-marquee 38s linear infinite; font-weight: 900; }
.h-marquee-track span::before { content: '✦'; color: var(--hk-butter); margin-right: 14px; }

/* sections */
.h-sec { padding: 96px 0 40px; }
.h-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.h-sec-head .h-kicker { width: 100%; margin-bottom: 0; }
.h-h2 { font-family: var(--hk-head); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.25; margin: 0; }

/* works */
.h-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.h-work { background: #fff; border: var(--hk-line); border-radius: 26px; overflow: hidden; box-shadow: var(--hk-pop); display: flex; flex-direction: column; transition: transform 0.18s; }
.h-work:hover { transform: translateY(-6px) rotate(-0.6deg); }
.h-work.w-latte:hover { transform: translateY(-6px) rotate(0.6deg); }
.h-work-img { position: relative; display: block; border-bottom: var(--hk-line); }
.h-work-img img { aspect-ratio: 16 / 11; object-fit: cover; }
.w-onigiri .h-work-img { background: #ffe9c9; }
.w-latte .h-work-img { background: #ead8c4; }
.h-badge { position: absolute; left: 14px; top: 14px; background: #fff; border: 2px solid var(--hk-ink); border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: 0.8rem; }
.h-badge.new { background: var(--hk-tomato); color: #fff; transform: rotate(-6deg); }
.h-work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.h-work-body h3 { font-family: var(--hk-head); font-weight: 400; font-size: 1.45rem; margin: 0 0 8px; }
.h-work-body p { margin: 0 0 18px; line-height: 1.8; font-size: 0.95rem; flex: 1; }
.h-quip { display: inline-block; margin-top: 6px; font-size: 0.82rem; opacity: 0.6; }
.h-work-cta { display: flex; align-items: center; gap: 16px; }
.h-link { font-weight: 900; text-decoration: none; border-bottom: 2.5px solid var(--hk-tomato); }
.h-soon { background: var(--hk-matcha); border-style: dashed; box-shadow: none; }
.h-soon:hover { transform: rotate(1deg); }
.h-soon-inner { padding: 30px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; }
.h-soon-emoji { font-size: 3.6rem; animation: hk-wobble 2.4s ease-in-out infinite; }
.h-soon h3 { font-family: var(--hk-head); font-weight: 400; font-size: 1.35rem; margin: 10px 0; }
.h-soon p { margin: 0; line-height: 1.8; font-weight: 700; }

/* videos */
.h-videos-sec { background: var(--hk-butter); border-top: var(--hk-line); border-bottom: var(--hk-line); margin-top: 70px; padding-bottom: 80px; }
.h-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.h-phone { position: relative; display: block; text-decoration: none; background: var(--hk-ink); border-radius: 34px; padding: 10px; box-shadow: 8px 8px 0 rgba(29, 22, 17, 0.9); transition: transform 0.18s; color: #fff; }
.h-phone:nth-child(1) { transform: rotate(-2deg); }
.h-phone:nth-child(3) { transform: rotate(2deg); }
.h-phone:hover { transform: translateY(-8px) rotate(0); }
.h-phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; display: block; background: #2a1d15; }
.h-phone-cap { display: block; padding: 14px 10px 6px; font-weight: 900; font-size: 0.98rem; line-height: 1.45; min-height: 3.6em; }
.h-phone-go { display: block; margin: 6px 10px 10px; text-align: center; background: #fff; color: var(--hk-ink); border: 2px solid var(--hk-ink); border-radius: 999px; padding: 6px 16px; font-weight: 900; font-size: 0.86rem; white-space: nowrap; }

/* notes */
.h-notes { display: grid; gap: 14px; }
.h-note { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; border: var(--hk-line); border-radius: 20px; padding: 18px 22px; text-decoration: none; box-shadow: 4px 4px 0 var(--hk-ink); transition: transform 0.15s, background 0.15s; }
.h-note:hover { transform: translateX(6px); background: var(--hk-cream); }
.h-note-tag { background: var(--hk-sky); border: 2px solid var(--hk-ink); border-radius: 999px; padding: 3px 12px; font-size: 0.78rem; font-weight: 900; white-space: nowrap; }
.h-note b { font-size: 1.02rem; line-height: 1.5; }
.h-note-go { font-weight: 900; color: var(--hk-tomato); white-space: nowrap; }

/* about + follow */
.h-about { padding-bottom: 100px; }
.h-about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.h-rules { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.h-rules li { background: #fff; border: 2px solid var(--hk-ink); border-radius: 16px; padding: 12px 16px; line-height: 1.75; }
.h-rules b { background: linear-gradient(transparent 60%, var(--hk-butter) 60%); }
.h-follow { display: grid; gap: 14px; }
.h-follow-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 16px 20px; border: var(--hk-line); border-radius: 20px; text-decoration: none; box-shadow: var(--hk-pop); transition: transform 0.12s, box-shadow 0.12s; }
.h-follow-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--hk-ink); }
.h-follow-card svg { width: 28px; height: 28px; }
.h-follow-card b { display: block; font-family: var(--hk-head); font-weight: 400; font-size: 1.2rem; }
.h-follow-card small { font-weight: 700; opacity: 0.75; }
.h-follow-card em { font-style: normal; font-weight: 900; font-size: 0.9rem; }
.h-follow-card.fx { background: #fff; }
.h-follow-card.ft { background: var(--hk-ink); color: #fff; }
.h-follow-card.fn { background: var(--hk-matcha); }

.h-foot { background: var(--hk-paper); border-top: var(--hk-line); }

/* motion */
@keyframes hk-marquee { to { transform: translateX(-50%); } }
@keyframes hk-float { 50% { translate: 0 -10px; } }
@keyframes hk-bob { 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes hk-wobble { 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 920px) {
  .h-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .h-hero-art { height: 360px; max-width: 460px; width: 100%; margin: 0 auto; }
  .h-works, .h-videos { grid-template-columns: 1fr 1fr; }
  .h-about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-head { padding: 8px 0; }
  .h-head .h-wrap { margin: 0 10px; padding: 6px 6px 6px 14px; }
  .h-nav > a { display: none; }
  .h-social a { width: 30px; height: 30px; }
  .h-social { margin: 0; }
  .h-brand { font-size: 1rem; }
  .h-title { font-size: 2.3rem; }
  .h-lead br { display: none; }
  .h-hero-art { height: 300px; }
  .h-bubble { width: 86px; height: 86px; font-size: 0.78rem; }
  .h-works, .h-videos { grid-template-columns: 1fr; }
  .h-videos { max-width: 320px; margin: 0 auto; }
  .h-note { grid-template-columns: 1fr; gap: 8px; }
  .h-note-tag { justify-self: start; }
  .h-sec { padding: 70px 0 30px; }
}
/* three works in a row; the "next experiment" card becomes a wide banner below */
.h-works .h-soon { grid-column: 1 / -1; }
.h-works .h-soon .h-soon-inner { padding-top: 22px; padding-bottom: 22px; }
.w-slime .h-work-img { background: #f3e9f6; }
.w-lantern .h-work-img { background: #1b1e38; }
