/**
 * ============================================
 * BASE CSS - 株式会社オテアゲ
 * Swiss Modern Style - Reset & Foundation
 * ============================================
 */

/* ============================================
   1. CSS RESET (Modern Reset)
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "palt";
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  padding-top: 80px;
  overflow-x: hidden;
}

/* ============================================
   INTERACTIVE BACKGROUND
   ============================================ */

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.9;
}

/* Gradient Background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    var(--color-bg);
  background-size: 200% 200%;
  transition: background-position 0.3s ease-out;
}

/* WordPress Admin Bar */
body.admin-bar {
  padding-top: 112px;
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    padding-top: 126px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ============================================
   2. BASE ELEMENTS
   ============================================ */

/* Images & Media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base),
              opacity var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-hero);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
}

h3 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
}

h4 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: var(--font-semibold);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* Links in content */
.content a,
article a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover,
article a:hover {
  color: var(--color-accent-hover);
}

/* Code */
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--color-bg-alt);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-4);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ============================================
   4. SELECTION
   ============================================ */

::selection {
  background-color: var(--color-accent-light);
  color: var(--color-text);
}

/* ============================================
   5. FOCUS STYLES
   ============================================ */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   6. SCROLLBAR (WebKit)
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ============================================
   7. MAIN LAYOUT
   ============================================ */

.main,
main.main,
main {
  min-height: calc(100vh - 80px);
  padding-top: 0;
  margin-top: 0;
}

/* ============================================
   8. LABEL STYLES (Swiss Modern)
   ============================================ */

.label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.label--muted {
  background: none;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

/* ============================================
   9. SECTION TITLES (Swiss Style)
   ============================================ */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   10. RESPONSIVE BASE
   ============================================ */

@media (max-width: 1024px) {
  body {
    padding-top: 72px;
  }

  body.admin-bar {
    padding-top: 104px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  body.admin-bar {
    padding-top: 110px;
  }

  .main,
  main.main,
  main {
    min-height: calc(100vh - 64px);
  }
}

/* ============================================
   11. PRINT STYLES
   ============================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .site-header,
  .footer,
  .no-print {
    display: none !important;
  }
}

/* ============================================
   12. ACCESSIBILITY
   ============================================ */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-max);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
    --color-text-muted: #333;
  }
}

/* ============================================
   13. ADVANCED ANIMATIONS
   ============================================ */

/* Page Loading State */
body.is-loading {
  overflow: hidden;
}

body.is-loading::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.is-loaded::before {
  opacity: 0;
  pointer-events: none;
}

/* Page Leaving State */
body.is-leaving {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.is-hovering {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  opacity: 0.3;
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.custom-cursor-dot.is-hovering {
  transform: translate(-50%, -50%) scale(0);
}

.custom-cursor-dot.is-hidden {
  opacity: 0;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* ============================================
   14. SCROLL ANIMATIONS BASE
   ============================================ */

/* Default animation state */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation variants */
[data-animate="fade"] {
  transform: none;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate="scale-up"] {
  transform: scale(0.9) translateY(20px);
}

[data-animate].is-visible[data-animate="fade"],
[data-animate].is-visible[data-animate="fade-up"],
[data-animate].is-visible[data-animate="fade-down"],
[data-animate].is-visible[data-animate="fade-left"],
[data-animate].is-visible[data-animate="fade-right"],
[data-animate].is-visible[data-animate="scale"],
[data-animate].is-visible[data-animate="scale-up"] {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children animation */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-stagger] > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   15. GLOW EFFECT
   ============================================ */

[data-glow] {
  position: relative;
  overflow: hidden;
}

[data-glow]::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

[data-glow]:hover::before {
  opacity: 0.5;
}

/* ============================================
   16. TILT EFFECT
   ============================================ */

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* ============================================
   17. MARQUEE
   ============================================ */

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--space-8);
}

.marquee__content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-8);
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marquee:hover .marquee__content {
  animation-play-state: paused;
}

.marquee__text {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.marquee__separator {
  font-size: var(--text-lg);
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   18. HOVER EFFECTS
   ============================================ */

/* Lift effect - components.cssで定義 */

/* Scale effect */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Shine effect */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.hover-shine:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Border glow effect - bento-cardとの組み合わせはcomponents.cssで定義 */
.hover-glow:not(.bento-card) {
  transition: box-shadow 0.3s ease;
}

.hover-glow:not(.bento-card):hover {
  box-shadow: 0 0 20px var(--color-accent-light),
              0 0 40px rgba(96, 165, 250, 0.2);
}

/* Text underline effect */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   19. TEXT ANIMATIONS
   ============================================ */

/* Split text characters */
[data-split-text] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--char-index) * 0.03s);
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Split text words */
[data-split-text="words"] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--word-index) * 0.1s);
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero text animation */
.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: lineReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title .line:nth-child(2) span {
  animation-delay: 0.15s;
}

@keyframes lineReveal {
  to {
    transform: translateY(0);
  }
}

/* Typewriter cursor */
[data-typewriter]::after {
  content: '|';
  animation: blink 0.7s infinite;
}

[data-typewriter].typed-complete::after {
  display: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   20. GRADIENT ANIMATIONS
   ============================================ */

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   21. FLOATING ANIMATION
   ============================================ */

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.float-slow {
  animation: float 8s ease-in-out infinite;
}

.float-fast {
  animation: float 4s ease-in-out infinite;
}

/* ============================================
   22. PULSE ANIMATION
   ============================================ */

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ============================================
   23. SKELETON LOADING
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt) 25%,
    var(--color-bg) 50%,
    var(--color-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   24. ENTRANCE ANIMATIONS (Keyframes)
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Animation utility classes */
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ============================================
   25. PAGE TRANSITION
   ============================================ */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  display: flex;
}

.page-transition__panel {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  transform: scaleY(0);
  transform-origin: bottom;
}

.page-transition.is-entering .page-transition__panel {
  animation: panelIn 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition.is-leaving .page-transition__panel {
  transform: scaleY(1);
  transform-origin: top;
  animation: panelOut 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition__panel:nth-child(1) { animation-delay: 0s; }
.page-transition__panel:nth-child(2) { animation-delay: 0.05s; }
.page-transition__panel:nth-child(3) { animation-delay: 0.1s; }
.page-transition__panel:nth-child(4) { animation-delay: 0.15s; }
.page-transition__panel:nth-child(5) { animation-delay: 0.2s; }

@keyframes panelIn {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

@keyframes panelOut {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ============================================
   26. LOADING SCREEN
   ============================================ */

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-6);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader__text {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   27. CUSTOM CURSOR
   ============================================ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor.is-hovering {
  width: 60px;
  height: 60px;
  background: rgba(96, 165, 250, 0.2);
  mix-blend-mode: normal;
}

.cursor-follower.is-hovering {
  width: 80px;
  height: 80px;
  border-color: var(--color-accent);
}

.cursor.is-clicking {
  transform: translate(-50%, -50%) scale(0.8);
}

.cursor.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }

  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor select {
    cursor: none;
  }
}

/* Hide custom cursor on touch devices */
@media (hover: none) or (pointer: coarse) {
  .cursor,
  .cursor-follower {
    display: none;
  }
}

/* ============================================
   28. MICRO INTERACTIONS
   ============================================ */

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Input focus glow */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2),
              0 0 20px rgba(96, 165, 250, 0.1);
}

/* Checkbox/Radio custom animation */
.form-checkbox:checked,
.form-radio:checked {
  animation: checkPop 0.3s ease;
}

@keyframes checkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Link hover magnetic effect */
.magnetic-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Success/Error state animations */
.form-input.is-valid {
  border-color: #22c55e;
  animation: validPulse 0.3s ease;
}

.form-input.is-invalid {
  border-color: #ef4444;
  animation: shake 0.4s ease;
}

@keyframes validPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Card hover 3D tilt (subtle) */
.card-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Stagger animation for lists */
.stagger-list > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-list.is-visible > * {
  animation: staggerIn 0.5s ease forwards;
}

.stagger-list > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-list > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-list > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-list > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-list > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-list > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-list > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-list > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-list > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-list > *:nth-child(10) { animation-delay: 0.5s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal enhancements */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate="zoom-out"] { transform: scale(1.1); }

[data-animate="fade-up"].is-visible,
[data-animate="fade-down"].is-visible,
[data-animate="fade-left"].is-visible,
[data-animate="fade-right"].is-visible {
  transform: translate(0);
}

[data-animate="zoom-in"].is-visible,
[data-animate="zoom-out"].is-visible {
  transform: scale(1);
}

/* Parallax scrolling */
.parallax {
  will-change: transform;
}

/* Number counter animation */
.counter {
  display: inline-block;
}

.counter.is-counting {
  animation: counterPop 0.1s ease;
}

@keyframes counterPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
