/* ============================================================
   main.css
   Hack Luck Love - コーポレートサイト
   ============================================================
   構成:
   1. デザイントークン（CSS変数）
   2. リセット / ベーススタイル
   3. レイアウト（ナビ・ヒーロー・セクション・フッター）
   4. コンポーネント（カード・バッジ・モーダル・ボタン等）
   5. ユーティリティ（フェードイン・フロート等）
   6. レスポンシブ（734px / 480px）
   7. アニメーション（@keyframes）
   ============================================================ */

/* ==========================================================
   1. デザイントークン
   ========================================================== */
:root {
  /* --- アクセントカラー --- */
  --accent: #E8976D;
  --accent-rgb: 232, 151, 109;
  --accent-hover: #EDA580;

  /* --- フォント --- */
  --font-family-base: 'Inter', 'Noto Sans JP', system-ui, sans-serif;

  /* --- フォントサイズスケール（8段階） --- */
  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.75rem;      /* 12px */
  --text-base: 0.875rem;   /* 14px */
  --text-lg: 1rem;         /* 16px */
  --text-xl: 1.125rem;     /* 18px */
  --text-2xl: 1.375rem;    /* 22px */
  --text-3xl: 1.5rem;      /* 24px */
  --text-display: 2.25rem; /* 36px */

  /* --- スペーシングスケール --- */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 140px;

  /* --- border-radius スケール --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* --- ボーダー幅 --- */
  --border-width-base: 1px;
  --border-width-strong: 1.5px;
  --border-width-hairline: 0.5px;

  /* --- イージング --- */
  --ease: 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-interactive: 0.24s cubic-bezier(0.22, 1, 0.36, 1);

  /* --- インタラクション変位（統一） --- */
  --lift-x: -3px;
  --lift-y: -3px;
  --lift-icon-scale: 1.08;

  /* --- ライトモード カラー --- */
  --bg: #FFFFFF;
  --bg-sub: #F5F5F7;
  --text: #1D1D1F;
  --text-sub: #86868B;
  --border: #D2D2D7;
  --surface: #F5F5F7;

  /* --- ライトモード セマンティックカラー --- */
  --apps-panel-bg: #F8FAFD;
  --apps-panel-bg-2: #EEF1F7;
  --icon-bg: #FAF0E8;
  --nav-bg: rgba(250, 252, 255, 0.82);
  --logo-fill: #E8976D;
  --card-shadow: rgba(0, 0, 0, 0.04);
  --card-shadow-hover: rgba(0, 0, 0, 0.08);
  --icon-color: #E8976D;
  --overlay-bg: rgba(29, 29, 31, 0.40);
  --modal-shadow: rgba(0, 0, 0, 0.10);
  --icon-shadow: rgba(0, 0, 0, 0.04);
  --btn-bg: #E8976D;
  --btn-text: #FFFFFF;
  --btn-hover-bg: #EDA580;
  --badge-bg: #E8976D;
  --badge-text: #FFFFFF;
  --badge-coming-bg: var(--border);
  --badge-coming-text: var(--text-sub);
  --inverse-text: #FFFFFF;
  --accent-soft-bg: rgba(var(--accent-rgb), 0.1);
  --interactive-soft-bg: rgba(var(--accent-rgb), 0.1);
  --cta-primary-bg: #E8976D;
  --cta-primary-text: #FFFFFF;
  --cta-secondary-text: #E8976D;
  --cta-secondary-border: var(--border);
  --cta-secondary-hover-bg: var(--bg-sub);
  --feat-bg: var(--bg-sub);
  --scrollbar-thumb: var(--border);
  --scrollbar-thumb-hover: var(--accent);
  --scrollbar-track: var(--bg);

  /* --- ヒーロー KV --- */
  --hero-kv-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 244, 237, 0.92) 52%, rgba(248, 234, 224, 0.86) 100%);
  --hero-kv-border: rgba(255, 255, 255, 0.7);
  --hero-kv-glow: rgba(var(--accent-rgb), 0.34);
  --hero-kv-vignette: rgba(255, 255, 255, 0.74);
  --hero-accent-border: rgba(var(--accent-rgb), 0.34);
  --hero-accent-border-soft: rgba(var(--accent-rgb), 0.2);

  /* --- キャンバス背景 --- */
  --bg-canvas: radial-gradient(120% 130% at 10% 0%, #FFFFFF 0%, #F5F5F7 54%, #ECF0F7 100%);

  /* --- セクションパネル --- */
  --section-outer-padding: var(--space-xl) clamp(var(--space-sm), 2vw, var(--space-lg));
  --section-panel-radius: var(--space-2xl);
  --section-panel-border: rgba(255, 255, 255, 0.78);
  --section-panel-shadow: 0 18px 50px rgba(36, 48, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --section-panel-gradient-app: linear-gradient(180deg, var(--apps-panel-bg) 0%, var(--apps-panel-bg-2) 100%);

  /* --- タイル --- */
  --tile-border: rgba(218, 225, 238, 0.92);
  --tile-shadow: 0 10px 28px rgba(28, 40, 62, 0.08), 0 2px 6px rgba(28, 40, 62, 0.05);
  --tile-shadow-hover: 0 26px 60px rgba(255, 138, 80, 0.2), 0 12px 26px rgba(28, 40, 62, 0.12);

  /* --- カード --- */
  --card-bg: rgba(255, 255, 255, 0.92);
  /* --- ダイアログ --- */
  --dialog-shadow: 0 34px 90px rgba(21, 31, 49, 0.26);
  --modal-max-width: 480px;
  --privacy-modal-max-width: 640px;
  --modal-padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  --card-padding: var(--space-xl) var(--space-lg) var(--space-lg);

  /* --- ワードマークフォントサイズ --- */
  --font-size-wordmark: 135px;

  /* --- シートトップ角丸（モバイルボトムシート用） --- */
  --radius-sheet-top: 20px 20px 0 0;

  /* --- コンポーネントサイズ --- */
  --icon-size-sm: 20px;
  --icon-size-md: 24px;
  --icon-size-lg: 28px;
  --icon-size-xl: 40px;
  --icon-size-2xl: 48px;
  --icon-size-3xl: 64px;
  --icon-size-4xl: 88px;

  /* --- セクションパネル内側余白 --- */
  --section-panel-padding: var(--space-4xl) clamp(var(--space-md), 6vw, var(--space-3xl));
}

/* ==========================================================
   ダークモード
   ========================================================== */
[data-theme="dark"] {
  --bg: #2A2522;
  --bg-sub: #36302D;
  --text: #F5F0ED;
  --text-sub: #A8A29E;
  --border: #453E3A;
  --surface: #36302D;

  --apps-panel-bg: #403935;
  --apps-panel-bg-2: #37312E;
  --icon-bg: #4A3B35;
  --nav-bg: rgba(30, 26, 24, 0.84);
  --logo-fill: #E8976D;
  --card-shadow: rgba(0, 0, 0, 0.40);
  --card-shadow-hover: rgba(0, 0, 0, 0.60);
  --icon-color: #E8976D;
  --overlay-bg: rgba(10, 5, 2, 0.70);
  --modal-shadow: rgba(0, 0, 0, 0.40);
  --icon-shadow: rgba(0, 0, 0, 0.20);
  --btn-bg: var(--accent);
  --btn-text: #2A2522;
  --btn-hover-bg: var(--accent-hover);
  --badge-bg: var(--accent);
  --badge-text: #FFFFFF;
  --badge-coming-bg: var(--border);
  --badge-coming-text: var(--text-sub);
  --interactive-soft-bg: rgba(255, 255, 255, 0.08);
  --cta-primary-bg: var(--accent);
  --cta-primary-text: #2A2522;
  --cta-secondary-text: var(--accent);
  --cta-secondary-border: var(--border);
  --cta-secondary-hover-bg: var(--surface);
  --feat-bg: var(--bg-sub);
  --scrollbar-thumb: var(--icon-bg);
  --scrollbar-thumb-hover: var(--accent);
  --scrollbar-track: var(--bg);

  --hero-kv-bg: linear-gradient(140deg, rgba(45, 39, 35, 0.88) 0%, rgba(62, 50, 45, 0.84) 56%, rgba(50, 40, 36, 0.88) 100%);
  --hero-kv-border: rgba(255, 255, 255, 0.09);
  --hero-kv-glow: rgba(var(--accent-rgb), 0.2);
  --hero-kv-vignette: rgba(18, 13, 11, 0.38);
  --hero-accent-border: rgba(var(--accent-rgb), 0.34);
  --hero-accent-border-soft: rgba(var(--accent-rgb), 0.2);
  --bg-canvas: radial-gradient(120% 130% at 10% 0%, #3A342F 0%, #2A2522 52%, #221E1B 100%);
  --section-panel-border: rgba(255, 255, 255, 0.07);
  --section-panel-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --tile-border: rgba(255, 255, 255, 0.1);
  --tile-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  --tile-shadow-hover: 0 30px 70px rgba(255, 138, 80, 0.2), 0 20px 36px rgba(0, 0, 0, 0.5);
  --dialog-shadow: 0 40px 110px rgba(0, 0, 0, 0.58);
}

/* ==========================================================
   2. リセット / ベーススタイル
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* --- スクロールバー --- */
::-webkit-scrollbar {
  width: var(--space-xs);
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border-radius: var(--radius-xs);
}

body {
  font-family: var(--font-family-base);
  letter-spacing: 0.02em;
  background: var(--bg-canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

/* --- テーマ切り替えトランジション --- */
body,
nav,
.card,
.modal,
.value-item,
.skill-icon,
.btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Lenis スムーズスクロール --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* --- スクロールパフォーマンス最適化 --- */
body.is-scroll-perf .hero-kv {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ==========================================================
   3. レイアウト
   ========================================================== */

/* --- ナビゲーション --- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  box-shadow: none;
}

#site-nav.nav-hidden {
  transform: translateY(-100%);
}

[data-theme="dark"] #site-nav {
  background: transparent;
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 var(--space-xl);
  position: relative;
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links {
  display: flex;
  gap: var(--space-sm);
}

.nav-links a {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border-radius: var(--radius-full);
  transition: background var(--ease), color var(--ease);
}

.nav-links a:hover {
  background: var(--accent-soft-bg);
  color: var(--accent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-3xl);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

/* --- ナビ右側ソーシャル・テーマトグル --- */
.nav-right .social-icon-box {
  width: var(--space-2xl);
  height: var(--space-2xl);
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.nav-right .social-icon-box.is-hover:not(.theme-toggle) {
  background: var(--accent-soft-bg);
  color: var(--accent);
}

/* テーマ切り替え時の色なめらか遷移 */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, fill 0.2s ease, stroke 0.2s ease,
              opacity 0.2s ease, transform 0.2s ease !important;
}

.theme-toggle {
  outline: none;
  position: relative;
}

.theme-toggle.is-hover,
.theme-toggle:active {
  color: var(--accent);
}

.theme-toggle svg {
  width: 28px;
  height: 28px;
}

/* --- 言語トグル --- */
.lang-toggle {
  width: 60px;
  height: 60px;
  background: transparent;
  color: var(--text-sub);
  font-size: var(--text-xl);
  font-weight: 600;
  border: var(--border-width-base) solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  letter-spacing: 0.02em;
  padding: 0;
}

.lang-toggle:hover {
  background: var(--accent);
  color: var(--inverse-text);
  transform: translate(var(--lift-x), var(--lift-y));
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.2);
}

/* --- テーマアイコン表示制御 --- */
.theme-icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-brand {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-dark {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-brand {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* --- ヒーローセクション --- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(var(--space-sm), 2vw, var(--space-lg)) clamp(var(--space-sm), 2vw, var(--space-lg));
  padding-top: 88px;
  position: relative;
  z-index: 10;
}

.hero-kv {
  position: relative;
  width: 100%;
  height: calc(100svh - 88px - clamp(var(--space-sm), 2vw, var(--space-lg)));
  background: var(--hero-kv-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 var(--space-lg) 120px rgba(0, 0, 0, 0.12);
  border-radius: var(--space-2xl);
}

.hero-kv::before,
.hero-kv::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.hero-kv::before {
  background:
    radial-gradient(120% 95% at 16% 22%, rgba(var(--accent-rgb), 0.48) 0%, rgba(var(--accent-rgb), 0.06) 58%, rgba(var(--accent-rgb), 0) 82%),
    radial-gradient(116% 92% at 84% 18%, rgba(var(--accent-rgb), 0.42) 0%, rgba(var(--accent-rgb), 0.08) 62%, rgba(var(--accent-rgb), 0) 86%),
    radial-gradient(110% 90% at 54% 74%, rgba(var(--accent-rgb), 0.32) 0%, rgba(var(--accent-rgb), 0.06) 60%, rgba(var(--accent-rgb), 0) 86%),
    radial-gradient(100% 88% at 34% 86%, rgba(var(--accent-rgb), 0.32) 0%, rgba(var(--accent-rgb), 0.06) 62%, rgba(var(--accent-rgb), 0) 88%),
    conic-gradient(from 210deg at 52% 48%,
      rgba(var(--accent-rgb), 0.18) 0deg,
      rgba(var(--accent-rgb), 0.14) 95deg,
      rgba(var(--accent-rgb), 0.16) 190deg,
      rgba(var(--accent-rgb), 0.18) 285deg,
      rgba(var(--accent-rgb), 0.14) 360deg);
  mix-blend-mode: screen;
  filter: blur(14px);
  opacity: 0.76;
  transform-origin: 50% 50%;
  animation: psychoHue 18s linear infinite, morphFlow 26s cubic-bezier(0.55, 0.08, 0.35, 0.95) infinite;
}

.hero-kv::after {
  background:
    radial-gradient(130% 100% at 50% 100%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 62%),
    radial-gradient(80% 72% at 50% 44%, rgba(0, 0, 0, 0) 24%, var(--hero-kv-vignette) 100%);
  animation: veilShift 18s ease-in-out infinite;
  filter: blur(8px);
}

/* Three.js キャンバスコンテナ */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-visual-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 24vw, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.04) 54%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(circle at 70% 65%, rgba(var(--accent-rgb), 0.34) 0%, rgba(var(--accent-rgb), 0) 64%),
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.26) 0%, rgba(var(--accent-rgb), 0) 72%);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.14), 0 28px 110px rgba(var(--accent-rgb), 0.3);
  filter: blur(0.4px);
  animation: coreChaos 9s ease-in-out infinite;
}

.hero-orb-field {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.hero-cursor-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}

.hero-cursor-aura {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(130px, 17vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate3d(-999px, -999px, 0) scale(0.8);
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.34) 0%, rgba(var(--accent-rgb), 0.14) 34%, rgba(var(--accent-rgb), 0) 74%);
  filter: blur(8px) saturate(1.02);
  mix-blend-mode: soft-light;
  transition: opacity 220ms ease, background 320ms ease;
  will-change: transform, opacity;
}

.hero-cursor-aura[data-mood="shy"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.3) 0%, rgba(var(--accent-rgb), 0.12) 36%, rgba(var(--accent-rgb), 0) 74%);
}

.hero-cursor-aura[data-mood="chaos"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.42) 0%, rgba(var(--accent-rgb), 0.18) 36%, rgba(var(--accent-rgb), 0) 76%);
}

/* --- ヒーロー フリーオーブ --- */
.hero-free-orb {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(240px, 31vw, 520px);
  aspect-ratio: 1;
  border-radius: 58% 42% 49% 51% / 41% 59% 45% 55%;
  opacity: 0.84;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 38% 34%,
      rgba(255, 255, 255, 0.64) 0%,
      rgba(255, 255, 255, 0.18) 22%,
      rgba(var(--accent-rgb), 0.4) 44%,
      rgba(var(--accent-rgb), 0.24) 62%,
      rgba(var(--accent-rgb), 0) 84%);
  box-shadow:
    0 0 58px rgba(var(--accent-rgb), 0.17),
    0 0 112px rgba(var(--accent-rgb), 0.1);
  filter: blur(2.5px);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  will-change: transform;
}

.hero-free-orb::before,
.hero-free-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-free-orb::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 70% 68%, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0) 64%);
  mix-blend-mode: screen;
  filter: blur(3px);
  opacity: 0.68;
}

.hero-free-orb::after {
  inset: 8%;
  background: radial-gradient(circle at 68% 66%, rgba(var(--accent-rgb), 0.26) 0%, rgba(var(--accent-rgb), 0) 62%);
  filter: blur(9px);
  opacity: 0.64;
}

.hero-free-orb.orb-a {
  background: rgba(255, 235, 220, 0.44);
  animation: orbSkinA 7.8s ease-in-out infinite;
}

.hero-free-orb.orb-b {
  background: rgba(var(--accent-rgb), 0.4);
  animation: orbSkinB 8.9s ease-in-out infinite;
}

.hero-free-orb.orb-c {
  background: rgba(255, 214, 186, 0.38);
  animation: orbSkinC 9.7s ease-in-out infinite;
}

[data-theme="brand"] .hero-free-orb {
  opacity: 0.92;
  mix-blend-mode: normal;
  filter: blur(2.2px);
  box-shadow:
    0 0 72px rgba(var(--accent-rgb), 0.24),
    0 0 138px rgba(var(--accent-rgb), 0.14);
}

/* --- オーブ残光 --- */
.orb-afterglow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --afterglow-opacity: 0;
  opacity: var(--afterglow-opacity);
  transform: translate3d(var(--agx, 0px), var(--agy, 0px), 0);
  transition: opacity 320ms ease;
}

.after-orb {
  position: absolute;
  width: clamp(240px, 31vw, 520px);
  aspect-ratio: 1;
  border-radius: 58% 42% 49% 51% / 41% 59% 45% 55%;
  mix-blend-mode: soft-light;
  filter: blur(8px) saturate(1.01);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.08);
  transition: opacity 320ms ease;
}

.after-orb.after-a {
  background: rgba(var(--accent-rgb), 0.42);
  opacity: 0.5;
}

.after-orb.after-b {
  background: rgba(var(--accent-rgb), 0.34);
  opacity: 0.42;
}

.after-orb.after-c {
  background: rgba(var(--accent-rgb), 0.36);
  opacity: 0.44;
}

/* 残光ゾーン位置 */
.orb-afterglow[data-zone="apps"] .after-a { transform: translate3d(7vw, 18vh, 0) scale(1.05) rotate(-7deg); }
.orb-afterglow[data-zone="apps"] .after-b { transform: translate3d(64vw, 24vh, 0) scale(0.92) rotate(9deg); }
.orb-afterglow[data-zone="apps"] .after-c { transform: translate3d(36vw, 66vh, 0) scale(0.84) rotate(-11deg); }
.orb-afterglow[data-zone="values"] .after-a { transform: translate3d(10vw, 48vh, 0) scale(0.95) rotate(10deg); }
.orb-afterglow[data-zone="values"] .after-b { transform: translate3d(60vw, 42vh, 0) scale(1.08) rotate(-8deg); }
.orb-afterglow[data-zone="values"] .after-c { transform: translate3d(38vw, 76vh, 0) scale(0.86) rotate(15deg); }
.orb-afterglow[data-zone="built-with"] .after-a { transform: translate3d(12vw, 62vh, 0) scale(0.84) rotate(-11deg); }
.orb-afterglow[data-zone="built-with"] .after-b { transform: translate3d(66vw, 58vh, 0) scale(1.12) rotate(13deg); }
.orb-afterglow[data-zone="built-with"] .after-c { transform: translate3d(40vw, 24vh, 0) scale(0.9) rotate(-6deg); }
.orb-afterglow[data-zone="social"] .after-a { transform: translate3d(8vw, 72vh, 0) scale(0.9) rotate(8deg); }
.orb-afterglow[data-zone="social"] .after-b { transform: translate3d(68vw, 68vh, 0) scale(1.16) rotate(-14deg); }
.orb-afterglow[data-zone="social"] .after-c { transform: translate3d(38vw, 88vh, 0) scale(0.96) rotate(12deg); }

/* --- ヒーローコア装飾 --- */
.hero-core::before {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%,
      rgba(var(--accent-rgb), 0.26) 0%,
      rgba(var(--accent-rgb), 0.14) 28%,
      rgba(var(--accent-rgb), 0) 68%);
  filter: blur(8px);
  opacity: 0.78;
  animation: glyphDriftA 14s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}

.hero-core::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 58%,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.08) 22%,
      rgba(var(--accent-rgb), 0.08) 44%,
      rgba(var(--accent-rgb), 0) 72%);
  filter: blur(6px);
  opacity: 0.86;
  animation: glyphDriftB 11s cubic-bezier(0.6, 0.02, 0.4, 0.98) infinite;
}

/* --- ヒーローリングトラック --- */
.hero-ring-track {
  position: absolute;
  width: clamp(170px, 20vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: var(--border-width-base) solid var(--hero-accent-border);
  box-shadow:
    0 0 34px rgba(var(--accent-rgb), 0.16),
    inset 0 0 20px rgba(var(--accent-rgb), 0.08);
  mix-blend-mode: screen;
  opacity: 0.62;
  pointer-events: none;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  z-index: 6;
}

.hero-ring-track::before {
  content: "";
  position: absolute;
  inset: -9%;
  border-radius: inherit;
  border: var(--border-width-base) solid var(--hero-accent-border-soft);
  opacity: 0.72;
}

.hero-ring-track.ring-a {
  left: 50%;
  top: 33%;
  transform: translate(-50%, -50%);
  animation-name: organicOrbit, ringMorphA;
  animation-duration: 9.8s, 12.4s;
  animation-delay: -1.1s, -4.6s;
}

.hero-ring-track.ring-b {
  left: calc(50% - clamp(92px, 11vw, 138px));
  top: calc(50% + clamp(48px, 6vw, 80px));
  transform: translate(-50%, -50%);
  border-radius: 58% 42% 49% 51% / 40% 60% 54% 46%;
  animation-name: organicOrbitB, ringMorphB;
  animation-duration: 8.6s, 10.8s;
  animation-delay: -3.8s, -7.1s;
}

.hero-ring-track.ring-c {
  left: calc(50% + clamp(86px, 10vw, 130px));
  top: calc(50% + clamp(42px, 5vw, 74px));
  transform: translate(-50%, -50%);
  border-radius: 42% 58% 62% 38% / 54% 46% 38% 62%;
  animation-name: organicOrbitC, ringMorphC;
  animation-duration: 10.2s, 13.6s;
  animation-delay: -5.9s, -2.7s;
}

/* --- ヒーロースパーク --- */
.hero-spark {
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.7);
  animation: sparkleDrift 8.5s ease-in-out infinite;
}

.hero-spark.s1 { left: 38%; top: 33%; }
.hero-spark.s2 { left: 62%; top: 34%; animation-delay: -2s; }
.hero-spark.s3 { left: 32%; top: 62%; animation-delay: -4.2s; }
.hero-spark.s4 { left: 68%; top: 62%; animation-delay: -5.8s; }

/* --- ヒーロープリズム --- */
.hero-prism {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(62% 54% at 20% 28%, rgba(var(--accent-rgb), 0.18) 0%, rgba(var(--accent-rgb), 0) 74%),
    radial-gradient(58% 52% at 76% 24%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 76%),
    radial-gradient(54% 56% at 42% 76%, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 74%),
    radial-gradient(50% 50% at 80% 70%, rgba(var(--accent-rgb), 0.14) 0%, rgba(var(--accent-rgb), 0) 78%);
  mix-blend-mode: screen;
  animation: prismFlux 10s ease-in-out infinite;
  opacity: 0.68;
  filter: blur(var(--space-sm)) saturate(1.22);
}

/* --- ダークモード ヒーロー調整 --- */
[data-theme="dark"] .hero-core {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 56%, rgba(255, 255, 255, 0) 75%),
    radial-gradient(circle at 70% 65%, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0) 62%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.06), 0 26px 90px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .hero-ring-track {
  filter: blur(0.7px) saturate(1.08);
}

/* --- 環境光オーブ背景 --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 138, 80, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 70%, rgba(255, 160, 100, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: orbFloat 16s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

[data-theme="dark"] .ambient-orb {
  opacity: 0.25;
}

.ambient-orb.orb1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
  top: -15%;
  left: -15%;
  animation-duration: 16s;
}

[data-theme="dark"] .ambient-orb.orb1 {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
}

.ambient-orb.orb2 {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -20%;
  right: -20%;
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

[data-theme="dark"] .ambient-orb.orb2 {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

/* --- セクションヘッダー --- */
.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.section-header h2 {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-sub);
}

/* --- Apps セクション --- */
.apps {
  padding: var(--section-outer-padding);
  background: transparent;
  position: relative;
  z-index: 5;
}

.apps-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: var(--section-panel-gradient-app);
  padding: var(--section-panel-padding);
  border-radius: var(--section-panel-radius);
  border: var(--border-width-base) solid var(--section-panel-border);
  box-shadow: var(--section-panel-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

/* --- Values セクション --- */
.values {
  padding: var(--section-outer-padding);
  position: relative;
  z-index: 1;
  background: transparent;
}

.values-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: var(--section-panel-padding);
  background: var(--section-panel-gradient-app);
  border-radius: var(--section-panel-radius);
  border: var(--border-width-base) solid var(--section-panel-border);
  box-shadow: var(--section-panel-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Built With セクション --- */
.built-with {
  padding: var(--section-outer-padding);
  background: transparent;
  position: relative;
  z-index: 5;
}

.built-with-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: var(--section-panel-gradient-app);
  padding: var(--section-panel-padding);
  border-radius: var(--section-panel-radius);
  border: var(--border-width-base) solid var(--section-panel-border);
  box-shadow: var(--section-panel-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.skills-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  max-width: none;
}

/* --- Contact セクション --- */
.contact {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.contact h2 {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.contact p {
  font-size: var(--text-lg);
  color: var(--text-sub);
  margin-bottom: var(--space-xl);
}

.contact-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- フッター --- */
footer {
  background: transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

footer::before {
  content: "";
  position: absolute;
  inset: -10% -20% -15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 34% at 12% 76%, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0) 72%),
    radial-gradient(46% 36% at 84% 68%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 74%),
    radial-gradient(38% 32% at 46% 92%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0) 70%);
  filter: blur(18px);
  opacity: 0.82;
}

.footer-container {
  max-width: 100%;
  padding: var(--space-2xl) clamp(var(--space-lg), 4vw, var(--space-2xl));
  display: flex;
  justify-content: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
}

.footer-tagline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text);
}

.footer-social-grid {
  display: flex;
  gap: var(--space-sm);
}

/* --- ワードマーク --- */
.footer-wordmark-container {
  width: 100%;
  overflow: hidden;
  margin-top: calc(var(--space-3xl) * -1);
  position: relative;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

.footer-wordmark {
  width: 100%;
  margin: 0;
}

.footer-wordmark svg {
  width: 100%;
  height: auto;
  fill: var(--text);
  opacity: 0.05;
  display: block;
  transition: opacity var(--motion-interactive);
}

.footer-wordmark-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-wordmark);
}

.footer-wordmark:hover svg {
  opacity: 0.08;
}

[data-theme="dark"] .footer-wordmark svg {
  fill: var(--inverse-text);
  opacity: 0.04;
}

/* --- フッターボトムバー --- */
.footer-bottom {
  background: var(--section-panel-gradient-app);
  padding: var(--space-xl) clamp(var(--space-lg), 5vw, var(--space-4xl));
  position: relative;
  z-index: 2;
}

.footer-bottom-inner {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-legal-links {
  list-style: none;
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.footer-legal-links a {
  font-size: var(--text-sm);
  color: var(--text-sub);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.footer-legal-links a:hover {
  background: var(--accent-soft-bg);
  color: var(--accent);
  transform: translate(var(--lift-x), var(--lift-y));
}

/* ==========================================================
   4. コンポーネント
   ========================================================== */

/* --- カード --- */
.card-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card {
  background: var(--card-bg);
  border: var(--border-width-base) solid var(--tile-border);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  --rotX: 0deg;
  --rotY: 0deg;
  transform: perspective(1000px) rotateX(var(--rotX)) rotateY(var(--rotY));
  transition: box-shadow var(--motion-interactive), background var(--motion-interactive), border-color var(--motion-interactive);
  box-shadow: var(--tile-shadow);
  transform-style: preserve-3d;
  color: var(--text);
}

.card:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
  box-shadow: var(--tile-shadow-hover);
  transform: perspective(1000px) rotateX(var(--rotX)) rotateY(var(--rotY)) translate(0px, var(--lift-y));
}

.card:active {
  transform: perspective(1000px) scale(0.97);
  border-color: var(--accent);
  transition: transform 0.15s ease, box-shadow var(--motion-interactive), background var(--motion-interactive), border-color var(--motion-interactive);
}

[data-theme="dark"] .card {
  background: var(--surface);
}

[data-theme="dark"] .card:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
}

.card .card-name {
  color: var(--text);
}

.card .card-tagline,
.card .card-desc {
  color: var(--text-sub);
}

.card .platform-icon {
  color: var(--text);
  opacity: 0.6;
}

/* --- カードバッジ --- */
.card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-sub);
}

.card-badge.coming {
  background: var(--badge-coming-bg);
  color: var(--badge-coming-text);
}

/* --- カードアイコン --- */
.card-icon {
  width: var(--space-3xl);
  height: var(--space-3xl);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft-bg);
  transition: background var(--ease), color var(--ease), transform var(--ease);
  color: var(--accent);
}

.card-icon svg {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
}

.card-icon-img {
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.card-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform var(--ease);
}

.card:hover .card-icon {
  transform: scale(var(--lift-icon-scale));
}

.card-name {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: 1.5;
}

.card-platforms {
  display: flex;
  gap: var(--space-2xs);
  justify-content: center;
}

.platform-icon {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  opacity: 0.7;
}

[data-theme="dark"] .platform-icon {
  opacity: 0.6;
}

/* --- フィーチャードカード --- */
.card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  text-align: left;
  padding: var(--space-2xl);
  gap: var(--space-xl);
}

.card-featured .card-icon {
  width: var(--icon-size-4xl);
  height: var(--icon-size-4xl);
  border-radius: 50%;
  margin: 0 0 var(--space-md);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.card-featured .card-icon-img img {
  border-radius: 50%;
  transition: transform var(--ease);
}

.card-featured .card-icon svg {
  width: var(--icon-size-xl);
  height: var(--icon-size-xl);
}

.card-featured .card-name {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2xs);
}

.card-featured .card-tagline {
  font-size: var(--text-lg);
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.card-featured .card-platforms {
  justify-content: flex-start;
}

/* --- Learn More リンク --- */
.learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background: transparent;
  border: var(--border-width-base) solid var(--border);
  transition: transform var(--motion-interactive), background var(--motion-interactive), color var(--motion-interactive), border-color var(--motion-interactive);
}

.learn-more:hover {
  background: var(--accent-soft-bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translate(var(--lift-x), var(--lift-y));
}

.learn-more::after {
  content: ' \203A';
}

/* --- フィーチャードビジュアル --- */
.featured-visual {
  background: var(--icon-bg);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-mock {
  width: 120px;
  height: 240px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: var(--border-width-strong) solid var(--border);
  box-shadow: 0 var(--space-xs) var(--space-lg) var(--card-shadow);
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-notch {
  width: 40px;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: absolute;
  top: 10px;
}

.phone-content {
  width: 70%;
  height: 60%;
  background: var(--bg-sub);
  border-radius: var(--radius-sm);
}

/* --- Value アイテム --- */
.value-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: var(--border-width-base) solid var(--tile-border);
  --rotX: 0deg;
  --rotY: 0deg;
  transform: perspective(1000px) rotateX(var(--rotX)) rotateY(var(--rotY));
  transition: box-shadow var(--motion-interactive), background var(--motion-interactive), border-color var(--motion-interactive);
  box-shadow: var(--tile-shadow);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.value-item:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
  transform: perspective(1000px) rotateX(var(--rotX)) rotateY(var(--rotY)) translate(0px, var(--lift-y));
  box-shadow: var(--tile-shadow-hover);
}

[data-theme="dark"] .value-item {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .value-item:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
}

.value-icon {
  width: var(--space-2xl);
  height: var(--space-2xl);
  border-radius: 50%;
  background: var(--accent-soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.value-item:hover .value-icon {
  transform: scale(var(--lift-icon-scale));
}

.value-icon svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

.value-name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
}

.value-desc {
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: 1.5;
}

/* --- Skill アイテム --- */
.skill-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 60px;
  border-radius: var(--radius-lg);
  transition: transform var(--motion-interactive), filter var(--motion-interactive);
}

.skill-icon {
  width: var(--space-2xl);
  height: var(--space-2xl);
  border-radius: 50%;
  background: var(--accent-soft-bg);
  border: var(--border-width-base) solid var(--accent-soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  color: var(--accent);
  box-shadow: var(--tile-shadow);
}

.skill-item:hover,
.skill-item:focus-within {
  transform: translate(var(--lift-x), var(--lift-y));
}

.skill-item:hover .skill-icon,
.skill-item:focus-within .skill-icon {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--tile-shadow-hover);
  transform: scale(var(--lift-icon-scale));
  filter: none;
}

.skill-icon svg {
  width: var(--space-lg);
  height: var(--space-lg);
}

[data-theme="dark"] .skill-icon {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-bg);
  color: var(--accent);
  box-shadow: var(--tile-shadow);
}

.skill-label {
  font-size: var(--text-xs);
  color: var(--text-sub);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover .skill-label,
.skill-item:focus-within .skill-label {
  opacity: 1;
}

.skill-item.mobile-only {
  display: none;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: transform var(--motion-interactive), background var(--motion-interactive), color var(--motion-interactive);
}

.btn:hover {
  background: var(--accent-soft-bg);
  color: var(--accent);
  transform: translate(var(--lift-x), var(--lift-y));
}

.btn svg {
  width: var(--space-md);
  height: var(--space-md);
}

/* --- ソーシャルアイコン --- */
.social-icon-box {
  width: var(--space-4xl);
  height: var(--space-4xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: background var(--ease), color var(--ease), transform var(--ease);
  border: none;
}

.social-icon-box.is-hover:not(.theme-toggle) {
  background: var(--accent-soft-bg);
  color: var(--accent);
}

.social-icon-box svg {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
}

/* --- ロゴテーマ --- */
.logo-circle {
  transition: fill 0.3s ease;
}

/* --- プライバシーモーダル --- */
.privacy-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: var(--border-width-base) solid var(--section-panel-border);
  max-width: var(--privacy-modal-max-width);
  width: 100%;
  max-height: 80vh;
  padding: var(--modal-padding);
  position: relative;
  box-shadow: var(--dialog-shadow);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.overlay.active .privacy-modal {
  transform: scale(1);
}

.privacy-modal h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xs);
}

.privacy-modal .privacy-date {
  font-size: var(--text-sm);
  color: var(--text-sub);
  margin-bottom: var(--space-lg);
}

.privacy-modal .privacy-intro {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.privacy-modal h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  margin-top: var(--space-lg);
}

.privacy-modal h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2xs);
  margin-top: var(--space-md);
}

.privacy-modal p,
.privacy-modal ul {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.privacy-modal ul {
  padding-left: 20px;
}

.privacy-modal a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-modal a:hover {
  opacity: 0.7;
}

.privacy-modal::-webkit-scrollbar {
  width: 6px;
}

.privacy-modal::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-modal::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-xs);
}

.privacy-modal::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border-radius: var(--radius-xs);
}

/* --- オーバーレイ / モーダル --- */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay-bg);
  backdrop-filter: blur(var(--space-md));
  -webkit-backdrop-filter: blur(var(--space-md));
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: var(--border-width-base) solid var(--section-panel-border);
  max-width: var(--modal-max-width);
  width: 100%;
  padding: var(--modal-padding);
  text-align: center;
  position: relative;
  box-shadow: var(--dialog-shadow);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-sub);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  color: var(--text);
}

.modal-close:hover {
  background: rgba(255, 160, 60, 0.15);
  color: #f0a030;
}

.modal-close svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.modal-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: transparent;
  border: var(--border-width-base) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  transition: transform var(--ease);
}

.modal-app-icon svg {
  width: var(--space-xl);
  height: var(--space-xl);
}

.modal-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform var(--ease);
}

.modal-app-icon:has(img) {
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.modal-name {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-desc {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.6;
}

.modal-platforms {
  display: flex;
  gap: var(--space-2xs);
  justify-content: center;
}

.modal-screens {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  overflow-x: auto;
}

.ss {
  width: 80px;
  height: 148px;
  border-radius: var(--radius-md);
  background: var(--bg-sub);
  border: var(--border-width-hairline) solid var(--border);
  flex-shrink: 0;
}

.modal-tags {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-xs);
  justify-content: center;
}

.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-full);
  line-height: 1;
  background: transparent;
  border: var(--border-width-base) solid var(--border);
  color: var(--text-sub);
  transition: transform var(--motion-interactive), background var(--motion-interactive), border-color var(--motion-interactive), color var(--motion-interactive);
}

.tag:hover {
  background: var(--accent-soft-bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(var(--lift-x), var(--lift-y));
}

/* --- モーダル CTA --- */
.modal-cta {
  display: flex;
  gap: var(--space-xs);
  width: 100%;
}

.modal-cta a {
  flex: 1;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: transform var(--motion-interactive), opacity var(--motion-interactive), background var(--motion-interactive), border-color var(--motion-interactive), color var(--motion-interactive);
}

.cta-primary {
  background: var(--cta-primary-bg);
  color: var(--cta-primary-text);
}

.cta-primary:hover {
  opacity: 0.85;
  transform: translate(var(--lift-x), var(--lift-y));
}

.cta-secondary {
  background: transparent;
  color: var(--cta-secondary-text);
  border: var(--border-width-hairline) solid var(--cta-secondary-border);
}

.cta-secondary:hover {
  background: var(--cta-secondary-hover-bg);
  transform: translate(var(--lift-x), var(--lift-y));
}

/* ==========================================================
   5. ユーティリティ
   ========================================================== */

/* --- スクリーンリーダー専用 --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- GSAP制御のフェードイン --- */
.fade-in,
.hero-fade {
  opacity: 0;
}

/* --- フロートアニメーション --- */
.float-anim {
  animation: floatUpDown 6s ease-in-out infinite;
  will-change: transform;
}

/* ==========================================================
   6. レスポンシブ
   ========================================================== */

/* --- 900px ブレークポイント --- */
@media (max-width: 900px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

/* --- メインブレークポイント 734px --- */
@media (max-width: 734px) {
  /* フッター */
  .footer-container {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer-tagline {
    font-size: clamp(36px, 10vw, 52px);
  }

  .footer-brand {
    gap: var(--space-lg);
  }

  .footer-wordmark-container {
    margin-top: calc(var(--space-xl) * -1);
  }

  .footer-bottom {
    padding: var(--space-md) var(--space-lg);
  }

  :root {
    --section-panel-radius: 28px;
    --section-outer-padding: var(--space-lg) var(--space-lg);
  }

  /* ヒーローモバイル */
  .hero {
    padding-top: 72px;
    padding-bottom: var(--space-lg);
  }

  .hero-kv {
    height: calc(100svh - 72px - var(--space-lg) - var(--space-lg));
    border-radius: 28px;
  }

  .hero-core {
    width: clamp(180px, 46vw, 250px);
  }

  .hero-ring-track {
    width: clamp(150px, 38vw, 215px);
  }

  /* アプリグリッド */
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .apps-inner {
    padding: 40px var(--space-lg);
    gap: var(--space-xl);
  }

  .card-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
  }

  .card-featured .card-icon {
    margin: 0 auto var(--space-md);
    width: var(--space-3xl);
    height: var(--space-3xl);
  }

  .card-featured .card-name {
    font-size: var(--text-xl);
  }

  .card-featured .card-platforms {
    justify-content: center;
  }

  .featured-visual {
    display: none;
  }

  .card {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-sm);
  }

  /* バリュー */
  .values-inner {
    padding: 40px var(--space-lg);
    gap: var(--space-xl);
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .value-item {
    padding: var(--space-md) var(--space-sm);
  }

  .value-icon {
    width: 40px;
    height: 40px;
  }

  .value-icon svg {
    width: 18px;
    height: 18px;
  }

  .value-name {
    font-size: var(--text-base);
  }

  .value-desc {
    font-size: var(--text-xs);
    line-height: 1.4;
  }

  /* Built With / Skills */
  .built-with-inner {
    padding: 40px var(--space-lg);
    gap: var(--space-xl);
  }

  .skills-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md) var(--space-sm);
  }

  .skill-label {
    font-size: var(--text-xs);
  }

  .skill-icon {
    width: 40px;
    height: 40px;
  }

  .skill-icon svg {
    width: 20px;
    height: 20px;
  }

  /* セクションヘッダー */
  .section-header {
    margin-bottom: 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: var(--text-sm);
  }

  /* モーダル（ボトムシート化） */
  .modal-tags {
    gap: var(--space-2xs);
  }

  .overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    border-radius: var(--radius-sheet-top);
    padding: var(--space-xl) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
    max-height: 90svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    gap: var(--space-sm);
  }

  .overlay.active .modal {
    transform: translateY(0);
  }

  .modal-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }

  .modal-name {
    font-size: var(--text-xl);
  }

  .modal-desc {
    font-size: var(--text-sm);
  }

  .modal-tags {
    gap: var(--space-2xs);
  }

  .ss {
    width: 56px;
    height: 104px;
    border-radius: var(--radius-sm);
  }

  .modal-cta a {
    padding: var(--space-sm);
    font-size: var(--text-base);
  }

  .privacy-modal {
    max-width: 100%;
    max-height: 90svh;
    border-radius: var(--radius-sheet-top);
    padding: var(--space-xl) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .overlay.active .privacy-modal {
    transform: translateY(0);
  }

  /* ナビゲーション（モバイル） */
  .nav-inner {
    height: var(--space-3xl);
    padding: 0 var(--space-lg);
    justify-content: space-between;
  }

  .nav-left,
  .nav-right .nav-socials,
  .nav-right a.social-icon-box {
    display: none;
  }

  .nav-center {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    flex: 1;
    justify-content: flex-start;
  }

  .nav-right {
    flex: 0;
  }

  .nav-controls {
    padding: 0;
    margin: 0;
    border: none;
  }

  .nav-logo span {
    display: inline;
  }

  .nav-logo svg {
    width: var(--space-xl);
    height: var(--space-xl);
  }
}

/* --- 480px ブレークポイント --- */
@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .card-featured {
    grid-template-columns: 1fr;
    padding: var(--space-lg) 20px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .value-item {
    padding: var(--space-md);
  }

  .value-name {
    font-size: var(--text-lg);
  }

  .value-desc {
    font-size: var(--text-sm);
  }

  .hero-core {
    width: clamp(170px, 56vw, 230px);
  }

  .hero-ring-track {
    width: clamp(138px, 40vw, 190px);
  }

  .skills-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md) var(--space-xs);
  }

  .skill-item.mobile-only {
    display: flex;
  }

  .hero-kv {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
  }

  .hero-kv::before,
  .hero-kv::after {
    filter: blur(6px);
  }

  .hero-free-orb,
  .after-orb {
    mix-blend-mode: normal;
  }

  .footer-tagline {
    font-size: clamp(28px, 8vw, 40px);
  }
}

/* --- アクセシビリティ: モーション軽減 --- */
@media (prefers-reduced-motion: reduce) {
  .hero-core::before,
  .hero-core::after,
  .hero-free-orb,
  .orb-afterglow,
  .hero-ring-track,
  .hero-ring-track::before,
  .hero-prism,
  .ambient-orb,
  .float-anim {
    animation: none !important;
  }

  .orb-afterglow {
    display: none !important;
  }

  .hero-fade,
  .fade-in {
    opacity: 1;
  }
}

/* ==========================================================
   7. アニメーション（@keyframes）
   ========================================================== */

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

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15vw, 10vh) scale(1.1); }
}

@keyframes glyphDriftA {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.98); }
  17% { transform: translate3d(-1%, -2%, 0) rotate(-14deg) scale(1.02); }
  39% { transform: translate3d(2%, 1%, 0) rotate(9deg) scale(0.96); }
  62% { transform: translate3d(-2%, 2%, 0) rotate(-6deg) scale(1.04); }
  81% { transform: translate3d(1%, -1%, 0) rotate(13deg) scale(0.97); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.98); }
}

@keyframes glyphDriftB {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.02); }
  21% { transform: translate3d(2%, -1%, 0) rotate(10deg) scale(0.94); }
  36% { transform: translate3d(-2%, 2%, 0) rotate(-8deg) scale(1.06); }
  57% { transform: translate3d(1%, 1%, 0) rotate(5deg) scale(0.96); }
  74% { transform: translate3d(-1%, -2%, 0) rotate(-12deg) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.02); }
}

@keyframes orbSkinA {
  0%, 100% { border-radius: 58% 42% 49% 51% / 41% 59% 45% 55%; }
  38% { border-radius: 45% 55% 62% 38% / 56% 44% 37% 63%; }
  72% { border-radius: 66% 34% 41% 59% / 40% 60% 58% 42%; }
}

@keyframes orbSkinB {
  0%, 100% { border-radius: 51% 49% 57% 43% / 46% 54% 39% 61%; }
  31% { border-radius: 39% 61% 44% 56% / 60% 40% 56% 44%; }
  67% { border-radius: 63% 37% 55% 45% / 35% 65% 48% 52%; }
}

@keyframes orbSkinC {
  0%, 100% { border-radius: 47% 53% 42% 58% / 59% 41% 53% 47%; }
  29% { border-radius: 62% 38% 53% 47% / 43% 57% 36% 64%; }
  71% { border-radius: 41% 59% 61% 39% / 54% 46% 63% 37%; }
}

@keyframes organicOrbit {
  0% { opacity: 0.34; transform: translate(-50%, -50%) rotate(-3deg) scale(0.93); }
  29% { opacity: 0.76; transform: translate(-50%, -50%) rotate(8deg) scale(1.06); }
  58% { opacity: 0.52; transform: translate(-50%, -50%) rotate(-9deg) scale(0.97); }
  100% { opacity: 0.34; transform: translate(-50%, -50%) rotate(-3deg) scale(0.93); }
}

@keyframes organicOrbitB {
  0% { opacity: 0.32; transform: translate(-50%, -50%) rotate(7deg) scale(0.95); }
  36% { opacity: 0.82; transform: translate(-52%, -47%) rotate(-12deg) scale(1.08); }
  69% { opacity: 0.48; transform: translate(-48%, -53%) rotate(5deg) scale(0.92); }
  100% { opacity: 0.32; transform: translate(-50%, -50%) rotate(7deg) scale(0.95); }
}

@keyframes organicOrbitC {
  0% { opacity: 0.36; transform: translate(-50%, -50%) rotate(-11deg) scale(0.92); }
  25% { opacity: 0.69; transform: translate(-47%, -52%) rotate(4deg) scale(1.04); }
  55% { opacity: 0.5; transform: translate(-53%, -48%) rotate(14deg) scale(0.98); }
  100% { opacity: 0.36; transform: translate(-50%, -50%) rotate(-11deg) scale(0.92); }
}

@keyframes ringMorphA {
  0% { border-radius: 46% 54% 58% 42% / 44% 56% 40% 60%; }
  24% { border-radius: 58% 42% 49% 51% / 38% 62% 56% 44%; }
  47% { border-radius: 40% 60% 44% 56% / 58% 42% 52% 48%; }
  72% { border-radius: 52% 48% 60% 40% / 49% 51% 39% 61%; }
  100% { border-radius: 46% 54% 58% 42% / 44% 56% 40% 60%; }
}

@keyframes ringMorphB {
  0% { border-radius: 58% 42% 49% 51% / 40% 60% 54% 46%; }
  27% { border-radius: 44% 56% 63% 37% / 57% 43% 46% 54%; }
  51% { border-radius: 61% 39% 45% 55% / 42% 58% 62% 38%; }
  74% { border-radius: 49% 51% 39% 61% / 53% 47% 41% 59%; }
  100% { border-radius: 58% 42% 49% 51% / 40% 60% 54% 46%; }
}

@keyframes ringMorphC {
  0% { border-radius: 42% 58% 62% 38% / 54% 46% 38% 62%; }
  21% { border-radius: 64% 36% 43% 57% / 47% 53% 59% 41%; }
  46% { border-radius: 39% 61% 54% 46% / 63% 37% 44% 56%; }
  79% { border-radius: 56% 44% 37% 63% / 41% 59% 52% 48%; }
  100% { border-radius: 42% 58% 62% 38% / 54% 46% 38% 62%; }
}

@keyframes ringCoreMorph {
  0% { border-radius: 57% 43% 51% 49% / 48% 56% 44% 52%; }
  34% { border-radius: 45% 55% 39% 61% / 60% 40% 52% 48%; }
  66% { border-radius: 62% 38% 56% 44% / 46% 54% 37% 63%; }
  100% { border-radius: 57% 43% 51% 49% / 48% 56% 44% 52%; }
}

@keyframes sparkleDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0.25; }
  35% { transform: translate3d(8px, -14px, 0) scale(1); opacity: 1; }
  70% { transform: translate3d(-10px, -6px, 0) scale(0.8); opacity: 0.6; }
}

@keyframes prismFlux {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.62; }
  24% { transform: translate3d(2%, -2%, 0) rotate(-10deg) scale(1.05); opacity: 0.78; }
  48% { transform: translate3d(-2%, 2%, 0) rotate(8deg) scale(0.98); opacity: 0.58; }
  73% { transform: translate3d(1%, 1%, 0) rotate(-6deg) scale(1.06); opacity: 0.74; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.62; }
}

@keyframes psychoHue {
  0% { opacity: 0.72; transform: scale(1.01); }
  100% { opacity: 0.82; transform: scale(1.04); }
}

@keyframes psychoPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes morphFlow {
  0% { transform: translate3d(0%, 0%, 0) scale(1.02) rotate(0deg); }
  19% { transform: translate3d(2.5%, -1.8%, 0) scale(1.08) rotate(-4deg); }
  44% { transform: translate3d(-2.8%, 2.2%, 0) scale(0.98) rotate(3deg); }
  68% { transform: translate3d(1.8%, 2.8%, 0) scale(1.06) rotate(-2deg); }
  100% { transform: translate3d(0%, 0%, 0) scale(1.02) rotate(0deg); }
}

@keyframes veilShift {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  42% { opacity: 0.94; transform: scale(1.04); }
  73% { opacity: 0.84; transform: scale(1.02); }
}

@keyframes coreChaos {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95) rotate(0deg); }
  30% { transform: translate(-49%, -52%) scale(1.04) rotate(9deg); }
  60% { transform: translate(-51%, -49%) scale(0.98) rotate(-7deg); }
}

@keyframes heroSheen {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.55; transform: translateX(30%); }
}
