/*
Theme Name: Denyut
Description: Interactive, app-style one-page dating content theme with swipe deck, scroll animations and per-site palettes (Appearance > Customize > Tampilan Denyut).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: denyut
*/

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("assets/fonts/PlusJakartaSans-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	--wrap: 1200px;
	--r: 24px;
	--grad: linear-gradient(120deg, var(--p), var(--s));
	--line: color-mix(in srgb, var(--text) 10%, transparent);
	--shadow: 0 30px 60px -30px color-mix(in srgb, var(--p) 55%, rgba(0,0,0,.4));
	--ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; }
p { margin: 0; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 200; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--s); outline-offset: 3px; border-radius: 8px; }
.ico { width: 1em; height: 1em; }

/* Reveal on scroll */
html.js:not(.no-anim) [data-reveal] { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
html.js:not(.no-anim) [data-reveal].in { opacity: 1; transform: none; }
html.no-anim .msg { opacity: 1; transform: none; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }

/* Buttons */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 28px; font-size: 15px; font-weight: 700; text-decoration: none; color: #fff; background: var(--grad); background-size: 160% 160%; box-shadow: var(--shadow); transform: translate(var(--mx), var(--my)); transition: transform .25s var(--ease), box-shadow .25s, background-position .6s; position: relative; overflow: hidden; }
.btn:hover { background-position: 100% 0; box-shadow: 0 24px 50px -20px var(--p); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-ghost { background: color-mix(in srgb, var(--p) 10%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p) 35%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--p); }
.btn-light { background: #fff; color: #111; }
.magnet { will-change: transform; }

/* Header */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 16px; transition: top .3s var(--ease); }
.hdr { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 22px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 40px -20px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); transition: padding .3s var(--ease), box-shadow .3s; }
.is-scrolled .hdr { padding-top: 7px; padding-bottom: 7px; box-shadow: 0 18px 50px -24px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); }
.hdr-logo { flex: none; text-decoration: none; }
.logo-img { height: 34px; width: auto; }
.mode-dark .logo-img { filter: drop-shadow(0 0 0 transparent); }
.logo-text { font-weight: 800; font-size: 20px; }
.hdr-nav { position: relative; flex: 1; display: flex; justify-content: center; gap: 4px; font-size: 13.5px; font-weight: 600; }
.hdr-nav a { position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .2s; }
.hdr-nav a:hover, .hdr-nav a.is-active { color: var(--text); }
.nav-pill { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--p) 14%, transparent); transition: left .35s var(--ease), width .35s var(--ease), opacity .2s; opacity: 0; pointer-events: none; }
.hdr-cta { flex: none; }
.hdr-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.hdr-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-open .hdr-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .hdr-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { max-width: 1160px; margin: 10px auto 0; padding: 14px; border-radius: 26px; background: var(--surface); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); }
.mnav a { display: block; padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; animation: slideIn .45s var(--ease) both; animation-delay: calc(var(--d) * 60ms); }
.mnav a:hover, .mnav a.is-active { background: color-mix(in srgb, var(--p) 12%, transparent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* Animated blobs */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.mode-dark .blob { opacity: .4; }
.b1 { width: 460px; height: 460px; background: var(--p); top: -120px; right: -80px; }
.b2 { width: 380px; height: 380px; background: var(--s); bottom: -140px; left: -100px; animation-duration: 22s; }
.b3 { width: 300px; height: 300px; background: var(--t); top: 40%; left: 45%; animation-duration: 26s; opacity: .35; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.1); } 100% { transform: translate(30px, -20px) scale(.95); } }

/* Hero */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; padding: 8px 16px 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 22px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 0 var(--p); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.h1 { font-size: clamp(38px, 5.4vw, 70px); font-weight: 800; line-height: 1.06; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rot-word { grid-area: 1 / 1; max-width: 100%; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(60%) rotateX(-60deg); transform-origin: 50% 100%; transition: opacity .5s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.rot-word.is-on { opacity: 1; transform: none; }
.rot-word.is-out { opacity: 0; transform: translateY(-60%) rotateX(60deg); }
.lead { font-size: 17px; color: var(--muted); max-width: 540px; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s, transform .2s; }
.hero-chips a:hover { color: var(--p); box-shadow: inset 0 0 0 1.5px var(--p); transform: translateY(-2px); }

/* Phone + swipe deck */
.phone-wrap { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1200px; }
.phone { position: relative; width: 320px; height: 640px; border-radius: 48px; padding: 12px; background: #0d0b12; box-shadow: 0 50px 90px -40px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08), 0 0 0 10px color-mix(in srgb, var(--p) 18%, transparent); transform: rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); animation: floaty 7s ease-in-out infinite; }
.phone-wrap:hover .phone { transform: rotateY(0) rotateX(0); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.phone-top { position: absolute; top: 18px; left: 34px; right: 34px; z-index: 5; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.phone-notch { width: 96px; height: 26px; border-radius: 20px; background: #0d0b12; }
.phone-bat { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid #fff; position: relative; }
.phone-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }
.phone-app { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.app-bar { display: flex; justify-content: center; padding: 52px 0 10px; }
.app-logo { height: 24px; width: auto; }
.deck { position: relative; flex: 1; margin: 0 14px; touch-action: pan-y; }
.swipe { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--bg); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); cursor: grab; user-select: none; -webkit-user-select: none; transform-origin: 50% 110%; transition: transform .45s var(--ease), opacity .45s; }
.swipe:active { cursor: grabbing; }
.swipe img, .swipe .ph { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.swipe:nth-last-child(2) { transform: scale(.95) translateY(12px); }
.swipe:nth-last-child(3) { transform: scale(.9) translateY(24px); }
.swipe:nth-last-child(n+4) { transform: scale(.85) translateY(36px); opacity: 0; }
.swipe.dragging { transition: none; }
.swipe-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: #fff; }
.swipe-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.swipe-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.swipe-info p { font-size: 12.5px; opacity: .85; line-height: 1.5; }
.stamp { position: absolute; top: 28px; z-index: 3; font-size: 26px; font-weight: 800; letter-spacing: .06em; padding: 4px 14px; border-radius: 10px; border: 4px solid; opacity: 0; transition: opacity .1s; }
.stamp-like { left: 20px; color: #22c55e; transform: rotate(-16deg); }
.stamp-nope { right: 20px; color: #ef4444; transform: rotate(16deg); }
.deck-btns { display: flex; justify-content: center; gap: 22px; padding: 18px 0 22px; }
.deck-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); box-shadow: 0 12px 26px -12px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); transition: transform .2s var(--ease); }
.deck-btn:hover { transform: scale(1.12); }
.deck-btn:active { transform: scale(.92); }
.deck-btn svg { width: 24px; height: 24px; }
.deck-btn.nope { color: #ef4444; }
.deck-btn.like { color: #fff; background: var(--grad); }
.deck-btn.like .ico { width: 26px; height: 26px; fill: currentColor; }
.deck-hint { font-size: 12.5px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.deck-hint::before { content: "👆"; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(8px); } }
.orbit { position: absolute; inset: -30px -50px; pointer-events: none; z-index: 2; }
.float { position: absolute; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--grad); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.f1 { top: 12%; left: 0; } .f2 { top: 30%; right: 0; background: linear-gradient(120deg, var(--t), var(--p)); animation-delay: -1.2s; }
.f3 { bottom: 28%; left: 4%; background: linear-gradient(120deg, var(--s), var(--t)); animation-delay: -2.4s; } .f4 { bottom: 12%; right: 6%; animation-delay: -3.3s; }
.float .ico { width: 26px; height: 26px; }
.f1 .ico { fill: currentColor; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* Match overlay */
.match { position: absolute; inset: -20px; z-index: 10; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); border-radius: 40px; animation: fadeIn .3s ease both; }
.match-card { text-align: center; background: var(--grad); color: #fff; padding: 30px 30px 24px; border-radius: 28px; box-shadow: var(--shadow); animation: pop .55s var(--ease) both; max-width: 280px; }
.match-hearts { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.match-hearts .ico { width: 34px; height: 34px; fill: #fff; animation: beat 1s ease-in-out infinite; }
.match-hearts .ico + .ico { animation-delay: .15s; }
.match-title { display: block; font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: -0.02em; }
.match-name { font-size: 14px; margin: 6px 0 18px; opacity: .92; }
.match-go { background: #fff; color: #111; box-shadow: none; }
.match-close { display: block; margin: 14px auto 0; background: none; border: 0; color: #fff; font-size: 13px; text-decoration: underline; opacity: .9; }
@keyframes pop { 0% { transform: scale(.5) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
.burst-heart { position: fixed; z-index: 150; pointer-events: none; width: 18px; height: 18px; color: var(--p); animation: burst 1s var(--ease) forwards; }
.burst-heart .ico { width: 100%; height: 100%; fill: currentColor; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(var(--r)); opacity: 0; } }

/* Marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--grad); color: #fff; transform: rotate(-2deg); margin: 10px -20px 0; padding: 18px 0; box-shadow: var(--shadow); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.marquee i { display: grid; place-items: center; }
.marquee i .ico { width: 20px; height: 20px; fill: rgba(255,255,255,.85); stroke: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento features */
.feats { padding: 120px 0 80px; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; margin-top: 46px; }
.bento-item { --rx: 0deg; --ry: 0deg; position: relative; overflow: hidden; padding: 30px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out, box-shadow .3s; }
.bento-item.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.bento-item:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p) 50%, transparent), var(--shadow); }
.b-1 { grid-column: span 2; background: var(--grad); color: #fff; }
.b-1 p { color: rgba(255,255,255,.88) !important; }
.b-4 { grid-column: span 2; }
.bento-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 26px; margin-bottom: 26px; background: color-mix(in srgb, var(--p) 14%, transparent); color: var(--p); transition: transform .4s var(--ease); }
.b-1 .bento-ico { background: rgba(255,255,255,.2); color: #fff; }
.bento-item:hover .bento-ico { transform: rotate(-10deg) scale(1.1); }
.bento-item h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.bento-item p { font-size: 14.5px; color: var(--muted); max-width: 460px; }
.bento-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--s) 45%, transparent), transparent 70%); left: var(--gx, -300px); top: var(--gy, -300px); transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s; opacity: 0; }
.bento-item:hover .bento-glow { opacity: 1; }

/* Timeline */
.steps-sec { padding: 90px 0; }
.timeline { position: relative; list-style: none; margin: 56px auto 0; padding: 0; max-width: 860px; }
.tl-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; border-radius: 4px; background: var(--grad); transform-origin: 50% 0; transform: scaleY(var(--tl, 0)); }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; margin-bottom: 36px; }
.tl-dot { grid-column: 2; justify-self: center; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease); }
.tl-step.lit .tl-dot { background: var(--grad); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--p) 18%, transparent); transform: scale(1.08); }
.tl-card { grid-column: 3; padding: 24px 26px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tl-step:nth-child(odd) .tl-card { grid-column: 1; grid-row: 1; text-align: right; }
.tl-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.tl-card p { font-size: 14.5px; color: var(--muted); }

/* Chat */
.chat-sec { padding: 90px 0; }
.chat-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.chat-head p { color: var(--muted); margin-top: 16px; max-width: 380px; }
.chat { border-radius: 30px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat-top small { display: block; font-size: 12px; color: #22c55e; font-weight: 600; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 20px; }
.chat-avatar .ico { fill: currentColor; }
.chat-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 14.5px; line-height: 1.55; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; color: #fff; background: var(--grad); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: color-mix(in srgb, var(--p) 9%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.typing { align-self: flex-start; display: none; gap: 5px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--p) 9%, var(--surface)); }
.typing.show { display: flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Articles */
.articles { padding: 100px 0 80px; }
.sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.sec-head p { color: var(--muted); margin-top: 14px; }
.cat-block { margin-top: 70px; scroll-margin-top: 110px; }
.cat-block:first-of-type { margin-top: 0; }
.cat-head { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.cat-num { flex: none; font-size: 54px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.cat-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.cat-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { --rx: 0deg; --ry: 0deg; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, opacity .8s var(--ease), transform .25s ease-out; }
.card.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card:hover { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--p) 45%, transparent); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-time { position: absolute; left: 14px; top: 14px; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 18px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.card-title a { text-decoration: none; background: linear-gradient(var(--p), var(--p)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.card:hover .card-title a { background-size: 100% 2px; }
.card-text { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 18px; }
.card-more { font-size: 14px; font-weight: 700; color: var(--p); text-decoration: none; }
.card-more span { display: inline-block; transition: transform .3s var(--ease); }
.card:hover .card-more span { transform: translateX(5px); }
.empty { padding: 26px; border-radius: 20px; text-align: center; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-more { margin-top: 26px; }
.ph { background: var(--grad); opacity: .35; }

/* CTA */
.cta-sec { padding: 60px 0 120px; }
.cta { position: relative; overflow: hidden; text-align: center; padding: 80px 30px; border-radius: 40px; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.cta .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; text-decoration-color: rgba(255,255,255,.5); }
.cta p { max-width: 560px; margin: 18px auto 32px; opacity: .92; font-size: 16.5px; }
.cta-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); animation: spin 30s linear infinite; }
.r1 { width: 520px; height: 520px; left: -160px; top: -200px; border-style: dashed; }
.r2 { width: 380px; height: 380px; right: -120px; bottom: -180px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { position: relative; padding: 70px 0 30px; overflow: hidden; border-top: 1px solid var(--line); }
.ftr { display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.ftr-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.ftr-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.ftr-nav a { text-decoration: none; color: var(--muted); }
.ftr-nav a:hover { color: var(--p); }
.ftr-social { display: flex; justify-content: flex-end; gap: 10px; }
.ftr-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.ftr-social a:hover { background: var(--grad); color: #fff; }
.ftr-social svg { width: 18px; }
.ftr-big { font-size: min(180px, calc(130vw / var(--len, 10))); font-weight: 800; letter-spacing: -0.05em; line-height: .9; text-align: center; margin-top: 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--p) 22%, transparent), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; user-select: none; }
.ftr-copy { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top svg { width: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Single post */
.post-head { position: relative; overflow: hidden; padding: 150px 0 50px; }
.post-head-in { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 7px 16px; border-radius: 999px; color: #fff; background: var(--grad); text-decoration: none; margin-bottom: 20px; }
.post-title { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; line-height: 1.12; }
.post-meta { color: var(--muted); font-size: 14px; margin-top: 18px; }
.post-img { max-width: 1060px; }
.post-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; margin-top: 56px; padding-bottom: 40px; }
.post-grid.single-col { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: 110px; align-self: start; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.toc-title { font-weight: 800; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); border-left: 3px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--text); background: color-mix(in srgb, var(--p) 10%, transparent); border-left-color: var(--p); }
.prose { font-size: 17.5px; line-height: 1.85; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 1.9em; scroll-margin-top: 110px; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.5em; }
.prose a { color: var(--p); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--p); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 20px; background: color-mix(in srgb, var(--p) 8%, var(--surface)); box-shadow: inset 4px 0 0 var(--p); }
.prose strong { color: var(--text); }
.related { padding: 50px 0 100px; }
.related .cards { margin-top: 36px; }
.listing { padding: 150px 0 100px; }
.search-form { display: flex; justify-content: center; margin-top: 22px; gap: 8px; }
.search-form label { flex: 0 1 360px; }
.search-field { width: 100%; padding: 14px 20px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.search-submit { border: 0; border-radius: 999px; padding: 0 22px; color: #fff; background: var(--grad); font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.pager .current { color: #fff; background: var(--grad); box-shadow: none; }
.nf { position: relative; overflow: hidden; text-align: center; padding: 190px 0 150px; }
.nf .wrap { z-index: 1; }
.nf-code { font-size: clamp(90px, 18vw, 200px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .lead { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1100px) {
	.hdr-nav, .hdr-cta { display: none; }
	.hdr-toggle { display: flex; }
	.hero-in { grid-template-columns: 1fr; text-align: center; }
	.lead { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-chips { justify-content: center; }
	.phone-wrap { margin-top: 30px; }
	.bento { grid-template-columns: 1fr 1fr; }
	.b-1, .b-4 { grid-column: span 2; }
	.chat-in { grid-template-columns: 1fr; }
	.cards { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: minmax(0, 720px); }
	.toc { position: static; }
	.ftr { grid-template-columns: 1fr; text-align: center; }
	.ftr-nav, .ftr-social { justify-content: center; }
	.ftr-logo .logo-img { margin: 0 auto; }
}
@media (max-width: 680px) {
	.site-header { top: 10px; padding: 0 10px; }
	.hero { padding: 120px 0 70px; }
	.phone { width: 290px; height: 580px; transform: none; }
	.orbit { inset: -20px -10px; }
	.float { width: 44px; height: 44px; border-radius: 14px; }
	.bento { grid-template-columns: 1fr; }
	.b-1, .b-4 { grid-column: auto; }
	.tl-line { left: 26px; }
	.tl-step { grid-template-columns: 52px 1fr; gap: 16px; }
	.tl-dot { grid-column: 1; }
	.tl-card, .tl-step:nth-child(odd) .tl-card { grid-column: 2; grid-row: 1; text-align: left; }
	.cards { grid-template-columns: 1fr; }
	.cat-num { font-size: 40px; }
	.cta { padding: 60px 22px; border-radius: 28px; }
	.post-head { padding-top: 120px; }
	.post-img img { border-radius: 22px; aspect-ratio: 4 / 3; }
	.marquee-track { font-size: 16px; }
	.rot-word { white-space: normal; }
	.h1 { font-size: clamp(32px, 9vw, 44px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	[data-reveal] { opacity: 1; transform: none; }
	.msg { opacity: 1; transform: none; }
}

.cat-head-txt { flex: 1; }
.cat-title a { text-decoration: none; }
.cat-title a:hover { color: var(--p); }
.cat-all { --mx: 0px; --my: 0px; flex: none; font-size: 14px; font-weight: 700; color: var(--p); text-decoration: none; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p) 40%, transparent); transition: background .2s, color .2s; }
.cat-all:hover { background: var(--p); color: #fff; }
.listing { position: relative; }
@media (max-width: 680px) { .cat-head { flex-wrap: wrap; } .cat-all { margin-left: 72px; } }
