1 звезда на GitHub = 1 новый компонент.

Поставить звезду
Портфолио разработчика

Dev Hero

Hero разработчика: огромный заголовок, который перепечатывается сам, имя с падающими блоками, статус и бесконечная лента навыков с подсказками на фоне 3D-матрицы точек, расступающейся вокруг курсора.

heroportfoliothreetypewriterskills
Живое превью

Full Stack · Backend · Frontend · Creative 3D

Available for freelance

Stack & skills

Frontend

01

Backend

02

Infra

03

Использование

Скопируйте и вставьте этот код в ваш React-компонент:

tsx
import { DevHero } from 'react-component-kit-ui/sections';

{/* npm install three */}
<DevHero titles={[{ base: 'Soft', ext: 'ware', role: 'Developer' }, { base: 'Front', ext: 'end', role: 'Engineer' }]} name="Noa Lindqvist" status="Available for freelance" skills={[{ category: 'Frontend', skills: [{ name: 'React', description: 'Component architecture and design systems.' }] }]} />

Ручная установка

Если вы не используете пакет npm, создайте файл и вставьте следующий код: src/components/sections/DevHero.tsx + DevHero.css:

DevHero.tsx
'use client';

import { useEffect, useId, useRef, useState } from 'react';
import type { CSSProperties } from 'react';
import { createPortal } from 'react-dom';
import './DevHero.css';

/** class:list → className */
function cx(...args: unknown[]): string {
  const out: string[] = [];
  const walk = (v: unknown) => {
    if (!v) return;
    if (typeof v === 'string' || typeof v === 'number') out.push(String(v));
    else if (Array.isArray(v)) v.forEach(walk);
    else if (typeof v === 'object') for (const [k, on] of Object.entries(v as Record<string, unknown>)) if (on) out.push(k);
  };
  args.forEach(walk);
  return out.join(' ');
}

/** "a: b; --c: d" → style object */
function st(css: string | undefined): CSSProperties {
  const o: Record<string, string> = {};
  for (const decl of String(css ?? '').split(';')) {
    const i = decl.indexOf(':');
    if (i < 0) continue;
    const k = decl.slice(0, i).trim();
    if (k) o[k.startsWith('--') ? k : k.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = decl.slice(i + 1).trim();
  }
  return o as CSSProperties;
}

interface Skill { name: string; description: string }

/**
 * DevHero — Developer portfolio hero ("Keycap" design): an oversized title that retypes itself
 * (Software Developer → Frontend Engineer…), the name dropping in with floating blocks, a status
 * pill and an endless vertical tape of skill cards with tooltips. Optional 3D dot-matrix background
 * that breathes and parts around the cursor (needs the optional `three` peer dependency).
 *
 * @param {Array<{base: string, ext: string, role: string}>} titles - Rotating titles. The `ext` part is revealed on hover.
 * @param {string} name - Name under the title (split into words).
 * @param {string} tagline - Mono line under the name.
 * @param {string} status - Status pill text. Empty hides it.
 * @param {Array<{category: string, skills: Array<{name: string, description: string}>}>} skills - Skill groups for the tape.
 * @param {string} tapeLabel - Label above the tape. Default 'Stack & skills'.
 * @param {string} background - Background (dots|none). Default 'dots'.
 * @param {number} interval - Milliseconds between titles. Default 4500.
 * @param {string} className - Extra class.
 *
 * Accessibility: the h1 exposes the first title as its accessible name while the animation is
 * aria-hidden; skill pills are buttons whose tooltip also opens on focus and is linked with
 * aria-describedby; the tape pauses on hover/focus and with prefers-reduced-motion.
 */
export interface DevHeroProps {
  titles?: Array<{ base: string; ext: string; role: string }>;
  name?: string;
  tagline?: string;
  status?: string;
  skills?: Array<{ category: string; skills: Skill[] }>;
  tapeLabel?: string;
  background?: 'dots' | 'none';
  interval?: number;
  className?: string;
}

export function DevHero({
  titles = [{ base: 'Soft', ext: 'ware', role: 'Developer' }],
  name = 'Noa Lindqvist',
  tagline = 'Full Stack · Backend · Frontend · Creative 3D',
  status = 'Available for freelance',
  skills = [
    { category: 'Frontend', skills: [{ name: 'React', description: 'Component architecture, hooks and design systems.' }, { name: 'Next.js', description: 'App Router sites, server components and static export.' }, { name: 'Three.js', description: 'Interactive 3D scenes that stay smooth on phones.' }] },
    { category: 'Backend', skills: [{ name: 'Node.js', description: 'APIs, queues and real-time services.' }, { name: 'PostgreSQL', description: 'Schema design, indexes and query tuning.' }] },
    { category: 'Infra', skills: [{ name: 'Docker', description: 'Reproducible builds and compose stacks.' }, { name: 'Linux', description: 'Hardened VPS, Nginx and zero-downtime deploys.' }] },
  ],
  tapeLabel = 'Stack & skills',
  background = 'dots',
  interval = 4500,
  className = '',
}: DevHeroProps) {
  const first = titles[0];
  const words = name.split(/\s+/).filter(Boolean);
  const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
  const tipId = `dvhr-tip-${uid}`;

  const rootRef = useRef<HTMLElement>(null);
  const tipRef = useRef<HTMLDivElement>(null);
  // The tooltip is portalled to <body> so no transformed ancestor can clip or offset it.
  const [tipHost, setTipHost] = useState<HTMLElement | null>(null);
  // Touch screens cannot hover: reveal the title extension.
  const [revealed, setRevealed] = useState(false);
  useEffect(() => {
    setTipHost(document.body);
    setRevealed(window.matchMedia('(hover: none)').matches);
  }, []);

  // Breathing dot matrix: three.js is loaded on demand (optional peer dependency).
  useEffect(() => {
    if (background !== 'dots') return;
    const bg = rootRef.current?.querySelector<HTMLElement>('[data-dots]');
    if (!bg) return;
    let cancelled = false;
    let dispose: (() => void) | undefined;
    Promise.all([import('three'), import('../three/dot-matrix-scene')])
      .then(([THREE, { mountDotMatrix }]) => {
        if (!cancelled) dispose = mountDotMatrix(bg, THREE);
      })
      .catch((err) => console.warn('[DevHero] the dot matrix needs the optional `three` peer dependency.', err));
    return () => {
      cancelled = true;
      dispose?.();
    };
  }, [background]);

  // Rotating, retyped title
  const titlesKey = JSON.stringify(titles);
  useEffect(() => {
    const hero = rootRef.current;
    const list = JSON.parse(titlesKey) as Array<{ base: string; ext: string; role: string }>;
    if (!hero || list.length < 2 || window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
    const els = { base: hero.querySelector<HTMLElement>('[data-base]'), ext: hero.querySelector<HTMLElement>('[data-ext]'), role: hero.querySelector<HTMLElement>('[data-role]') };
    let alive = true;
    const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
    const retype = async (el: HTMLElement | null, text: string, speed = 50) => {
      if (!el) return;
      const old = el.textContent ?? '';
      for (let i = old.length; i >= 0 && alive; i--) {
        el.textContent = old.slice(0, i);
        await sleep(speed / 2);
      }
      for (let i = 1; i <= text.length && alive; i++) {
        el.textContent = text.slice(0, i);
        await sleep(speed);
      }
    };
    let idx = 0;
    const timer = window.setInterval(() => {
      if (document.hidden) return;
      idx = (idx + 1) % list.length;
      const t = list[idx];
      retype(els.base, t.base);
      retype(els.ext, t.ext);
      retype(els.role, t.role);
    }, interval || 4500);
    return () => {
      alive = false;
      window.clearInterval(timer);
    };
  }, [titlesKey, interval]);

  // Skill tooltips (pointer and keyboard)
  useEffect(() => {
    const hero = rootRef.current;
    const tip = tipRef.current;
    if (!hero || !tip) return;
    const ac = new AbortController();
    const opts = { signal: ac.signal };
    const fill = (pill: HTMLElement) => {
      tip.querySelector('[data-tip-cat]')!.textContent = pill.dataset.cat ?? '';
      tip.querySelector('[data-tip-name]')!.textContent = pill.dataset.name ?? '';
      tip.querySelector('[data-tip-desc]')!.textContent = pill.dataset.desc ?? '';
    };
    const place = (x: number, y: number) => {
      const r = tip.getBoundingClientRect();
      let px = x + 16;
      let py = y + 16;
      if (px + r.width > window.innerWidth - 12) px = x - r.width - 14;
      if (py + r.height > window.innerHeight - 12) py = y - r.height - 14;
      tip.style.transform = `translate3d(${Math.max(12, Math.round(px))}px, ${Math.max(12, Math.round(py))}px, 0)`;
    };
    const show = () => tip.classList.add('is-visible');
    const hide = () => tip.classList.remove('is-visible');
    hero.addEventListener('pointerover', (e) => {
      const pill = (e.target as HTMLElement).closest<HTMLElement>('.dvhr__pill');
      if (!pill) return;
      fill(pill);
      place(e.clientX, e.clientY);
      show();
    }, opts);
    hero.addEventListener('pointermove', (e) => {
      if ((e.target as HTMLElement).closest('.dvhr__pill')) place(e.clientX, e.clientY);
      else hide();
    }, opts);
    hero.addEventListener('pointerleave', hide, opts);
    hero.addEventListener('focusin', (e) => {
      const pill = (e.target as HTMLElement).closest<HTMLElement>('.dvhr__pill');
      if (!pill) return;
      fill(pill);
      const r = pill.getBoundingClientRect();
      place(r.left, r.bottom);
      show();
    }, opts);
    hero.addEventListener('focusout', hide, opts);
    document.addEventListener('keydown', (e) => e.key === 'Escape' && hide(), opts);
    return () => ac.abort();
  }, [tipHost]);
  return (
    <>
      <section ref={rootRef} className={cx(['dvhr', { 'is-revealed': revealed }, className])} data-dev-hero data-titles={JSON.stringify(titles)} data-interval={interval} data-rk-1ae39f="">
        {background === 'dots' && <div className="dvhr__bg" data-dots aria-hidden="true" data-rk-1ae39f=""></div>}
      
        <div className="dvhr__wrap" data-rk-1ae39f="">
          <div className="dvhr__main" data-rk-1ae39f="">
            <h1 className="dvhr__title" aria-label={`${first.base}${first.ext} ${first.role}${name ? ` — ${name}` : ''}`} data-rk-1ae39f="">
              <span className="dvhr__line dvhr__line--1" aria-hidden="true" data-rk-1ae39f=""><span data-base data-rk-1ae39f="">{first.base}</span><span className="dvhr__ext" data-ext data-rk-1ae39f="">{first.ext}</span></span>
              <span className="dvhr__line dvhr__line--2" aria-hidden="true" data-role data-rk-1ae39f="">{first.role}</span>
            </h1>
      
            {words.length > 0 && (
              <p className="dvhr__name" aria-hidden="true" data-rk-1ae39f="">
                <span className="dvhr__block dvhr__block--1" data-rk-1ae39f=""></span>
                <span className="dvhr__block dvhr__block--2" data-rk-1ae39f=""></span>
                {words.map((w, i) => <span key={i} className="dvhr__word" style={st(`animation-delay:${0.3 + i * 0.15}s`)} data-rk-1ae39f="">{w}</span>)}
              </p>
            )}
      
            {tagline && <p className="dvhr__tagline" data-rk-1ae39f="">{tagline}</p>}
      
            {status && (
              <p className="dvhr__status" data-rk-1ae39f=""><span className="dvhr__dot" aria-hidden="true" data-rk-1ae39f=""></span>{status}</p>
            )}
          </div>
      
          {skills.length > 0 && (
            <div className="dvhr__tape" data-rk-1ae39f="">
              <p className="dvhr__tape-label" data-rk-1ae39f="">{tapeLabel}</p>
              <div className="dvhr__viewport" data-viewport data-rk-1ae39f="">
                <div className="dvhr__track" data-rk-1ae39f="">
                  {[0, 1].map((copy, __i: number) => (
                    <div key={__i} className="dvhr__set" aria-hidden={copy === 1 ? 'true' : undefined} data-rk-1ae39f="">
                      {skills.map((group, i) => (
                        <div key={i} className="dvhr__card" data-rk-1ae39f="">
                          <div className="dvhr__card-head" data-rk-1ae39f="">
                            <h2 className="dvhr__card-title" data-rk-1ae39f="">{group.category}</h2>
                            <span className="dvhr__card-num" data-rk-1ae39f="">{String(i + 1).padStart(2, '0')}</span>
                          </div>
                          <ul className="dvhr__pills" data-rk-1ae39f="">
                            {group.skills.map((s, __i: number) => (
                              <li key={__i} data-rk-1ae39f="">
                                <button type="button" className="dvhr__pill" tabIndex={copy === 1 ? -1 : undefined} data-name={s.name} data-cat={group.category} data-desc={s.description} aria-describedby={copy === 0 ? tipId : undefined} data-rk-1ae39f="">
                                  <span className="dvhr__pill-mark" aria-hidden="true" data-rk-1ae39f=""></span>{s.name}
                                </button>
                              </li>
                            ))}
                          </ul>
                        </div>
                      ))}
                    </div>
                  ))}
                </div>
              </div>
            </div>
          )}
        </div>
      
        {tipHost && createPortal(
          <div ref={tipRef} className="dvhr__tip" id={tipId} role="tooltip" data-tip data-rk-1ae39f="">
            <span className="dvhr__tip-head" data-rk-1ae39f=""><span className="dvhr__tip-cat" data-tip-cat data-rk-1ae39f=""></span><strong data-tip-name data-rk-1ae39f=""></strong></span>
            <span className="dvhr__tip-desc" data-tip-desc data-rk-1ae39f=""></span>
          </div>,
          tipHost,
        )}
      </section>
    </>
  );
}

export default DevHero;
DevHero.css
.dvhr:where([data-rk-1ae39f]) {
  --dvhr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --kc-ink: var(--c-text-1);
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 12vw, 8rem) 0 3rem;
  overflow: hidden;
  color: var(--c-text-1);
}
.dvhr__bg:where([data-rk-1ae39f]) { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dvhr__wrap:where([data-rk-1ae39f]) {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.dvhr__main:where([data-rk-1ae39f]) { display: flex; flex-direction: column; align-items: flex-start; }
.dvhr__title:where([data-rk-1ae39f]) { display: flex; flex-direction: column; margin: 0; font-weight: 700; }
.dvhr__line:where([data-rk-1ae39f]) {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(40px);
  animation: dev-hero-dvhr-reveal 0.8s var(--dvhr-ease) forwards;
}
.dvhr__line--1:where([data-rk-1ae39f]) { animation-delay: 0.1s; cursor: default; }
.dvhr__line--2:where([data-rk-1ae39f]) { animation-delay: 0.25s; min-height: 0.9em; }
.dvhr__ext:where([data-rk-1ae39f]) {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: pre;
  vertical-align: top;
  opacity: 0;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.dvhr__line--1:hover:where([data-rk-1ae39f]) .dvhr__ext:where([data-rk-1ae39f]),
.dvhr.is-revealed:where([data-rk-1ae39f]) .dvhr__ext:where([data-rk-1ae39f]) { max-width: 8ch; opacity: 1; }

.dvhr__name:where([data-rk-1ae39f]) {
  position: relative;
  display: inline-flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.dvhr__word:where([data-rk-1ae39f]) { display: inline-block; opacity: 0; animation: dev-hero-dvhr-drop 1.2s cubic-bezier(0.68, -0.6, 0.32, 1.6) forwards; }
.dvhr__block:where([data-rk-1ae39f]) { position: absolute; width: 8px; height: 8px; border-radius: 2px; z-index: -1; opacity: 0; }
.dvhr__block--1:where([data-rk-1ae39f]) { top: -5px; left: 20%; background: var(--c-text-1); animation: dev-hero-dvhr-in 0.5s ease 0.8s forwards, dev-hero-dvhr-b1 5s ease-in-out 1.3s infinite alternate; }
.dvhr__block--2:where([data-rk-1ae39f]) { bottom: -2px; right: 25%; border: 1px solid var(--c-text-3); animation: dev-hero-dvhr-in 0.5s ease 1s forwards, dev-hero-dvhr-b2 6s ease-in-out 1.5s infinite alternate; }

.dvhr__tagline:where([data-rk-1ae39f]) {
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-3);
  opacity: 0;
  transform: translateY(20px);
  animation: dev-hero-dvhr-reveal 0.6s var(--dvhr-ease) 0.65s forwards;
}
.dvhr__status:where([data-rk-1ae39f]) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgb(var(--ink-rgb, 0 0 0) / 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-2);
  opacity: 0;
  transform: translateY(16px);
  animation: dev-hero-dvhr-reveal 0.6s var(--dvhr-ease) 0.6s forwards;
}
.dvhr__dot:where([data-rk-1ae39f]) { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success, #10b981); box-shadow: 0 0 8px var(--c-success, #10b981); }

.dvhr__tape:where([data-rk-1ae39f]) { display: flex; flex-direction: column; gap: 0.6rem; opacity: 0; transform: translateY(30px); animation: dev-hero-dvhr-reveal 0.8s var(--dvhr-ease) 0.35s forwards; }
.dvhr__tape-label:where([data-rk-1ae39f]) { margin: 0; padding: 0 0.35rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3); }
.dvhr__viewport:where([data-rk-1ae39f]) {
  height: 380px;
  overflow: hidden;
  border-radius: 20px;
  padding: 0.25rem;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.dvhr__track:where([data-rk-1ae39f]) { display: flex; flex-direction: column; animation: dev-hero-dvhr-tape 28s linear infinite; will-change: transform; }
.dvhr__viewport:hover:where([data-rk-1ae39f]) .dvhr__track:where([data-rk-1ae39f]),
.dvhr__viewport:focus-within:where([data-rk-1ae39f]) .dvhr__track:where([data-rk-1ae39f]) { animation-play-state: paused; }
.dvhr__set:where([data-rk-1ae39f]) { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; }
.dvhr__card:where([data-rk-1ae39f]) {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  border-radius: 16px;
  background: rgb(var(--paper-rgb, 255 255 255) / 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 8px 24px -4px rgb(var(--ink-rgb, 0 0 0) / 0.05), 0 0 0 1px rgb(var(--ink-rgb, 0 0 0) / 0.06);
  transition: transform 0.25s var(--dvhr-ease), box-shadow 0.25s var(--dvhr-ease);
}
.dvhr__card:hover:where([data-rk-1ae39f]) { transform: translateY(-2px); box-shadow: 0 12px 30px -4px rgb(var(--ink-rgb, 0 0 0) / 0.1), 0 0 0 1px rgb(var(--ink-rgb, 0 0 0) / 0.12); }
.dvhr__card-head:where([data-rk-1ae39f]) { display: flex; align-items: center; justify-content: space-between; }
.dvhr__card-title:where([data-rk-1ae39f]) { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-1); }
.dvhr__card-num:where([data-rk-1ae39f]) { font-family: var(--font-mono); font-size: 0.7rem; color: var(--c-text-3); }
.dvhr__pills:where([data-rk-1ae39f]) { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.dvhr__pill:where([data-rk-1ae39f]) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgb(var(--ink-rgb, 0 0 0) / 0.08);
  background: rgb(var(--paper-rgb, 255 255 255) / 0.65);
  color: var(--c-text-1);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: help;
  transition: transform 0.2s var(--dvhr-ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.dvhr__pill:hover:where([data-rk-1ae39f]),
.dvhr__pill:focus-visible:where([data-rk-1ae39f]) { border-color: var(--c-text-1); transform: translateY(-1.5px); box-shadow: 0 4px 10px rgb(var(--ink-rgb, 0 0 0) / 0.08); outline: none; }
.dvhr__pill-mark:where([data-rk-1ae39f]) { width: 6px; height: 6px; border-radius: 1.5px; border: 1.5px solid currentColor; opacity: 0.55; }

.dvhr__tip:where([data-rk-1ae39f]) {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  max-width: 280px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgb(15 17 21 / 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 16px 36px -4px rgb(0 0 0 / 0.4);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.dvhr__tip.is-visible:where([data-rk-1ae39f]) { opacity: 1; visibility: visible; }
.dvhr__tip-head:where([data-rk-1ae39f]) { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; padding-bottom: 0.35rem; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.dvhr__tip-cat:where([data-rk-1ae39f]) { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.6); }
.dvhr__tip-head:where([data-rk-1ae39f]) strong:where([data-rk-1ae39f]) { font-size: 0.85rem; }
.dvhr__tip-desc:where([data-rk-1ae39f]) { display: block; font-size: 0.78rem; line-height: 1.45; color: rgb(255 255 255 / 0.88); }

@keyframes dev-hero-dvhr-reveal { to { opacity: 1; transform: none; } }
@keyframes dev-hero-dvhr-in { to { opacity: 0.4; } }
@keyframes dev-hero-dvhr-tape { to { transform: translateY(-50%); } }
@keyframes dev-hero-dvhr-drop {
  0% { opacity: 0; transform: translateY(-30px) scale(0.9); }
  40% { opacity: 1; transform: translateY(8px) scale(1.05); }
  65% { transform: translateY(-4px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes dev-hero-dvhr-b1 {
  33% { transform: translate(15px, 12px) rotate(45deg) scale(0.8); }
  66% { transform: translate(-8px, 6px) rotate(120deg) scale(1.2); }
  100% { transform: translate(-12px, -4px) rotate(180deg) scale(0.9); }
}
@keyframes dev-hero-dvhr-b2 {
  33% { transform: translate(-18px, -10px) rotate(-60deg) scale(1.1); }
  66% { transform: translate(10px, -5px) rotate(-110deg) scale(0.8); }
  100% { transform: translate(15px, 8px) rotate(-180deg) scale(1.2); }
}

@media (max-width: 900px) {
  .dvhr__wrap:where([data-rk-1ae39f]) { grid-template-columns: 1fr; gap: 2.5rem; }
  .dvhr__tape:where([data-rk-1ae39f]) { max-width: 480px; width: 100%; }
  .dvhr__viewport:where([data-rk-1ae39f]) { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .dvhr__line:where([data-rk-1ae39f]), .dvhr__word:where([data-rk-1ae39f]), .dvhr__tagline:where([data-rk-1ae39f]), .dvhr__status:where([data-rk-1ae39f]), .dvhr__tape:where([data-rk-1ae39f]) { animation: none; opacity: 1; transform: none; }
  .dvhr__block:where([data-rk-1ae39f]) { animation: none; opacity: 0.4; }
  .dvhr__track:where([data-rk-1ae39f]) { animation: none; }
  .dvhr__viewport:where([data-rk-1ae39f]) { overflow-y: auto; }
  .dvhr__set[aria-hidden]:where([data-rk-1ae39f]) { display: none; }
}